原因: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 C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -lv C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -i C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -lv C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>iisreset /noforce Attempting stop... C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727> 问题详情: Failed to access IIS metabase. 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:
|
转载于:https://www.cnblogs.com/baishiying/archive/2012/08/30/2663806.html
原因: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 C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -lv C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -i C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis -lv C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>iisreset /noforce Attempting stop... C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727> 问题详情: Failed to access IIS metabase. 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:
|