Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

Well I installed .Net Framework 4.5 on the server still same problem.

Thanks a lot
Updated 29-Oct-12 2:53am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900