I updated an Ajax Beta 2 web application to use the new RC build and it works fine on my development PC, but it doesn't work on my IIS6 production server. I checked and both of the DLLs are in the GAC. Has anyone else ran into this? I get this error when
trying to access the page:
Server Error in '/UserManager' Application.
Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods) +378 System.Web.Script.Services.PageClientProxyGenerator.GetClientProxyScript(HttpContext context, IPage page, Boolean debug) +45 System.Web.UI.ScriptManager.RegisterServices() +728 System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +244 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2012740 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
In case it helps, here's my error, which is pretty much identical to yours. I've restarted the servers and even copied the bloody dll's from the programfiles/microsoft asp.net/ folders into my bin folders, but nothing.
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String virtualPath, Boolean failIfNoData, Boolean pageMethods) +378
System.Web.Script.Services.PageClientProxyGenerator.GetClientProxyScript(HttpContext context, IPage page, Boolean debug) +45
System.Web.UI.ScriptManager.RegisterServices() +728
System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +244
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2012740
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
To test to see if it was an IIS vs VS2005's web server thing, I set up the virtual directory on my XPSP2 box and it runs fine under there. I'm really at that panic stage as I updated since it worked perfectly fine on this machine(just like all the other updates
since the Jan when I first started using it)
I got it to work, I'm not sure what else its going to screw up, but I turned on "Allow this precompiled site to be updatable" and "Use fixed naming and single page assemblies" and its running on my production server. Now I need to get back to finding out
what damage this is doing.
Interesting... I found that all I need to do is just check off "Allow this precompiled site to be updatable" when deploying the project and it seems to work on IIS6 now. This can't possibly be the release candidate if they are introducing bugs...
Can anyone else confirm that this is a problem with the "RC", or am I just going crazy/doing something wrong?
Can someone from Microsoft please give this thread some attention?
I had exactly the same issue. I have been upgrading Atlas ASP.NET AJAX each and every time, and never had a problem.
This time I got everything working perfectly on my DEV box, and then uploaded to my PROD box. Then it gave exactly the same error message as people posted above. Turning on debug and trace did not provide any more detail in the error message.
The only way I could fix it was to deploy the source files, which I hate doing.
FYI, I am using the AJAX library, the Dec. Futures library and the latest Toolkit.
I need to get my box straight again. Please put some resources on this and help us out with a solution!
GremlinX
Member
133 Points
35 Posts
Ajax RC not working on production server, works on dev machine
Dec 15, 2006 03:11 PM|LINK
Hi,
I updated an Ajax Beta 2 web application to use the new RC build and it works fine on my development PC, but it doesn't work on my IIS6 production server. I checked and both of the DLLs are in the GAC. Has anyone else ran into this? I get this error when trying to access the page:
Server Error in '/UserManager' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
http://www.binaryfortress.com
NXTwoThou
Member
167 Points
66 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 04:03 PM|LINK
GremlinX
Member
133 Points
35 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 04:10 PM|LINK
I've tried it on 2 other IIS6 servers as well, doesn't work on them either. Dev machine is running Windows XP SP2 and it works perfectly.
http://www.binaryfortress.com
NXTwoThou
Member
167 Points
66 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 04:10 PM|LINK
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
kdjones74
0 Points
5 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 04:12 PM|LINK
NXTwoThou
Member
167 Points
66 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 04:24 PM|LINK
NXTwoThou
Member
167 Points
66 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 04:32 PM|LINK
I got it to work, I'm not sure what else its going to screw up, but I turned on "Allow this precompiled site to be updatable" and "Use fixed naming and single page assemblies" and its running on my production server. Now I need to get back to finding out what damage this is doing.
GremlinX
Member
133 Points
35 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 04:47 PM|LINK
Interesting... I found that all I need to do is just check off "Allow this precompiled site to be updatable" when deploying the project and it seems to work on IIS6 now. This can't possibly be the release candidate if they are introducing bugs...
Can anyone else confirm that this is a problem with the "RC", or am I just going crazy/doing something wrong?
Thanks
http://www.binaryfortress.com
kdjones74
0 Points
5 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 05:07 PM|LINK
speednet
Member
380 Points
171 Posts
Re: Ajax RC not working on production server, works on dev machine
Dec 15, 2006 07:55 PM|LINK
Can someone from Microsoft please give this thread some attention?
I had exactly the same issue. I have been upgrading
AtlasASP.NET AJAX each and every time, and never had a problem.This time I got everything working perfectly on my DEV box, and then uploaded to my PROD box. Then it gave exactly the same error message as people posted above. Turning on debug and trace did not provide any more detail in the error message.
The only way I could fix it was to deploy the source files, which I hate doing.
FYI, I am using the AJAX library, the Dec. Futures library and the latest Toolkit.
I need to get my box straight again. Please put some resources on this and help us out with a solution!
Thank you.