简体   繁体   中英

Failed to access IIS metabase

I am having too much trouble with this IIS. First it was giving me an error Virtual directory denied.

I realized there was no default.aspx in the documents tab.. (it has default.asp, default.htm, iistart, index.htm). Checked that liitle box enable default documents

Now it says 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

This is the first time working on IIS.. So I need ur hints and fixes

Thanks SC

You need to install the .net framework on you system

Open visual studio command prompt and type this command

aspnet_regiis -ga <UserName>

if this doesn'twork than use this command

aspnet_regiis -i

alternatively you can copy and paste this command into windows command prompt

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

this will fix your problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM