大话人生

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  299 随笔 :: 0 文章 :: 73 评论 :: 0 Trackbacks

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) +3500426
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +163
System.Web.CachedPathData.GetConfigPathData(String configPath) +382
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetApplicationPathData() +68
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3393747
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189


继续解决吧。。。。

解决办法:

C:\WINNT\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i

posted on 2007-08-18 02:52 大话人生 阅读(9104) 评论(4)  编辑 收藏 引用 所属分类: 配置管理

评论

# re: Failed to access IIS metabase解决 2009-11-04 11:44 dayou123123
just do it .   回复  更多评论
  

# re: Failed to access IIS metabase解决[未登录] 2010-10-27 17:09 bluesky
我有试了,还是不行啊
我的是Win 2000 Server SP4

在我本机系统上是可以的(XP SP2)  回复  更多评论
  

# re: Failed to access IIS metabase解决 2011-03-10 22:30 windlass
so good, it is ok now, thx  回复  更多评论
  

# re: Failed to access IIS metabase解决[未登录] 2011-07-02 10:47 hehe
framework4.0 可这样
C:\Inetpub\AdminScripts>cd C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -i
Start installing ASP.NET (4.0.30319).
.......
Finished installing ASP.NET (4.0.30319).


搞定  回复  更多评论
  

只有注册用户登录后才能发表评论。