How to resolve clientdependencyModule.cs not found in MVC 5

enter image description here
I upgraded the MVC 3 project to MVC 5, and when I run the application, I get the ClientDependencyModule.cs` file, no runtime exception was found.

How can I solve this problem?

Error Description:

An exception of type ' System.TypeAccessException ' occurred in ClientDependency.Core.Mvc.dll , but was not processed in the user code Additional information: Attempting to use the transparent security method " ClientDependency.Core.Mvc.MvcFilter.ValidateCurrentHandler() " to access the critical security type " System.Web.Mvc.MvcHandler " failed. Assembly ' ClientDependency.Core.Mvc, Version=1.7.0.4, Culture=neutral, PublicKeyToken=null ' is checked by AllowPartiallyTrustedCallersAttribute and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies become transparent by default, what could be the reason for this exception.

Please let me know if I can provide more information. Any help is much appreciated !!! Thanks:)

+6
source share

All Articles