An MVC project that was written recently using vs 2012 was not accessible to the Web site after IIS was published, and after reviewing the data, it was tested on the online method, and found that there was no problem, compared with other people using VS2012 publishing interface, found that the interface is not the same, guess may be version problem, Then try the update in NuGet, install vs2012 Update 3 after testing, found that the VS2012 publishing interface has been consistent with the web, and then follow these steps to resolve the problem:
After the product has been installed, you want to install the test locally, but there is no IIS in the Admin tool.
The IIS service was later added to Windows features.
Installed successfully after adding.
But the first time you open it, the page prompts you to "Enable directory browsing."
When enabled, the Site directory is open.
Setting the default page is not good either.
Later, refer to this address operation: http://blog.csdn.net/festone000/article/details/24517489
The solution is as follows:
1, administrator to run "C:\Windows\System32\cmd.exe"
2, run "CD C:\Windows\Microsoft.NET\Framework\v4.0.30319".
3, run "aspnet_regiis.exe-i". (Re-register asp.net to IIS)
4, run "iisreset". (Restart IIS)