Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Captcha > Refresh image causes Sys.WebForms.PageRequestManagerServerErrorException

Answered Refresh image causes Sys.WebForms.PageRequestManagerServerErrorException

Feed from this thread
  • Brian Goldman avatar

    Posted on Jul 13, 2011 (permalink)

    Hello,
    I have a captcha control on a form with the refresh image link enabled. If the page name is not in the url the refresh image throws an error (listed below) but if the page name is in the url it works fine.
    So
    http://www.nirvanawebworks.com/company/contact/ throws an error
    and
    http://www.nirvanawebworks.com/company/contact/default.aspx does not.

    Is there a way to make it work without the page name?

    Thanks,
    Brian

    Webpage error details
     
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
    Timestamp: Wed, 13 Jul 2011 16:42:09 UTC
     
     
    Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 405
    Line: 6
    Char: 84093
    Code: 0
    URI: http://www.nirvanawebworks.com/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%3d2011.1.519.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a911e11b9-43a3-4153-a0e1-a8dd325e7573%3a16e4e7cd%3af7645509%3a24ee1bba%3af46195d3%3a1e771326%3aaa288e2d%3ab7778d6c%3a11e117d7%3a7165f74

    Reply

  • Slav Slav admin's avatar

    Posted on Jul 15, 2011 (permalink)

    Hello Brian,

    I have tried reproducing the issue you described, but to no avail. Nevertheless, we have already encountered problem, similar to the one you are having. It is possible that it is caused by IIS of Windows 2008 server and is executed when the URL doesn't contain the exact page. You can ensure that you are experiencing the same issue by adding a RadButton to your page and checking if the server-side event handler is executed.

    Here you can find article, which discusses such a problem.

    In case the provided information is not related to your issue, please try modifying the sample I have attached so that it matches your problem or prepare and send us sample, runnable project, which isolates the problem so that we can inspect it locally and determine the cause.

    Best wishes,
    Slav
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

    Reply

  • Brian Goldman avatar

    Posted on Jul 15, 2011 (permalink)

    I spent hours and hours on this. I deleted the site from the server and set it up again. I tried a different server, etc. Everything I could think of. Finally I started removing things from the web.config one by one to see if that would help. Well I found the problem. I removed this from the web.config and it started working!
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
    </httpModules>

    Any idea why this is happening? I used the telerik config project wizard and that is what entered these lines into my config file.

    Thanks,
    Brian

    Reply

  • Slav Slav admin's avatar

    Posted on Jul 20, 2011 (permalink)

    Hello Brian,

      We are glad to hear that you succeeded in resolving your problem. It is most peculiar and this is the first time such an issue has been reported. I am sorry to say that for the time being I cannot provide a firm answer for the exact cause for this behavior. 

    Could you please verify that both the RadUploadModule and RadCompression need to be removed so that the issue is solved and if not, which one is the cause.

    You may also check if the problem reproduces when you deploy in your project an UpdatePanel, containing RadControl, for example RadButton, because update panel is used to refresh the image of RadCpatcha.

    Please note that at the current state of affairs I don't have much information about your setup, so it will be much appreciated if you would provide more detailed description of your scenario.

    Best wishes,
    Slav
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

    Reply

  • Brian Goldman avatar

    Posted on Jul 26, 2011 (permalink)

    The problem is

      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>

    If I add that I get the error.


    Here is my current web.config file
    <?xml version="1.0"?>
    <configuration>
      <connectionStrings/>
      <appSettings/>
      <location path="." inheritInChildApplications="false">
        <system.web>
          <compilation debug="true" targetFramework="4.0">
            <assemblies>
              <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
              <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
              <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </assemblies>
          </compilation>
          <customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPages/Oops.aspx" >
            <error statusCode="404" redirect="~/ErrorPages/404Error.aspx" />
          </customErrors>
          <authentication mode="Forms">
            <forms loginUrl="~/Default.aspx" timeout="2880"/>
          </authentication>
          <httpHandlers>
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
          </httpHandlers>
          <httpModules>
             <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
          </httpModules>
          <pages>
            <controls>
              <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
            </controls>
          </pages>
        </system.web>
      </location>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true">
          <remove name="RadUploadModule"/>
          <remove name="RadCompression"/>
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
          <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
        </modules>
        <validation validateIntegratedModeConfiguration="false"/>
        <handlers>
          <remove name="ChartImage_axd"/>
          <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
          <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
          <remove name="Telerik_RadUploadProgressHandler_ashx"/>
          <remove name="Telerik_Web_UI_WebResource_axd"/>
          <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
          <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
          <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
          <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
        </handlers>
        <security>
          <requestFiltering>
            <requestLimits maxAllowedContentLength="55394304"/>
          </requestFiltering>
        </security>
      </system.webServer>
      
    </configuration>

    Reply

  • Pavel Pavel admin's avatar

    Posted on Jul 29, 2011 (permalink)

    Hello Brian,

    You are probably facing this breaking change in .Net 4.0. Check the Known Issues section of this help article for more details and solution.
    I hope this helps.

    Kind regards,
    Pavel
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

  • Brian Goldman avatar

    Posted on Jul 29, 2011 (permalink)

    Thanks Pavel ,
    The issues discussed seem to refer to IIS 7 and IIS 7.5. I'm running IIS 6 on Windows 2003. I did try the workarounds mentioned but they caused worse problems not a solution.

    Any other ideas?

    Thanks,
    Brian

    Reply

  • Answer Pavel Pavel admin's avatar

    Posted on Aug 1, 2011 (permalink)

    Hi Brian,

    In that case you can try adding Action="Default.aspx" to the form tag of the problematic page. Let me know if that helps.

    Regards,
    Pavel
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

  • Brian Goldman avatar

    Posted on Aug 1, 2011 (permalink)

    Hi Pavel,
    Yes, that seemed to have done the trick. Thank You.

    Brian

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Captcha > Refresh image causes Sys.WebForms.PageRequestManagerServerErrorException