Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ajax won't work on web host

Status
Not open for further replies.

OrlaL

Technical User
Feb 15, 2009
10
Hi,

I have uploaded my website to an Irish web host but my AJAX toolkit won't work. I asked the hosting provider if AJAX works on the web host and if it is on the server and it is.

My website is working fine except for the Ajax tools. They won't error, they are just blank. Or in the example of an UpdatePanel the page refreshes.

The ajaxtoolkit I am using is 3.5, I have my dll's added to my bin folder. I added the ajax toolkit to an existing website so maybe there is a problem there. When I play the website from Visual Studio it plays fine and the ajax works.

I am so lost, I need to get this working as soon as I can!

Thanks for any help,
Orla
 
Maybe you should be more specific with "doesn't work". Any cross-domain work around?

Cheers,
Dian
 
For example I have a rounded corners extender attached to a panel but when I put it on the web host it doesn't show anything there. I have modalpopups but when I click a button that triggers one the page just refreshes with no popup. I hope this explains it better.

I'm not sure what you mean by cross-domain work around?

Thanks
Orla
 
Not show" means a red cross? Do you get any javascript errors?

With cross-domain thingies I mean this

Cheers,
Dian
 
Not show" does not mean red cross. For the rounded corners extender here is my example: There is a roundedcorner extender around the labels and textboxes on the right of the page.

I don't get any javascript errors. I looked at that link, I'm don't have any that I know of but I do have script tags for javascript and they are working fine.
 
You get errors when you go to that link? I opened it with other computers and I don't get any error. What does this mean?
 
Hi

FireFox Error Console said:
[COLOR=white red] - [/color] ASP.NET Ajax client-side framework failed to load.
Source File:
Line: 429​

[COLOR=white red] - [/color] Sys is not defined
Source File:
Line: 445​

[COLOR=white red] - [/color] WebForm_SaveScrollPositionSubmit is not defined
Source File:
Line: 1025​
Which sounds reasonable, as no script is returned for the following requests :
[ul]
[li][/li]
[li][/li]
[li][/li]
[li][/li]
[li][/li]
[li][/li]
[/ul]


Feherke.
 
Ok I found the errors your talking about when I opened it in a different web browser! Thanks for the help, I'll look into these errors and google them to try and solve the errors. Unless you have any more information that can help me?

Thanks,
Orla
 
Incidentally:

I asked the hosting provider if AJAX works on the web host and if it is on the server and it is.

There is NO server-side requirement for bog-standard AJAX to work. It just does.... so either you're not talking about bog-standard AJAX, or your host hasn't got a clue what they're talking about.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
The Webresource.axd and ScriptResource.axd are not real files on the server so I found a solution to this on searching the "'Sys' is not defined" error. There was a problem in the IIS Manager and the web.config. I solved these errors so thanks for the help.

Not sure about the host. I found someone on another forum to ask your host to ensure it will work.

Thanks for the help,
Orla
 
your using webforms server side controls which happen to have ajax behavior. server side controls require the ms ajax assmeblie(s) check with the provider to ensure they have the ms-ajax 3.5 binaries (dll, not js files) loaded on the server.

if your website is targeting the 3.5 framework they should be included in the core .net framework. if the hosting provider doesn't support .net 3.5 you need to downgrade to 2.0 and include the ms ajax extension binaries. these binaries would then need to be deployed with your application in the bin directory.

you have to *love* webforms. ajax functionality reliant on server side programming :)

all in all it sounds like you have a server side error. the defunct ajax is just a symptom.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Hi JMeckley,

Thanks for the help but I have figured the problem out. It's not web forms, I just had something missing from my web config.

This problem is fixed for anyone else that visits this forum.

Thanks to all,
Orla
 
can you share the solution so others can benefit?

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
I searched through google for any possible solution to this problem and one main problem most people got was incorrect or missing lines in their web config files. Here is a good link for this and the "Sys is undefined" error:


Then I had to go into my IIS Manager and add a script map. This solution can be found here:


Hope this helps,
Orla
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top