Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to access IIS metabase

Tags:

asp.net

iis

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

like image 733
user575219 Avatar asked Apr 22 '11 07:04

user575219


1 Answers

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

like image 120
Pranay Rana Avatar answered Oct 18 '22 09:10

Pranay Rana