我在调试ASP.net网站的时候出错,请各位师傅帮我看看是什么问题。

cen_jin_long 2007-10-14 03:15:50
我的是XP,我装的是Visual Studio 2005 。新建了一个ASP.net网站。立即运行,但不能,错误!

Server Error in '/ASPNET ' 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) +3609834
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) +382
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetApplicationPathData() +68
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3503459
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
...全文
87 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
踏平扶桑 2007-10-15
  • 打赏
  • 举报
回复
点开始-运行---C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -i
然后在你的IIS目录点右键把asp.net版本设置成2.0的看看
xiaomatian 2007-10-15
  • 打赏
  • 举报
回复
如果楼上的方法还不行的话建议楼主重新安装一下IIS试试
孟子E章 2007-10-14
  • 打赏
  • 举报
回复
或者下载
http://download.microsoft.com/download/5/7/3/57316f36-ded6-41f0-b694-8b0102ade818/metaacl.exe
孟子E章 2007-10-14
  • 打赏
  • 举报
回复
到相应的版本下执行
aspnet_regiis -ga ASPNET
aspnet_regiis -i

即可
cen_jin_long 2007-10-14
  • 打赏
  • 举报
回复
2.0 、1.0我都安装了。都不行!不知道怎么会出现这样的错误。
nosuchtracter 2007-10-14
  • 打赏
  • 举报
回复
是IIS架设的服务器问题
你看下IIS里的ASP.NET是2.0不
cen_jin_long 2007-10-14
  • 打赏
  • 举报
回复
这到底是怎么回事啊。以前ASP用得好好的。ASP.net一点都不行了。
cen_jin_long 2007-10-14
  • 打赏
  • 举报
回复
不知道什么原因,会这样的呢。请各位在线的朋友帮忙解答一下。

62,249

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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