Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

We have upgraded our project from MVC 4 to MVC 5 When i Run this application I am Getting Following EXception

ClientDependencyModule.cs not found

with some error description

An exception of type 'System.TypeAccessException' occurred in ClientDependency.Core.Mvc.dll but was not handled in user code

Additional information: Attempt by security transparent method 'ClientDependency.Core.Mvc.MvcFilter.ValidateCurrentHandler()' to access security critical type 'System.Web.Mvc.MvcHandler' failed.

Assembly 'ClientDependency.Core.Mvc, Version=1.7.0.4, Culture=neutral, PublicKeyToken=null' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.



Thanks in Advance
Syed
Posted

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