Wednesday, March 28, 2012

ASP.NET AJAX deployment problems.....

Hi guys,


I've just added ASP.NET AJAX to my web site and when I run it under VS 2005 everything works fine. However, when I try and run it on my dev machine using IIS (I'm using XP and IIS 5) the AJAX stuff doesn't work.


So, I tried deploying it to my production web server (Windows Server 2003 and IIS 6 with AJAX extensions installed and verified by checking GAC) it still doesn't work!


Can anyone tell me what I'm missing? What's different between the VS web server and IIS??


TIA

Jon

Hi Jon,

Check your Web.config file with newly created ajax enable website

Swati


Hi Jon,

Check your Web.config file with Web.config of newly created ajax enable website

Swati


Hi Swati,

I've done this and everything that needs to be in the web.config is there. As I said it works under VS2005 just not when deployed.

Jon


hi jon,

i am having the same problem. were you able to find the solution. if yes then can u please guide me on that

jitendra


No luck yet. If you figure it out please post the solution.

Thanks

Jon


Hi Jon,

The most significant difference between them is they are running with different windows account.
VS web server is running with the account you logged in windows which is usually an administrator. When working with IIS, it's running with Asp.net(IIS 5) or Network Service(IIS 6).
So your issue is very likely to be caused by privilege, please review the log of the IIS to get relevant information.

Make sure system.web.extension and system.web.extension.design.dll is installed on the server.


On your production server can you run any asp.net application ( without Ajax)?

If not, then you may have to enable ASP.NET on windows server 2003

Try to reinstall the required dll's system.web.extension.dll and system.web.extension.design.dll


I'm having the exact same problem. Everything works great locally, but when i move it to my dev webserver the update panel has stoped working. Everything makes the full postback. I have been pulling my hair out trying to get this to work. I have confimed that AJAX is installed in the GAC both locally and on the developement server. The webconfig is the same for both projects. I cannot for the life of me figure out why its not working. I am accessing my project on the development server through a UNC path. I have fixed the entries in the Code Access Security of the 2.0 configuration tool to stop getting the hostingpermission errors.

Any other suggestions that I should try?

Jason Snipes


Sepinsnosaj:

I'm having the exact same problem. Everything works great locally, but when i move it to my dev webserver the update panel has stoped working. Everything makes the full postback. I have been pulling my hair out trying to get this to work. I have confimed that AJAX is installed in the GAC both locally and on the developement server. The webconfig is the same for both projects. I cannot for the life of me figure out why its not working. I am accessing my project on the development server through a UNC path. I have fixed the entries in the Code Access Security of the 2.0 configuration tool to stop getting the hostingpermission errors.

Any other suggestions that I should try?

Jason Snipes

Once again the "Post Question on Listserv = Find Solution shortly after" mystery works again. My project is a subweb. In the main web in the web.config i still had the <xhtmlConformance mode="Legacy" />set. By removing that statement my ajax stuff started to work in my webweb.

You can read about the <xhtmlConformance mode="Legacy" /> issue here:http://weblogs.asp.net/scottgu/archive/2006/12/10/gotcha-don-t-use-xhtmlconformance-mode-legacy-with-asp-net-ajax.aspx

Jason Snipes


Thanks Jason, I tried this and it worked for me on both the development machine running IIS5.1 and on the production server (IIS6)

My ajax enabled site is housed as a virtual directory under the main web site and to get it to work I had to remove the<xhtmlConformance mode="Legacy" />

line from the root web.config file!

Jon

No comments:

Post a Comment