PopupControlExtender Problem

I am using a PopupControlExtender in an asp.net web page that gets dynamic content from a page method and displays it to the user in a Panel. It works great using local file system from the VS2008 , but when it runs from the web server the PopupControlExtender is not working and the server eventlog writes an error generated from the Page_Load method:
" [System.NullReferenceException] Object reference not set to an instance of an object". I know what that means but I cannot figure out why it only happens on the web server.

1. I have confirmed that the correct AJAX dll is on the web server that is in my VS2008 project
2. Using the same data source

Please, any ideas
Who is Participating?
JonAlbertConnect With a Mentor Author Commented:
I figured it out, this setting was not in the web.config

                  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
There is not enough information here.
Try deploying pdb files with your site and see if you can at least get a line number in the error.
That might lead you to the offending code.
JonAlbertAuthor Commented:
cslimrun, It is crashing when trying to get the previousPage  object in the Page_load event. (also i am using Master Pages, don't know if that means anything)
JonAlbertAuthor Commented:
I figured it out myself
JonAlbertAuthor Commented:
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.