The first thing to do is to add the relevant mapping of your application. To do this, one must go to Start-> Control Panel-> Administrative Tools-> Internet Information Services. Then, one should click on the Internet Information Services icon, right-click on the MVC application, and select Properties. On the Virtual Directory Tab, choose Configuration, as shown below:
If You are getting "Failed to access IIS metabase" error while browsing asp.net site or aspx page in IIS server then you may have installed IIS Server after installing the .NET framework.
If that's the case, try running to repair your ASP.NET installation and set up all of the appropriate ISAPI extension mappings.
Open visual studio command prompt and type this command
aspnet_regiis -ga
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
No comments:
Post a Comment