VS2012 IIS publishes the. NET MVC Web site and does not access it properly __.net

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.