Ajax RC not working on production server, works on dev machine

Rate It (6)

Last post 08-31-2007 10:26 AM by clain4u. 135 replies.

Sort Posts:

  • Ajax RC not working on production server, works on dev machine

    12-15-2006, 11:11 AM
    • Loading...
    • GremlinX
    • Joined on 03-07-2006, 7:20 PM
    • Canada
    • Posts 35

    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:

    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
     

    Binary Fortress Software
    http://www.binaryfortress.com
  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 12:03 PM
    • Loading...
    • NXTwoThou
    • Joined on 04-28-2006, 5:31 PM
    • Tulsa, OK
    • Posts 64
    Completely down here too.  Two different servers, both savme error.  Works great on dev machine.
  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 12:10 PM
    • Loading...
    • GremlinX
    • Joined on 03-07-2006, 7:20 PM
    • Canada
    • Posts 35

    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.

     

    Binary Fortress Software
    http://www.binaryfortress.com
  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 12:10 PM
    • Loading...
    • NXTwoThou
    • Joined on 04-28-2006, 5:31 PM
    • Tulsa, OK
    • Posts 64
    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
  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 12:12 PM
    • Loading...
    • kdjones74
    • Joined on 12-15-2006, 5:08 PM
    • Posts 5
    I'm seeing the exact same thing.  Dev machine is XPSP2 and test server is 2003.
  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 12:24 PM
    • Loading...
    • NXTwoThou
    • Joined on 04-28-2006, 5:31 PM
    • Tulsa, OK
    • Posts 64
    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)
  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 12:32 PM
    • Loading...
    • NXTwoThou
    • Joined on 04-28-2006, 5:31 PM
    • Tulsa, OK
    • Posts 64

    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.

  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 12:47 PM
    • Loading...
    • GremlinX
    • Joined on 03-07-2006, 7:20 PM
    • Canada
    • Posts 35

    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

     

    Binary Fortress Software
    http://www.binaryfortress.com
  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 1:07 PM
    • Loading...
    • kdjones74
    • Joined on 12-15-2006, 5:08 PM
    • Posts 5
    I checked the "Allow this precompiled site to be updatable" and sure enough, it works on Server 2003!
  • Re: Ajax RC not working on production server, works on dev machine

    12-15-2006, 3:55 PM
    • Loading...
    • speednet
    • Joined on 06-24-2005, 3:35 AM
    • Posts 152

    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!

    Thank you.

    http://blogs.lotterypost.com/speednet
  • Re: Ajax RC not working on production server, works on dev machine

    12-16-2006, 11:23 AM
    • Loading...
    • speednet
    • Joined on 06-24-2005, 3:35 AM
    • Posts 152
    BUMP
    http://blogs.lotterypost.com/speednet
  • Re: Ajax RC not working on production server, works on dev machine

    12-16-2006, 11:25 AM
    • Loading...
    • speednet
    • Joined on 06-24-2005, 3:35 AM
    • Posts 152
     

    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.91; ASP.NET Version:2.0.50727.210
    http://blogs.lotterypost.com/speednet
  • Re: Ajax RC not working on production server, works on dev machine

    12-16-2006, 8:45 PM
    • Loading...
    • ckim06
    • Joined on 09-05-2002, 4:55 PM
    • Posts 84
    I am also having the same issue.  Ticked off updatable and fixing naming and it works.
  • Re: Ajax RC not working on production server, works on dev machine

    12-17-2006, 11:31 AM
    • Loading...
    • Jeinhor
    • Joined on 12-16-2006, 2:56 PM
    • Posts 38
    I have the same issue, anyone found out why this is happening?
  • Re: Ajax RC not working on production server, works on dev machine

    12-17-2006, 1:20 PM
    • Loading...
    • dbalos
    • Joined on 06-09-2004, 10:20 AM
    • Posts 3
    Just the same also here. Turned both options ON and it start working....In my experimenting it had a for a while a message about the security error, but it sure cannot be...

     
Page 1 of 10 (136 items) 1 2 3 4 5 Next > ... Last ยป