asp.netajaxvisual-studio-2013webformswebresource.axd

Problems with ScriptManager, ASP.NET Web Forms (4.5), Visual Studio 2013 Prof., AJAX


I have the problem that I cannot use the ScriptManager in my ASP.NET Web Forms (4.5) anymore. It always throws the following critical JavaScript error messages (SCRIPT1002 is telling a syntax error) in Internet Explorer 11:

enter image description here enter image description here

I tried to solve the problem with https://pavanarya.wordpress.com/2011/page/11/ and found out that WebForms.js shall cause the problem regarding to the decrypted WebResource.axd URL of the first error message (see above).


Furthermore, I found out that the error vanishes if I remove the line

enter image description here from my Layout.Master file. All error messages vanish, but AJAX elements like TreeView (I also use UpdatePanel and Calendar) do not work anymore then, too.


I also tried the Script Resource Viewer from http://www.dotneti18n.com/Downloads.aspx via http://www.guysmithferrier.com/post/2007/07/Script-Resource-Viewer.aspx. But the funny thing is that even the Script Resource Viewer implements the line

enter image description here
which exactly causes the same error as before, and so it is not a real help for me.


It must be some global problem in the whole project since it does not accepts any ScriptManager (no matter in which ASPX file) anymore. Does someone know that problem?

Many thanks in advance!!!


Remark: The Firefox Browser does not throw an error message, but it does not show the TreeView correctly, too. All images (ImageSet) of the TreeView are missing and the Web Browser displays text instead of the images. I also use a Chart (System.Web.DataVisualization) in the Web project, it was the last item which was added there. I use C#.


Solution

  • I am unable to put this as comment. So I will put it as Answer:

    Use ToolScriptManager instead of ScriptManager.