Failed to access IIS metabase

I have too many problems with this IIS. At first it gave me an error. The virtual directory is rejected.

I realized that the docs tab did not have default.aspx (it has default.asp, default.htm, iistart, index.htm). Checked that liitle field allowed documents by default

Now he says Unable to access the IIS metabase Description: An unhandled exception occurred while executing the current web request. Check the stack trace for more information about the error and where it appeared in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access the IIS metabase

This is the first time I am working on IIS. So i need ur tips and fixes

Thanks SC

+5
source share
1 answer

You need to install .net infrastructure in the system

Open a Visual Studio command prompt and enter the following command

aspnet_regiis -ga <UserName>

if this does not work, than use this command

aspnet_regiis -i

alternatively you can copy and paste this command into the windows command line

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

this will fix your problem.

+17
source

All Articles