This morning, I wrote an MVC webapi demo environment: XP sp3+ VS2010 + asp. MVC4
And then take back the notebook in the evening to compile and run, the result error is as Follows:
Server Error in "/" Application.
Parser Error
description: An error occurred while analyzing the resources required to provide service to this Request. Please check the following specific parse error details and modify the source file as Appropriate.
Parser Error Message: the type ' EasyFactoryWeb.WebAPI.WebApiApplication ' could not be loaded.
Source Error:
Line 1: <%@ application codebehind= "Global.asax.cs" inherits= "EasyFactoryWeb.WebAPI.WebApiApplication" Language = "c #"%> |
source file: /global.asax line: 1
version Information: Microsoft. NET Framework version: 4.0.30319; asp. Net Version: 4.0.30319.18408
Then search the online information, find the correct solution, refer to the following links:
Http://www.jb51.net/article/31711.htm
Because my WIN7 is 64-bit +vs2013.
All the solutions from any CPU to x86 and then compile the normal appearance of the home page, should be as mentioned in the article may refer to some 32-bit DLLs so to change otherwise DLL type does not match it
About MVC4 project from 32-bit machine to 64-bit machine compile error solution