ASP.NET - deploy webapplication - Asked By rashmi on 02-Mar-12 11:54 AM

i want to deploy my website on localhost (windowxp,iis5.1,vs4.0) i  publishes it suceesfully but when i browse( it i found error
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

what will i do why this error come.
[)ia6l0 iii replied to rashmi on 02-Mar-12 12:44 PM
I also think you have installed IIS after installed the 4.0 framework

You should try re-installing the ASP.Net. Go to visual studio command prompt and type "aspnet_regiis.exe -i". Note that you need to first navigate to the 4.0 framework folder. You can enter the following command in your command prompt.

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

If this does not solve the issue, then the error message has all the necessary info. Please visit as the message says, and follow the instructions. 

Hope this solves the issue.

D Company replied to rashmi on 02-Mar-12 11:22 PM

It seems that the your folder which is inside the www root does not have enough rightd to connect with IIS.
the suggestions are given in previous post may help you.

Apart from that u can also try to provide full rights and access to this folder, and also repair your IIS. and restart the IIS.

hope this helps
Reena Jain replied to rashmi on 05-Mar-12 12:59 AM

1. Ensure Integrated Windows Authentication is enabled for the Virtual Directory in IIS.
2.  > aspnet_regiis -ga [AccountName]
3.  > aspnet_regiis -i
4.  Restart IIS
kalpana aparnathi replied to rashmi on 05-Mar-12 02:00 PM


Yes, you could use your IP address or to buy a domain name and point it to your PC. Just make sure to enable external connection on port 80 (default HTTP port) in your firewall/antivirus settings.


Somesh Yadav replied to rashmi on 06-Mar-12 01:25 AM

Follow the steps given below to fix this error
(1) Go to Start | Control Panel | Add and Remove Programs
(2) Click on the entry titled Microsoft .NET Framework 2.0 and select Change/Remove. The Microsoft .NET Framework 2.0 Setup dialog box opens up.
(3) Select the option titled Repair and the setup automatically performs the required repair work.
(4) You will be prompted to reboot the system after the completion of the process.
(5) Run the affected ASP.NET 2.0 application once again and the application should work fine without any problems.

NOTE : If you have installed Visual Studio 2008 Beta or Visual Web Developer Express Beta or .Net Framework 3.5, you may need to repair the .Net Framework 3.5 (Even though you use ASP.Net 2.X in your IIS 6). You may also need to go to IIS control panel and re-select the ASP.Net version.