Wednesday, 19 February 2014

AjaxControlToolkit Unable to load one or more of the requested types

Problem:

While loading the aspx pages from IIS you will get the following error.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. 
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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.


This is the issue with framework 4.0.

Solution:

Add the following lines to your web.config file.


     
 <system.web>

      <trust level="Full" />

</system.web>

1 comment: