I have upgraded my MVC 3 project to MVC 5 and when I run the application I receive ClientDependencyModule.cs` file not found runtime exception.
How can I solve this problem ??
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.
Please let me know if I can provide any more info regarding. Any help is greatly appreciated !!! Thank You :)