Hi Guys
In the last month I studied the new Microsoft technique of MVC 4 the WEB API. For the application development I installed the Microsoft plug-in for VS2010 that provide MVC4 functionality in it.
I read a lot of articles about this technique and build the application that is work fine on local host. But after publishing and coping files into the server ( MS Server 2008 IIS 7) I got Verification internal server exception:
Server Error in '/' Application.
Operation could destabilize the runtime.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[VerificationException: Operation could destabilize the runtime.] System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +17 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +318
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +233
After hours in WEB search I did not find nothing that helps me to resolve this problem.
I tried to publish the default MVC4 - WEB API project into server and got the same exception.
As I saw the exception throws inside MVC library.
The difference between my Local host and server is the installation of Microsoft plug in for VS. All other features (like IIS, WINDOWS etc.) is the same and have same configurations.
May be this plugin to VS2010 install .Net framework 4.5 and I need to install it in my server(I suspicious about this) or somebody got the same error and can help me to resolve it.
{Update}
Well I installed .Net Framework 4.5 on the server still same problem.
Thanks a lot
Alex