Solved

ASP.NET Ajax Toolkit not working on production site but does on dev site

Posted on 2011-02-25
12
811 Views
Last Modified: 2012-05-11
Dear experts,

I have an ASP.NET app (C#) targeting the 3.5 Framework.

On one particular page I reference the AjaxControlToolkit and Sysytem.WebExtensions, and in the markup I use an UpdatePanel containing Triggers and a ContentTemplate. The trigger is a RadioButtonList, and I'm using a DatePicker on one textbox, and a Watermark on another textbox.

I have my website running on my local development machine which displays no problems whatsoever - datepicker and watermark are present and no postback when I change the selcted item in my RadioButtonList - sweet!

I have (what I'm positive is exactly) the same code uploaded to my dev website on our web server and this also displays no problems whatsoever - sweet!

I also have the same code uploaded to the production website, on the same server as the dev code, however the date picker and the watermark are nowhere to be seen and every time I change the selected item for the RadioButtonList the whole page is posted back.

Everything else with the whole app is exactly as it should be.

It's been quite some time since I added the code to the dev website on the web server - so am I just forgetting to do something on the server itself?

Any help would be appreciated as I feel I can't see the trees for the wood, and it's driving me mad!
0
Comment
Question by:Loomy
  • 5
  • 4
  • 3
12 Comments
 
LVL 12

Expert Comment

by:Pra4444
Comment Utility
Is the AjaxcontrolToolkit.dll file found on the bin directory of your server where you deployed your project???
0
 
LVL 39

Expert Comment

by:Kyle Abrahams
Comment Utility
You need to install the ajax runtime or the toolkit assemblies on the prod server as well.

0
 

Author Comment

by:Loomy
Comment Utility
Pra444 - Yes the AjaxControlToolkit.dll is in the bin directory of the application on the server.

ged325 - I have two applications uploaded to the same web-server. One is my development code and one is my production code and both have the AjaxControlToolkit.dll in their respective bin directories.

Of the two apps (which are the same code) the dev code works properly but the production code doesn't.

The production code that doesn't work does not produce any error messages.
0
 
LVL 12

Expert Comment

by:Pra4444
Comment Utility
hmm..weird..

Do the websites(both production and  development) target the same .net framework version ???
0
 

Author Comment

by:Loomy
Comment Utility
They do yeah - both 3.5.

That's what's so puzzling about it. I can discern no difference between them at all. I've uploaded the bin again but it doesn't seem to make any difference. I removed the AjaxControlToolkit.dll from the bin in order to verify that it would break - which it did - so I think it has eveything that's required apart from something very simple and obvious that I must be overlooking.
0
 
LVL 12

Accepted Solution

by:
Pra4444 earned 500 total points
Comment Utility
Ok...

I would suggest you carefully compare the contents of both your test and production web.config file.

If you still cant find any diffference, try using firebug for firefox and try to debug uing it.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 12

Expert Comment

by:Pra4444
Comment Utility
0
 

Author Comment

by:Loomy
Comment Utility
I've read the article and my system.web node doesn't have the xhtmlConformance element.

I'll do as you suggest and try comparing web.config files again and will try debugging in FF when I get the time.

Many thanks for your suggestions.
0
 
LVL 39

Expert Comment

by:Kyle Abrahams
Comment Utility
Also it might be a DLL issue, specifically if it's not in the gac.  Would compare your binaries.
0
 
LVL 39

Expert Comment

by:Kyle Abrahams
Comment Utility
Do you need further assistance?
0
 

Author Comment

by:Loomy
Comment Utility
Havn't had chance to follow up on last comment as not at work till Monday.
0
 

Author Closing Comment

by:Loomy
Comment Utility
Many thanks! <runtime> node was missing from Web.config.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now