发在.net区半天没答案,来这里试试~

freeweb 2006-04-28 12:27:59
IIS突然不能今天不能运行.aspx文件了,昨天还行的~错误提示:

Server Error in '/NetASP' Application.
--------------------------------------------------------------------------------

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) +688
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +173
System.Web.CachedPathData.GetConfigPathData(String configPath) +398
System.Web.CachedPathData.GetConfigPathData(String configPath) +263
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +166
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +187




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
...全文
97 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
to mhxz5680()

asp.net错误都会提示堆栈错误的,一般来说你可以把那段略过
www_7di_net 2006-04-28
  • 打赏
  • 举报
回复
IIS metabase损坏

重装iis

ps:普通的卸载、重装无法修复IIS metabase,得按下面步骤重装才成
1、把IIS卸载。
2、把 %windir%\system32\inetsrv 删除。
3、把%windir%\iisX.log删除,X 是IIS版本。
4、把 \inetpub\ 目录删除。
(以上操作可以在安全模式中进行。)
5、重装IIS。
mhxz5680 2006-04-28
  • 打赏
  • 举报
回复
大致说了:

一个未经处理得例外发生再执行当前WEB请求师,请去堆栈看一下更多关于引发这个这个错误的信息的代码


唉,英语四级也没过,用金山词霸也只搞到这些乱七八糟的东西,翻译步好,请见谅
wanghui0380 2006-04-28
  • 打赏
  • 举报
回复
IIS metabase损坏

重装iis

ps:普通的卸载、重装无法修复IIS metabase,得按下面步骤重装才成
1、把IIS卸载。
2、把 %windir%\system32\inetsrv 删除。
3、把%windir%\iisX.log删除,X 是IIS版本。
4、把 \inetpub\ 目录删除。
(以上操作可以在安全模式中进行。)
5、重装IIS。




moodboy1982 2006-04-28
  • 打赏
  • 举报
回复
一个好办法:重装!
xutao888 2006-04-28
  • 打赏
  • 举报
回复
aspnet_regiis -i

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧