Can not get AJAX 3.5 on VS 2008 to work

Can not get AJAX 3.5 on VS 2008 to work

am 01.02.2008 16:27:59 von maflatoun

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

Re: Can not get AJAX 3.5 on VS 2008 to work

am 01.02.2008 16:38:06 von 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

Re: Can not get AJAX 3.5 on VS 2008 to work

am 01.02.2008 17:47:24 von maflatoun

On Feb 1, 10:38=A0am, "Marc Gravell" wrote:
> 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 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.

Re: Can not get AJAX 3.5 on VS 2008 to work

am 01.02.2008 17:58:42 von NoSpamMgbworld

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!
|
*************************************************
"mazdotnet" wrote in message
news:cc0f95c0-b0aa-41b4-938e-f8881e10baa7@v17g2000hsa.google groups.com...
> 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