Ajax Callback Error on App Pool (Application) Restart

5 posts, 0 answers
  1. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 25 Mar 2011 Link to this post

    I'm thinking this is only something I need to worry about in my development environment, but I'd like to be sure, and if possible, find a way to supress the error.

    If I have the page loaded with the Async Upload control on it, and I (1) make any change to the page, or (2) recycle the app pool, or (3) restart the application by changing the web.config, the next postback causes a huge alert window to open that shows the following:

    RadUpload Ajax callback error. Source url returned invalid content: 
      
    <html>
        <head>
            <title>The resource cannot be found.</title>
            <style>
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Lucida Console";font-size: .9em}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
            </style>
        </head>
      
        <body bgcolor="white">
      
                <span><H1>Server Error in '/CABS_Dev' Application.<hr width=100% size=1 color=silver></H1>
                <h2> <i>The resource cannot be found.</i> </h2></span>
                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
                <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.
                <br><br>
                <b> Requested URL: </b>/CABS_Dev/Telerik.RadUploadProgressHandler.ashx<br><br>
                <hr width=100% size=1 color=silver>
                <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
                </font>
        </body>
    </html>
      
    <!-- 
      
    [HttpException]: The file '/CABS_Dev/Telerik.RadUploadProgressHandler.ashx' does not exist.
       at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
       at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
       at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
       at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    -->
      
    ../Telerik.RadUploadProgressHandler.ashx?RadUrid=ddbc8bc9-8901-4652-8b85-9c7590f67636
      
    Did you register the RadUploadProgressHandler in web.config?
      
    Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.

    I didn't even have to upload any files.  If i just load the page, go to the tab that has the async upload control in it, then click on another tab (causing a postback) after doing one of the above actions, I get this error.

    Any way to trap/check/supress this?

    Thank you.
  2. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 26 Mar 2011 Link to this post

    Interestingly...  Even when I get this error dialog to pop up, the upload is still processed normally.  It is moved from the temporary folder, my OnFileUploaded event handler fires, and the uploaded image is processed as if there was no error message.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 31 Mar 2011 Link to this post

    Hi LeBear,

    You need to turn off the verify handler existence check in IIS. I suggest that you take a look at the following blog post explaining how to do that. I hope that this helps.

    Best wishes,
    Genady Sergeev
    the Telerik team
  5. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 31 Mar 2011 Link to this post

    I'm actually seeing this quite a bit more than I originally thought.  It seems to work fine except for the error window popping up.

    I tried what you suggested, changing the following line in my web.config (assuming I've adequately followed the concept), but it's not working.  Is this all I should need to do?

    <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" resourceType="Unspecified"/>
  6. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 01 Apr 2011 Link to this post

    Hello LeBear,

    I believe that this should have resolved the issue. Anyway, it seems that we are missing something. Since the issue is not yet resolved, I've the following suggestion: suppress the error message (assuming that it is redundant and everything is working fine). You can do that via inserting the following script before the progress manager declaration:

    Telerik.Web.UI.RadProgressManager.prototype._showInvalidContentMessage = function() { };


    All the best,
    Genady Sergeev
    the Telerik team
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017