Can not get AJAX 3.5 on VS 2008 to work

M

mazdotnet

Hi guys,

On my work computer I had VisualStudio 2005, AJAX 1.0 and AJAX toolkit
installed. 2 days ago I installed VisualStudio 2008 and every AJAX
test that I do (IIS), does a postback. When I open my test web
application using File System which uses the .NET server
(http://localhost:4791/AjaxTest2/) it works. However, when I open my
files by using IIS (http://localhost/AjaxTest2/), my application runs
fine except it does a post back every time (not really AJAX).


BTW, view source shows me the JS required for AJAX.

Any idea why my AJAX calls in IIS fail? Do I have to update anything
else on my computer?

Thx
Maz
 
M

Marc Gravell

I'd be tempted to have a look in "fiddler", to see if some requests
(in particular for js) are getting rejected by the server? If so, you
might need to tweak your IIS settings or web.config at some level (app
/ site / machine, etc).

i.e. trace against the site that works, and compare/contrast to the
trace against the site that doesn't. Play spot the difference.

Marc
 
M

mazdotnet

I'd be tempted to have a look in "fiddler", to see if some requests
(in particular for js) are getting rejected by the server? If so, you
might need to tweak your IIS settings or web.config at some level (app
/ site / machine, etc).

i.e. trace against the site that works, and compare/contrast to the
trace against the site that doesn't. Play spot the difference.

Marc

Thanks the problem was with <xhtmlConformance mode="Legacy"/> in the
web.config file. I removed it and now it's fine. There are some
articles on the net explaining why this caused the unpredictable
results.

Maz.
 
C

Cowboy \(Gregory A. Beamer\)

Have you examined the web.config and ensured it is using the 3.5 libraries.
If not, create an new AJAX site and copy the AJAX declarations from the new
site's web.config to the site you are attempting to fix's web.config. That
should solve the problems.

And, yes, JS is required for AJAX. AJAX stands for (A)synchronous
(J)avaScript (A)nd (X)ML. The () added for emphasis.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top