Well now I can view the contents of my WebResource.axd, before I couldn't and it shows up as normal javascript. However my ScriptResource.axd still shows up encoded. I'm pretty sure that I used to be able to view the javascript in ScriptResource.axd.
I can't get fiddler to capture my localhost automatically, not sure why, everything looks correct. However when I build the request in Fiddler, ScriptResource.axd comes GZIP encoded and WebResource.axd does not. If I remove encoding then the javascript is displayed in plain text (in Fiddler).
I am using the blowery.web http compression module in my app but thinking that could be the problem I completely removed it, rebuilt the app and still no luck. Even with the compression module on I had application/x-javascript excluded.
Also another thing... I deployed the project to my IIS web server and when it runs I get the following, which I am not sure if it's related:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods) +378
System.Web.Script.Services.PageClientProxyGenerator.GetClientProxyScript(HttpContext context, IPage page, Boolean debug) +45
System.Web.UI.ScriptManager.RegisterServices() +728
System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +244
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2012724
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566
And when debugging on my local dev the project runs but I get a javascript error:
Line: 1
Error: Invalid character.
I'm assuming it's talking about the ScriptResource.axd file because it's still encoded. When I hit debug on the JS error it takes me to my jsdebug file (I have debugging ON in my script files) and the error is: Microsoft JScript runtime error: 'Type' is undefined on this line:
Type.registerNamespace('Notes');
I'm assuming that is because the ScriptResource.axd is encoded and cannot be translated into a valid JavaScript file.
I'll try to duplicate this in a smaller, new project