Syntax error: line 1 using Microsoft ASP.NET AJAX

Tags: .NET, AJAX, ASP.NET, Atlas, IE, JavaScript

I read the last post from Rick Strahl about IE 7 Script Errors. Yes, I found this already on some sites, too, so I started to find the real issue.

For this I started the great Fiddler tool to analyse where the problem is. When you have Script Debugging enabled in your Internet Explorer settings you will get an alert when the script error appears. Don't click on this alert and have a look at the Fiddler output. When I open the example web page Rick is talking about it will always stop at the request for /atlasglob.axd. The web server will send an http error message 302 Found with an redirect to /Message-MSDN.htm?aspxerrorpath=/atlasglob.axd.

In Fiddler you can add JavaScript to handle requests more in detail. So I added two lines to prevent loading of this file:

if (oSession.url.indexOf("atlasglob.axd")>-1) {
    oSession.oRequest.FailSession(403, "", "");
}

After reloading the page no script error appears, and the page is currently working the same. If you look through all the requests you will see that the MSDN web page is already using Atlas.js. Is there a common problem with Microsoft ASP.NET AJAX when the atlasglob.axd could not be found? And why is it missing, a configuration error?

2 Comments

  • bleroy said

    Thanks for the bug report. Bugs can also be more efficiently filed at this url: https://connect.microsoft.com/site/sitehome.aspx?SiteID=210&wa=wsignin1.0 I haven't been able to reproduce this problem. Are you using a localized version of MSDN? Anyway, looking at the page reveals that it's using an old CTP. Please contact me through e-mail so that we can determine exactly how to reproduce, diagnose and fix whatever problem you are experiencing.

Comments have been disabled for this content.