Chinaunix首页 | 论坛 | 博客
  • 博客访问: 301414
  • 博文数量: 54
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 606
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-03 22:43
文章分类
文章存档

2011年(3)

2010年(26)

2009年(2)

2008年(23)

我的朋友

分类:

2008-11-13 10:15:02


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).

---------------------以下是解决方法-------------------------

1.入DOS命令行

2.cd \

3.cd c:\windows\microsoft.net\framework\v2.0.50727

4.然后行命令 aspnet_regiis -ga administrator //注:administrator当前登

5.aspnet_regiis -i -enable

6.net stop iisadmin

7.net start w3svc

//一下,aspnet_regiis.exe个程序是在c:\windows\microsoft.net\framework\v2.0.50727下的,如果你的不是windows xp sp2,那么请您搜寻该程序,只要行相同的命令即可. 

 

阅读(925) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~