ajaxmanager and asp.net membership

5 posts, 0 answers
  1. Adam L. Ooten
    Adam L. Ooten avatar
    86 posts
    Member since:
    Sep 2005

    Posted 04 Dec 2009 Link to this post

    We currently have a few pages that use RadAjaxManagers on them in a project that uses the ASP.NET membership authentication system.

    This system has been working fine, however when a user is logged in and either is disabled (user.IsApproved = False / put into Disabled User role) or is removed from the role needed to access the page they are on, the membership then redirects them to an error page.   When this happens the user triggers an Ajax request the following error pops up.

     

    Webpage error details

     

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MDDR; .NET CLR 3.0.30729; .NET CLR 1.1.4322)

    Timestamp: Fri, 4 Dec 2009 19:17:48 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: 62099

    Code: 0

    URI: http://localhost:6969/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1109.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a019edc06-aabf-4685-bb71-e9a5593a5eb5%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3a86526ba7%3ae330518b%3a1e771326%3ac8618e41%3aed16cbdc%3a8e6f0d33%3a6a6d718d%3aa7e79140%3a11a04f7e%3a58366029

     

    How can we get the authentication and role system built into ASP.Net 2.0 to play nicely with the RadAjaxManager and properly handle the situations described above?  The system currently works fine as long as teh RadAjaxManager is not involved.

    We do have the following in the web.config, btu still get the error:

     

        <location path="WebResource.axd">  
            <system.web> 
                <authorization> 
                    <allow users="*"/>  
                </authorization> 
            </system.web> 
        </location> 
        <location path="Telerik.Web.UI.WebResource.axd">  
            <system.web> 
                <authorization> 
                    <allow users="*"/>  
                </authorization> 
            </system.web> 
        </location> 
        <location path="ScriptResource.axd">  
            <system.web> 
                <authorization> 
                    <allow users="*"/>  
                </authorization> 
            </system.web> 
        </location> 

  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 10 Dec 2009 Link to this post

    Hi Adam,

    Could you please confirm that you are not making calls like Response.Write(), response filters, HttpModules and server is not enabled as mentioned in the error message?
    Additionally, I suggest that you try handling the errors with ajax as described here.

    Check it out and let me know how it goes.

    Sincerely yours,
    Iana
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ted
    Ted avatar
    47 posts
    Member since:
    Jan 2008

    Posted 23 Feb 2011 Link to this post

    Did you ever find out what was causing your error?  I'm having the same error.  the code works fine on my local development machine and on a test server but not in production server. 
  5. Ted
    Ted avatar
    47 posts
    Member since:
    Jan 2008

    Posted 23 Feb 2011 Link to this post

    Did you have any luck with this?  I'm having the same error.  it's only on my production server.  My test server and local run fine.  just trying to find the reason for this error.asdf
  6. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 28 Feb 2011 Link to this post

    Hello Ted,

    The error can be thrown due to different problems. And there is no straight forward resolution for it. To solve it in your case, we will need to find what is causing it in your specific case. Can you send us a live Url with the problematic page code and steps for replicating the problem? We will check it out and turn back to you with our finding.

    You can open a formal support ticket if it is not applicable for you to share the required information in the forum.

    Kind regards,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017