The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception

The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception

ASP .NET Issue: The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception.
 
Environment: When we running our web application in local development environment. Everything is working fine. But when we deploy our code in production. It failed with following issue:
 
The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception.
 
Cause: After lots of hit and trial i come to know it failing because of AjaxControlToolkit. We are using AjaxControlToolkit in our web application. AjaxControlToolkit requires Full Trust mode of ASP .NET to work. By default trust value of ASP .NET is medium. For resolving the issue we add following code in our web config file.
 
<trust level="Full"/>
 
Please refer this article for full error details.
 
Your comments will be highly appreciated.
0 Comments
Leave A Comment

Please login to post your valuable comments.

Join the newsletter

Get the latest vLemonn news first

share