I moved the asp.net 3.5 application to asp.net 4.0 and moved from Windows 2003 (iis6) to Windows 2008 r2 (iis7.5), and now I have this sys is undefined error.
I have an application running in a federated application pool. everything works except my ajaxtoolkit 3.0.20820.0 dll
I have now read several blog posts, most of them cover asp.net 2.0 web.config files, not asp.net 4.0 minimal configuration files.
Here are some parts of my current configuration file:
<system.webServer> <modules runAllManagedModulesForAllRequests="true"/> <validation validateIntegratedModeConfiguration="false"/> <handlers> <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" /> <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" /> </handlers>
and the other part:
<httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add verb="GET" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler" validate="false"/> <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" /> </httpHandlers>
There is not much information on issues with asp.net 4.0 and ajaxtoolkit http handler, so I hope some guru @stackoverflow can help me :)
EDIT:
since I have this stupid sys undefined thing, my global.asax gives this on_Error:
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& completedSynchronously)
on scriptresource.axd: S files
Edit2: it is strange that my local web.config has no handlers in web.config and runs on a development web server
Edit 3: people say Adrian has a solution here: http://budigelli.wordpress.com/2007/05/01/error-sys-is-undefined-error/ but I can't get it to work on IIS7
Edit 4: I read somewhere that IIS7 has wildcard matching in Handler mapping I saw that there is an asymmetric wildcard mapping in the sorted list above the .axd mapping. but now I don’t know yet how to configure mappings in IIS7 to support Ajaxtoolkit!