星期四, 3月 26, 2009

Failed to access IIS metabase solution (解決方法)

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.

Root cause:Install IIS after install .net framework.

Solution:

Execute Dos Console and type(開始功能表-->執行 輸入)

Windows XP

C:\WINdows\Microsoft.NET\Framework\v2.0.50727/aspnet_regiis /i /e

WinNT系統(windows2000...etc)

C:\WINNT\Microsoft.NET\Framework\v2.0.50727/aspnet_regiis /i /e


Done