473,320 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Can not get AJAX 3.5 on VS 2008 to work

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
Feb 1 '08 #1
3 1618
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
Feb 1 '08 #2
On Feb 1, 10:38*am, "Marc Gravell" <marc.grav...@gmail.comwrote:
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.
Feb 1 '08 #3
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" <ma*******@gmail.comwrote in message
news:cc**********************************@v17g2000 hsa.googlegroups.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

Feb 1 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Liz | last post by:
I have both VS2005 and VS2008 installed and now find I need to work on some code using AJAX extensions/toolkit ... and I'm really a bit lost on what it is I need to install and hopefully have it...
1
by: mazdotnet | last post by:
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...
5
by: simon | last post by:
hello, I have a server set up on my local (home) network and can not get an ajax application to run on the box. it works fine on our developement server and also works fine locally. I...
7
by: Joe | last post by:
I added some ajax to my asp.net web site and will Ajax just doesn't seem to work. Does Any one PLEASE have any ideas on why Ajax doesn't work on Apache 2.2.6 w/asp.net 2.0
6
by: SAL | last post by:
hello, I'm using a radiobuttonlist in an updatepanel in an item template in a Gridview control. I'm populating the radiobuttonlist in the RowDataBound event. I have the control toolkit registered...
1
by: Newcomsas | last post by:
Hello. I have got a little dilemma to solve about AJAX and VS2008. At the moment I'm working on a C# ASP.NET web site in VS2008 environment. The machine that is going to host the site runs with...
2
by: tshad | last post by:
I am rewriting my VS.Net code to convert from .net 1.1 to .net 3.5 (VS 2008). Now that Ajax is part of the VS, I was curious if it is better to use Ajax.net or is Anthem still a better bet? I...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
7
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.