Required:. NET Framework 2.0 SP1 (v2.0.50727)
Use vs2008 to open the MVC Project
Convert the target platform. NET 2.0 (in fact, the platform can maintain 3.5, but do not write C #3.0 statements in the view, this requires your own constraints, and after conversion, it is regarded as wrong)
Copy System. Core. DLL to the bin folder.
If the code is compiled, it indicates that the code can be run. If the Code fails to be compiled, check whether the new C #3.0 feature is used in syntax.
Rewrite it as a non-feature Method
If you want to run the program with the. MVC extension, go to "website properties"> "home directory"> "configuration"> "application ".ProgramAdd a. MVC
The executable file is X: "Windows" Microsoft. NET "Framework" v2.0.50727 "aspnet_isapi.dll.
Check whether the file exists. In this way, the. MVC extension is added.
If you want to access the website with an empty extension. Add a token to the above configuration to map to X: "Windows" Microsoft. NET "Framework" v2.0.50727 "aspnet_isapi.dll
Check whether the file exists or not.