PC Review


Reply
Thread Tools Rate Thread

Can not get AJAX 3.5 on VS 2008 to work

 
 
mazdotnet
Guest
Posts: n/a
 
      1st Feb 2008
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
 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      1st Feb 2008
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


 
Reply With Quote
 
mazdotnet
Guest
Posts: n/a
 
      1st Feb 2008
On Feb 1, 10:38*am, "Marc Gravell" <marc.grav...@gmail.com> 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 <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.
 
Reply With Quote
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      1st Feb 2008
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" <(E-Mail Removed)> wrote in message
news:cc0f95c0-b0aa-41b4-938e-(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VisualStudio 2008 and AJAX problem when using IIS mazdotnet Microsoft ASP .NET 1 1st Feb 2008 04:46 PM
Upgraded to ASP.NET 3.5, Installed VS 2008 and now AJAX problem mazdotnet Microsoft ASP .NET 0 1st Feb 2008 02:39 AM
AJAX Toolkit 3.5 on VS.NET 2008 RTM? =?Utf-8?B?QXNhZg==?= Microsoft ASP .NET 8 23rd Nov 2007 07:50 AM
AJAX Problems After VS 2008 Beta Install rowe_newsgroups Microsoft ASP .NET 2 24th Oct 2007 03:37 PM
Where Does AJAX Go in VWD 2008? =?Utf-8?B?U3BlZWR5VmV0dGU=?= Microsoft ASP .NET 0 31st Jul 2007 12:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:55 PM.