当前位置: 首页 > news >正文

:“Failed to access IIS metabase”解决方法

原因:IIS没有注册

解决办法:

在CMD中进入目录C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727,运行aspnet_regiis

1、aspnet_regiis -ga administrator(administrator为当前用户)

2、aspnet_regiis -i (注册IIS)

3、iisreset /noforce (重启IIS)

操作详细:

C:/Documents and Settings/Administrator>cd c://windows//microsoft.net//framework//v2.0.50727

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -ga administrator
Start granting administrator access to the IIS metabase and other directories us
ed by ASP.NET.
Finished granting administrator access to the IIS metabase and other directories
used by ASP.NET.

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -lv
2.0.50727.0     Valid           C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/as
pnet_isapi.dll

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -i
Start installing ASP.NET (2.0.50727).
..............
Finished installing ASP.NET (2.0.50727).

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -lv
2.0.50727.0     Valid (Root)    C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/as
pnet_isapi.dll

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>iisreset /noforce

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted

C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>


问题详情:

Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3591442
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +169
System.Web.CachedPathData.GetConfigPathData(String configPath) +389
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetApplicationPathData() +68
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3536567
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189

相关文章:

  • 用户***/aspnet登陆失败
  • sql 2005拒绝了对对象 'xxx' (数据库 'xxx',架构 'dbo')的 SELECT 权限
  • 用min-height实现最小高度(兼容IE6、IE7、FF)
  • css 非表格垂直对齐效果代码
  • msxml6.dll (0x80072EFD) A connection with the server could not be established
  • 怎么查看80端口占用情况? 如何查看端口占用情况?
  • iis 出现HTTP 错误 403.1 禁止访问:禁止执行访问错误
  • 80后的我们拿什么养活自己和家人
  • 80后的成熟
  • 60条令你大吃一惊的小常识
  • SqlHelper数据库操作类
  • 网页插入的播放器代码 ,播放不了AVI的视频
  • 简单三层
  • 在onLoad运行_onOpen.htm时,发生了以下JavaScript错误:
  • net里js换行 未结束的字符串常量
  • 【140天】尚学堂高淇Java300集视频精华笔记(86-87)
  • 2017-08-04 前端日报
  • 5分钟即可掌握的前端高效利器:JavaScript 策略模式
  • CAP理论的例子讲解
  • JavaScript-Array类型
  • JavaScript设计模式系列一:工厂模式
  • Node项目之评分系统(二)- 数据库设计
  • ucore操作系统实验笔记 - 重新理解中断
  • 关于Java中分层中遇到的一些问题
  • 基于组件的设计工作流与界面抽象
  • 聚类分析——Kmeans
  • 前端js -- this指向总结。
  • 十年未变!安全,谁之责?(下)
  • 我的业余项目总结
  • 正则表达式小结
  • 智能网联汽车信息安全
  • ​ubuntu下安装kvm虚拟机
  • ​学习一下,什么是预包装食品?​
  • #常见电池型号介绍 常见电池尺寸是多少【详解】
  • (02)Hive SQL编译成MapReduce任务的过程
  • (23)Linux的软硬连接
  • (C++)八皇后问题
  • (echarts)echarts使用时重新加载数据之前的数据存留在图上的问题
  • (Redis使用系列) Springboot 使用Redis+Session实现Session共享 ,简单的单点登录 五
  • (备忘)Java Map 遍历
  • (附源码)ssm高校社团管理系统 毕业设计 234162
  • (亲测有效)解决windows11无法使用1500000波特率的问题
  • (区间dp) (经典例题) 石子合并
  • (数位dp) 算法竞赛入门到进阶 书本题集
  • (太强大了) - Linux 性能监控、测试、优化工具
  • .NET 使用 XPath 来读写 XML 文件
  • .NET/C# 如何获取当前进程的 CPU 和内存占用?如何获取全局 CPU 和内存占用?
  • .NET面试题解析(11)-SQL语言基础及数据库基本原理
  • /etc/apt/sources.list 和 /etc/apt/sources.list.d
  • [ vulhub漏洞复现篇 ] Celery <4.0 Redis未授权访问+Pickle反序列化利用
  • [ 转载 ] SharePoint 资料
  • [BZOJ3223]文艺平衡树
  • [CentOs7]iptables防火墙安装与设置
  • [datastore@cyberfear.com].Elbie、[thekeyishere@cock.li].Elbie勒索病毒数据怎么处理|数据解密恢复
  • [github全教程]github版本控制最全教学------- 大厂找工作面试必备!