Saturday, March 24, 2012

ASP.NET 2.0 AJAX WIndows 2003 Server - SYS UNDEFINED ERROR

I am developing one of my web sites where I am trying to implement AJAX and when I deploy it to Windows 2003 server with IIS 7, I get sys undefined JavaScript error. I searched every article on Google and did not find solution to solve it.

I am using ASP.NET 2 AJAX on IIS 7, Windows 2003 platform.

Web site where I am implementing it called47mileads.

Thank you very much for your help!!!

GK

Is the web.config modified to be ajax enabled?

Is Ajax installed on the webserver? OR Are the ajax extention dll's in the bin folder of the website?

==> You should answer YES to both questions; otherwise you get the error you mentioned above.

Kind regards,
Wim


I started project as AJAX enabled project and I tried both adding dll to bin etc...

I mean dlls not needed in bin since I am not using toolkit (but I added ajaxcontroltoolkit.dll as well). Page where it is happening:http://www.47mileads.com/Account_Login.aspx

Still same error.

Thanks,
GK


It looks like you're referencing the client side framework before it has loaded. This should be exactly what you need: http://encosia.com/2007/08/16/updated-your-webconfig-but-sys-is-still-undefined/


47mileadsdotcom:

I started project as AJAX enabled project and I tried both adding dll to bin etc...

I mean dlls not needed in bin since I am not using toolkit (but I added ajaxcontroltoolkit.dll as well). Page where it is happening:http://www.47mileads.com/Account_Login.aspx

I am not talking about the ajaxcontroltoolkit.dll here.

But I'm talking about the System.web.extentions.dll and the system.web.extentions.design.dll.

Lets say you install Ajax locally. Then those dll's get installed in the GAC (global assembly cache). This way they are accessible to all applications. Therefore they do not need to be included in the BIN of the application.

BUT: Lets say you deploy your application to a webserver. On this webserver, there is NO ajax installed, so NO dll's in the GAC of the webserver. NOW both ajax dll's need to be in the BIN of your application!

Could you please comment on my observations? Regarding the fact that I'm wrong / Or right! :)

Kind regards,
Wim


I installed ajax on the web server as well. Still not working. I also have visual studio on the server installed and I create ajax enabled web application on the server and as soon as I convert it to the web site I get sys undefined.

Thank you very much for your help.

GK


Hi GK,

im not sure but I think I heard this problem before and I think that reinstallation is the only solution (but please try to verify that through articles or threads on the internet)

try reinstalling the asp.net framework, and iis and the ajax framework.

kind regards,
wim


Are you using any URL rewriting on your site?

When I try to load your WebResources and ScriptResources, I get a 404 error. The "Requested URL" makes me wonder about rewriting issues:

Server Error in '/' Application.

The resource cannot be found.

Description:HTTP404. The resource you are looking for (or one of its dependencies)could have been removed, had its name changed, or is temporarilyunavailable. Please review the following URL and make sure that it isspelled correctly.

Requested URL:/.aspx



Yes, I use URL rewriting, but page "account login" does not use URL rewriting.

GK


Hi GK,

But as you said above, even if you create an out-of-the-box ajax enabled website, without extra functionality, even then you get the error no?

This makes me guess something is wrong with the installation ...

Wim.


47mileadsdotcom:

Yes, I use URL rewriting, but page "account login" does not use URL rewriting.

It doesn't itself, but it appears that your rewriter might be interfering with the WebResource and ScriptResource requests embedded in the page (which are used to set up the ASP.NET AJAX functionality on the client).

See if you can globally exclude *.axd requests from rewriting.


I created web application in the same directory as my web site on the server. Error I got was update pannel class reference in the code was not found. I referenced System.Web.Extensions DLL and it started working. When I was developing this project on my local box I did not have to reference System.Web.Extensions DLL since it was already referenced in my web.config. AJAX was installed on my server but web extensions assembly was not accessible from web.config. All you have to do is reference System.Web.Extensions in your references before you deploy your project.

Thank you very much for your help!!!


GK

No comments:

Post a Comment