AJAX Calendar Not Showing on Server

Hi,

I have a webpage where I have the ajax calendar extender attached to my textbox. When I debug in localhost, the calendar pops up when I click the textbox. After I deploy to my server, it no longer pops up when I click the textbox.

I recently migrated from .NET 2 to .NET 4 (VS 2008 to VS 2010). Before, when I deployed to the server, the calendar extender would work when deploying with .NET 2 as the website asp.net app pool. Now when I deploy with ASP.NET 4.0, it is not working.

Can someone please advise? I will give 500 points.
50fordAsked:
Who is Participating?
 
50fordConnect With a Mentor Author Commented:
thank you everyone for your help. I realized that the web config was the source of error. The handler that calls the ajax dll was still set to 2.0 while everything else had already been updated to 4.0.

below is the handler code that needed to be changed. the v2.0.50727 had to be updated.


<add name="AXD-ISAPI-2.0" path="*.axd" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0"/>

Open in new window

0
 
APoPhySptCommented:
is tha ajax calender extender part of the framework or is it an external component?
0
 
50fordAuthor Commented:
how can I check? I did not author the original code and the extender was already in place when I took over the process.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
APoPhySptCommented:
are you registering something with the '<%@ Register %>' tag?

for example, for my ajax calendar to work I have to register an external dll like so:
"<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>"
0
 
50fordAuthor Commented:
Yes, we do register it.
0
 
APoPhySptCommented:
Have you checked if there isn't another version out for that same component that targets newer frameworks like 4.0... the old version might not be fully compatible or fully functional
0
 
50fordAuthor Commented:
I'm new to AJAX so I apologize if these sound ignorant...

why does it run when I debug on my localhost then?

also, how would I check the version of the current ajax toolkit?

so if I were to download the latest version, do I simply replace the dll file in the bin folder with the newest version that I download? Essentially, how do i upgrade?
0
 
APoPhySptCommented:
there are no stupid or ignorant questions.. I myself am no expert and I learn by asking and sometimes by trial and error, like everyone else. And The problem might not even occour because of this.

from personnal experience the phrase "works on my machine" is something that sooner later a programmer will experience, as it often occurs.
As for checking the version you should try and discover what component you are importing look for their website and look for updates or newer versions. if there is a newer version, backup what you already have, in case anything goes wrong, since we will be deleting some files. Then, after backing up, delete the old dll and any other files related to it, and throught MS VS2010 browse for the reference to the new dll (option: 'Add Reference')


0
 
dhawalsethCommented:
Hi 50ford,
you can check the check under the reference folder from your solution explorer or you can go to the solutions bin folder using windows explorer and looking for the toolkit in the Release/Debug folder.

As apophyspt mentioned, there might be version mismatch. Also, you can check the register directive <@Register...> on top of the page you are trying to access, you might get the version of dll there as well.


Regards,
Dhawal Seth
0
 
50fordAuthor Commented:
thank you to all who offered solutions. I was able to resolve the issue through trial and error as well as research online.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.