Note that there are some explanatory texts on larger screens.

plurals
  1. POAjaxToolkit IIS7 Asp.Net 4.0: Sys is not defined; handler mapping issue?
    text
    copied!<p>I have moved my asp.net 3.5 app to asp.net 4.0 and moved from windows 2003 (iis6) to windows 2008 r2 (iis7.5) and now i have this <strong><code>sys is undefined</code></strong> error.</p> <p>i have the app running in an integrated application pool. everything works except my ajaxtoolkit 3.0.20820.0 dll</p> <p>now I have read several blog posts, most of them cover asp.net 2.0 web.config files and not the minimized asp.net 4.0 config files. </p> <p>here are some parts from my current config file:</p> <pre><code>&lt;system.webServer&gt; &lt;modules runAllManagedModulesForAllRequests="true"/&gt; &lt;validation validateIntegratedModeConfiguration="false"/&gt; &lt;handlers&gt; &lt;add name="AjaxToolkit" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt; &lt;add name="ChartImg" verb="*" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /&gt; &lt;/handlers&gt; </code></pre> <p>and another part:</p> <pre><code>&lt;httpHandlers&gt; &lt;remove verb="*" path="*.asmx"/&gt; &lt;add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt; &lt;add verb="GET" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler" validate="false"/&gt; &lt;add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" /&gt; &lt;/httpHandlers&gt; </code></pre> <p>There is not much info available for asp.net 4.0 and ajaxtoolkit http handler issue, so I hope some guru @ stackoverflow can help me out :)</p> <p><strong>EDIT:</strong></p> <p>since I have this stupid sys undefined thing, my global.asax gives this on_Error:</p> <pre><code>Error Message: This is an invalid script resource request. Stack Trace: at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context) at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) </code></pre> <p>it's on scriptresource.axd files :S</p> <p><strong>Edit2:</strong> the strange thing is that my local web.config hasn't got any handler stuff in the web.config and it runs on the development webserver casini</p> <p><strong>Edit 3:</strong> people say that Adrian has the solution here: <a href="http://budigelli.wordpress.com/2007/05/01/error-sys-is-undefined-error/">http://budigelli.wordpress.com/2007/05/01/error-sys-is-undefined-error/</a> but I can't get it to work on IIS7</p> <p><strong>Edit 4:</strong> I've read somewhere that IIS7 has a wildcard mapping at <code>Handler mapping</code> I have seen that there is an extensionless wildcard mapping in de sorted list above the .axd mapping. but now I still <strong>don't know how to configure the mappings in IIS7 to support the Ajaxtoolkit!</strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload