Today, we are migrating an MVC Web site developed in the. NET Framework 4.5 to a single server on Win2003, IIS is version 6.0.
Server environment:
1, win2003 Enterprise Edition +sp2
2. IIS 6.0
3. The. NET Framework 4.0 (Win2003 does not support 4.5).
Start setting up IIS after the environment is ready.
1. Add a virtual directory by right-clicking on "Default Web Site", "new", "Virtual directory".
2. Open the properties of the new virtual directory, and on the Virtual Directory tab, click Configure.
3. In application configuration, on the Mappings tab, click Add
4, "Executable file" select C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll file.
"Extension" fills in MVC.
"Confirm file exists" before the hook is removed.
5. On the Mappings tab in application configuration, click Insert
6, "executable" or select just the DLL file, "Confirm the existence of files" before the hook removed.
7, in the virtual directory properties of the "ASP" tab, "ASP." Select 4.0.
The setup of the Ok,iis is complete.
Ps:1, because the program is 4.5, so the target in the Web. config is changed to 4.0. The program is still compiled with 4.5, just change the config just fine.
2, if the hint is missing some DLLs, it can be found in this machine to stick to the server on it.
Win2003 IIS6.0 under Deployment of ASP. NET MVC4