Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My hosting provider had changed the trust level to medium because of security reason and not able to overwrite using web.config file.

Because of above setting I am getting below error for my AjaxControlToolkit.
This issue seems to be happening because refelection can not be allowed without full trust level.
Please help me to fix this issue.

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.

Source Error:
Line 13: <body>
Line 14: <form id="form1" runat="server">
Line 15: <cc1:ToolkitScriptManager ID="scriptManager" runat="server">
Line 16:
Line 17:


Stack Trace:
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
System.Reflection.RuntimeModule.GetTypes() +4
System.Reflection.Assembly.GetTypes() +61
AjaxControlToolkit.ToolkitScriptManagerConfig..cctor() +68
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