I wrote an MVC website myself and was able to run it directly in VS2010. However, a 403.14 error was displayed after adding to IIS, saying that the server did not start directory browsing or did not specify a default file.
Of course, I don't need to start directory browsing, and because MVC is controlled by router, I don't have to specify other default files.
I looked at C:\Windows\System32\drivers\etc under the host file, the inside of the IP is indeed the local 127.0.0.1, the corresponding website and MVC site binding URL is the same;
The version in the application pool is v4.0.30319, and the managed pipeline mode is "integrated" and should not be a problem. What is the reason?
Search on the Internet a lot of solutions, the first step to solve the project System.Web.Mvc.dll reference to the property "Copy Local" set to true, and then recompile, this project in the Bin folder more than a System.Web.Mvc.dll.
However, after running the Web site, the 403.14 error is displayed.
Behind the Microsoft Forum to find some ideas, because I installed the. NET Framework 4.0 in front of the IIS7 to add to the Windows feature. The. NET Framework 4 can be installed on a single computer in parallel with earlier versions of the. NET Framework. If IIS was previously enabled on the computer, the. NET Framework installation process will automatically register ASP. However, if you install the. NET Framework 4 before you enable IIS, you must run the ASP: IIS registration tool so that you can use which IIS to register the. NET Framework and create an application pool that uses the. NET Framework 4.
So I'm going to find that. The ASP. IIS Registration tool, different versions, it's in different locations, as follows
Location of the Aspnet_regiis.exe file
. NET Framework Version 1
%windir%\.net\framework\v1.0.3705
. NET Framework Version 1.1
%windir%\microsoft.net\framework\v1.1.4322
. NET Framework version 2.0, version 3.0, or version 3.5 (32-bit system).
%windir%\microsoft.net\framework\v2.0.50727
. NET Framework version 2.0, version 3.0, and version 3.5 (64-bit systems).
%windir%\microsoft.net\framework64\v2.0.50727
. NET Framework Version 4 (32-bit systems)
%windir%\microsoft.net\framework\v4.0.30319
. NET Framework Version 4 (64-bit systems)
%windir%\microsoft.net\framework64\v4.0.30319
My is the. NET Framework version 4 (32-bit system) and then cmd into the%windir%\microsoft.net\framework\v4.0.30319 directory, CD C:\windows\Microsoft.NET\ framework\v4.0.30319, can be executed with aspnet_regiis.exe-i.
Now reopen IIS Manager and you'll find a few more items under the application pool,
There are several more items in the handler mappings,
Now rerun my MVC website and you can see it successfully.
Report:
Configure mvc:http://www.itivy.com/ivy/archive/2011/2/27/634344118150714316.html on the IIS6.0
Configure mvc:http://iistips-sharad.blogspot.com/2011/05/configure-iis-51-to-work-with-mvc-30.html on the IIS5.0
- Previous CSS let Div always center
- Next bingmap with regular polygons and circles
-
Top
-
1
-
Step
IIS Configuration MVC Web site