code works on localhost but not on production

18 posts, 0 answers
  1. tom
    tom avatar
    15 posts
    Member since:
    Sep 2007

    Posted 21 Feb 2011 Link to this post

    I have implemented a simple application that is similar to your demo for the scheduler.  (http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx)  It seems to work fine on my local dev box but when I move my code to the server (Windows Server 2008 R2 x64) i get the following error.  I did a few searches and it seems like it is related to response.redirect but not sure as to how I would go about making the changes for this to work without rebuilding the source code.  I believe I am running Q3 2010 of the controls. 

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
    Timestamp: Mon, 21 Feb 2011 20:07:03 UTC


    Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near '

    <!DOCTYPE html P'.
    Line: 6
    Char: 84093
    Code: 0
    URI: http://localhost:8081/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.3.1317.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a9506cff2-3a86-46c5-b869-6ba1478f3c27%3a16e4e7cd%3aed16cbdc%3af7645509%3a11a04f7e%3a24ee1bba%3af46195d3%3a59462f1%3aa51ee93e%3a1e771326%3a4cacbc31%3a4c8be21a%3a874f8ea2%3a650fdad%3ad40f7d5c%3ae91ff703%3a7666c7ed%3ab68dcd79%3ae330518b%3ac8618e41%3ae4f8f289

  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 22 Feb 2011 Link to this post

    Hello Tom,

    Are you accessing the Response object in your code? Or what is supposed to happen when this error is raised?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. tom
    tom avatar
    15 posts
    Member since:
    Sep 2007

    Posted 22 Feb 2011 Link to this post

    Cory,
    sorry for not explaining more.  My example is setup very similar to the demo in that I have a calendar, panel with checkbox items and scheduler.  The issue is anytime something is clicked that is tied to the telerik ajax manager (date selected on calendar, checkbox check changed, RadScheduler appointment selected to edit detail) the page reloads back to default page load.  So the Modal window with scheduler detail never comes up, when date is selected it reloads to default date, when I select the week view or month view it reloads to default day view etc because the pages just refreshes.  All of this works great on my local machine when testing, but as soon as I move up to my server it stops working.  I attempted in crome, firefox, ie and safari with all of them failing to work.  I've check my IIS 7 and everything seems to be okay.  I've repaired my .Net framework 4 with no luck also.  Any help would be appreciated. 
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 23 Feb 2011 Link to this post

    Hi tom,

    Can you open a support ticket and send us the code of your implementation so we can debug it locally?

    Greetings,
    Peter
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  6. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 01 Mar 2011 Link to this post

    Hi,

    Same problem on my side
    Little web app x64 .net 4 with last Telerik. Server 2008R2.
    Installed in integrated mode. Running on localhost:5599 port
    Simply doing an ajax call on a textbox modified with autopostback...

    My error below.

    Regards
    CS

    Webpage error details
      
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET4.0C; .NET4.0E)
    Timestamp: Tue, 1 Mar 2011 23:38:36 UTC
      
      
    Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near '
      
    <!DOCTYPE html P'.
    Line: 6
    Char: 84093
    Code: 0
    URI: http://localhost:5599/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a9506cff2-3a86-46c5-b869-6ba1478f3c27%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a6a6d718d%3ab7778d6c%3ae085fe68%3ac08e9f8a%

  7. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 03 Mar 2011 Link to this post

    Hi guys,

    If I understand correctly, you cannot replicate the error when the page is executed against the Cassini VS developments server, is that correct?

    Can you check if disabling Ajax temporarily resolves the issue, just to ensure it is indeed the cause for the problem? Also could you specify whether you are using RadCompression and if turning it off has any impact on the observed behavior?

    All the best,
    Pavel
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  8. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 03 Mar 2011 Link to this post

    Hi Pavel,

    Thank you for investigating.
    I would add that until this app, all my production was using the classic pipeline or IIS6 and working Ok but I have not migrated to last Telerik version, waiting the first real 2011 version...soon.

    What I have tested without success.
    - remove compression
    - remove any page header that could be introduced by IIS
    - use locahost to avoid any firewall transition and also checked that firewall doesn't change headers.

    I do some more testing and if not successfull I will open a ticket and send my code sample.

    CS
  9. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 03 Mar 2011 Link to this post

    Hi,

    In my last test a changed the application pool from ' ASP.NET v4 ' to 'ASP.NET v4 Classic' and it starts working.

    For my Web.config is the one generated by the Telerik VS template for Web Application and it contains declarations for pipeline AND classic mode ?

    Any Idea welcome ...
    CS
  10. tom
    tom avatar
    15 posts
    Member since:
    Sep 2007

    Posted 03 Mar 2011 Link to this post

    I've also tried switching to use the different app pools but for me it did not work.  Was there any other settings that might have been changed from the default for IIS?  This is a new install and it's been a while since I played with IIS.
  11. tom
    tom avatar
    15 posts
    Member since:
    Sep 2007

    Posted 03 Mar 2011 Link to this post

    I was able to get it to work.  What I had not done was even though I had enabled the ISAPI & CGI within IIS I did not go in and map the ISAPI to the proper dll.  Once I did that everything seems to be working now. 
  12. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 03 Mar 2011 Link to this post

    I will try this, going back to pipeline native mode.
    But I was thinking the mapping for asp.NET 4.0 x64 was already done in IIS7 ?
    As far as I see the path to dll in from of the isapi cgi ?

    Telerik is offering no doc on this, shouldn't they ?

    Regards
    CS
  13. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 08 Mar 2011 Link to this post

    Hi Christian,

    From your last post I am not sure what needs to be added to our documentation. What you explained is related to IIS configuration, and not our controls.

    Best wishes,
    Pavel
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  14. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 09 Mar 2011 Link to this post

    Hi Pavel,

    I soon as I get time I will open a ticke because I am still unable to have it working in native mode under IIS 7.5.

    Regards
    CS
  15. Radu
    Radu avatar
    4 posts
    Member since:
    Nov 2012

    Posted 21 Jun 2013 Link to this post

    Hi,

        We had same problem. A set of components dated somewhere in 2011 and we need to update them because of IE10 to the latest version.
    On localhost the site was working perfectly, on test and production sites not.
        This happens because of the IIS version. On IIS version 6 seems to not render and work correctly.

    Thanks,
    Radu Cosoveanu
  16. Hapa
    Hapa avatar
    1 posts
    Member since:
    May 2013

    Posted 10 Sep 2013 Link to this post

    My problem is that pages in the root directory works fine but not a Login form that is in a subdirectory. Everything works when debugging in VS 2012 but the problem is in IIS. Problem is on my local IIS and also on the server IIS.

    Thanks.
  17. Randy
    Randy avatar
    26 posts
    Member since:
    Jul 2013

    Posted 18 Sep 2013 Link to this post

    I am running into a similar issue.

    Working in Visual Studio 2008 on an application using the RadScheduler. When I build the application and use the "View in browser" option in VS, the scheduler works as expected. I can add/edit appointments, change views, etc.

    However, when I try to run it in through an application in IIS on my local machine, the scheduler renders but nothing works - add, edit, change views = NOTHING. It just sits there as though none of the scripting is functional.

    Also, no errors messages - just not functioning. 

    Any ideas on what to try or change?
  18. Randy
    Randy avatar
    26 posts
    Member since:
    Jul 2013

    Posted 19 Sep 2013 Link to this post

    I was able to resolve my issue.
    Nothing in my application actually required the 4.0 framework (3.5 is still an extension of 2.0). So, I changed the application pool to .NET 2.0 Integrated and all is working now.
  19. Awad
    Awad avatar
    4 posts
    Member since:
    Nov 2014

    Posted 08 Feb 2015 in reply to Randy Link to this post

    Thanks for all,
    Thanks Randy, your post solve my issue.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017