Showing posts with label line. Show all posts
Showing posts with label line. Show all posts

Wednesday, March 21, 2012

Parse Error from ScriptResource.axd in MicrosoftAjax.js

Upgraded to RC1. Works in Firefox for MAC and some MACs with Safari.

But on some Safari installations we are getting Parse Error at line five of MicrosoftAjax.js.

So, basically the entire ATlas package is not being recognized on some Safari installations.

Updatin MAC software on those machines did not help.

Question: Is there a way to create a custom ScriptResource.axd that includes a custom MicrosoftAjax.js?

Thanks in advance.

hello.
scriptresource.axd is a handler used to serve embedded js files. it runs only in the server, so there shouldn't be any issues with it. btw, can you use sniffer and see if you're getting the files correctly from the server?

It is getting to scriptresource.axd allright. It gets a parser error here:

// MicrosoftAjax.js
Function.__typeName="Function";Function.createCallback=function

The app was working with Beta 1.0 of Atlas on those MAC machines.

Failing machines: PowerMac using Safari 1.3.2 and there are no further software updates available from Apple on these machines.

Other MAC machine are still fine.

Will file a bug report with Apple and Microsoft.


Try running the app in debug mode or set ScriptMode="Debug" on the ScriptManager so that the debug scripts are used. That might help show where the error is really occuring.

Thanks,

Eilon

Parser Error <atlas:ScriptManager ID="sm" runat="server" EnablePartialRendering="True"&

I am getting the following error, and I have no idea where it is coming from, can anyone point me in the right direction please?

Line 31: </asp:DropDownList><br />Line 32: <br />Line 33: <atlas:ScriptManager ID="sm" runat="server" EnablePartialRendering="True">Line 34: <Scripts>Line 35: <atlas:ScriptReference Path="../../Includes/TextChangedBehavior.js" />

Rich

Can you provide a little more information please. Be a little more detailed.

From the looks of it...why are you using ATLAS? Upgrade to AJAX's newest version. One thought could be to Reigster your Toolkit at the top of your .aspx page.

Thanks,


Double checking your web.config should probably be the first step. Are you actually running the older, Atlas version or is that just the tag prefix you chose?

Make sure you have this line in your web.config:

<add tagPrefix="atlas" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

You can check the rest of your web.config against these guidelines: http://www.asp.net/ajax/documentation/live/ConfiguringASPNETAJAX.aspx