Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: AJAX Control Toolkit not working in Medium Trust [27647]

$
0
0
Default.aspx
```
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="True"
EnableScriptLocalization="True">
</ajaxToolkit:ToolkitScriptManager>
<div>

</div>
</form>
</body>
</html>
```

Web.Config
```
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<pages>
<controls>
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
</controls>
</pages>
<customErrors mode="Off"/>
<trust level="Medium"/>
</system.web>
</configuration>
```

Error
```
[ReflectionTypeLoadException: Kan een of meer van de gevraagde typen niet laden. Haal de LoaderExceptions-eigenschap op voor meer informatie.]
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
System.Reflection.RuntimeModule.GetTypes() +4
System.Reflection.Assembly.GetTypes() +70
AjaxControlToolkit.ToolkitScriptManagerConfig..cctor() +113

[TypeInitializationException: De type-initialisatiefunctie voor AjaxControlToolkit.ToolkitScriptManagerConfig heeft een uitzondering veroorzaakt.]
AjaxControlToolkit.ToolkitScriptManagerConfig..ctor(IAjaxControlToolkitCacheProvider cacheProvider) +0
AjaxControlToolkit.ToolkitScriptManager..ctor() +102
ASP.default_aspx.__BuildControlToolkitScriptManager1() +79
ASP.default_aspx.__BuildControlform1() +183
ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) +191
ASP.default_aspx.FrameworkInitialize() +57
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
System.Web.UI.Page.ProcessRequest() +72
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +58
ASP.default_aspx.ProcessRequest(HttpContext context) +48
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
```
Comments: I changed hosting providers and I have no more headaches... perhaps this is a cheap option for you as well. I didnt want to wait for a patch for this to push a site...

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>