cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

Last post 03-04-2008, 1:54 PM by BaumTom. 11 replies.
Sort Posts: Previous Next
  •  03-09-2006, 12:55 AM 16875

    cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    Ok, I can recreate this error now. Here's what's happening. I have a page with a panel, a button and the cuteeditor on it. CE is in the panel. CE is in default config (I haven't changed anything in configs, just dropping a default CE in the panel.
     
    When page loads, panel is hidden. When I hit button panel is shown (along with CE). Hitting button again causes CE to be hidden. When CE panel is hidden for second time an exception occurs. This is what it looks like in the Immediate Window:
    {"File does not exist."}
    [System.Web.HttpException]: {"File does not exist."}
    Data: {System.Collections.ListDictionaryInternal}
    HelpLink: null
    InnerException: null
    Message: "File does not exist."
    Source: "System.Web"
    StackTrace: " at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)\r\n at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)\r\n at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)"
    TargetSite: {Void ProcessRequestInternal(System.Web.HttpContext)}

    The only issue that I can see is that the page holding the CE is in /admin/secure and the CE Client files are in /CuteSoft_Client. This still might be something I'm doing, but I don't see what it could be.
     
    Here's the code for the page load event.
       
    try
    {
        if (!Page.IsPostBack)
    { Panel1.Visible = false; }
    else
    { Panel1.Visible = !Panel1.Visible; }
     
    }//end try
    catch (Exception exc)
    {
       throw new ApplicationException("Error in page load.", exc);
    }// end catch
     
  •  03-09-2006, 1:01 AM 16876 in reply to 16875

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    Another sorta strange thing: the exception is being caught in my Application_Error event in Global.asax, not in my try/catch block. So I'm sure that the error isn't in my code ;)
  •  03-13-2006, 5:15 PM 17133 in reply to 16876

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    This is a little ridiculous!! I've posted a legit bug that I can reproduce, sent a PM to Adam and I've gotten no response.
  •  03-13-2006, 10:49 PM 17136 in reply to 17133

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    Please create a simple aspx page which can demonstrate the problems and send it to me.
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-03-2008, 7:28 PM 36760 in reply to 17136

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    Adam,
     
    I'm getting exactly the same error as described above.
    Is there any fix or workaround available for this. It was reported nearly 2 years ago but I didn't see any follow-up mail.
    It is causing performance issues for us.
     
    I will dearly appreciate a response of any sort on this.
     
    cheers
  •  02-03-2008, 10:30 PM 36761 in reply to 36760

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    This issue is resolved. Please download the latest build.
     
    Keep me posted.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-04-2008, 7:39 PM 36782 in reply to 36761

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    Hi Adam,
     
    I just downloaded the latest version, although I already had that version, but it's still the same.
    The error is very easily reproducable. You can use the example given by previous user or you can also reproduce it using a Multiview. This is what we are using in our application.
     
    Just use 2 views - 1 with CuteEditor and other with anything else.
    It's all good when the view with CuteEditor is active. You will get the error when you set the other view as active.
     
    Our project deadline is pretty tight. We are all burning midnight oils already. I would love to create a sample app for you to test but please understand our situation. The explaination in this post and previous ones are very accurate to reproduce this.
     
    This error is causing serious performance issues for us as the error is only detected in Application_Error in Global.asax where we need to reinitiallize few session variables. It happens everytime we change view in multiview and given the fact that we have 12 views in our multiview out of which 10 use CuteEditor, the performance impact is unacceptable by user. We are facing serious issues around meeting acceptance criterias which can result in serious penalties.
     
    Hope to have an answer soon.
    cheers
  •  02-06-2008, 6:50 PM 36829 in reply to 36782

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    Hi Adam,
     
    Could you please acknowledge my last post so I know someone is looking into this issue?
     
    Thanks
    Sachin.
  •  02-07-2008, 3:30 AM 36834 in reply to 36829

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    Sachin Sharma:
    Hi Adam,
     
    Could you please acknowledge my last post so I know someone is looking into this issue?
     
    Thanks
    Sachin.
     
    When upgrading did you update the DLLs and all client files?
     
    Can you create a separate project to test this issue?
     
    This issue is reported by another developer before. After we send this new build, developer confirmed the issue was resolved.
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-01-2008, 4:44 PM 37482 in reply to 36834

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    I have the exact same issue.  I have the latest code from your site (version 6.0.0.0) and I completely removed all references of my 5.3 version. I even used the fusion log viewer to make sure that it was only getting the latest version of the dll.
     
    I completely removed the CuteSoft_Client folder and put the new one in place from your site. I downloaded it today (3-1-08), so I know it is the latest.  This problem isn't a show stopper, it is just annoying! My application logs errors in the Application_Error function and I have hundreds of thousands of these responses in there, because of CuteEditor.  It makes it really hard to go through the errors and look for legitimate ones.
     
    Although the error is very cryptic from Visual Studio 2005, I think it has to do with a stray image somewhere and has to do with the load.ashx file. Duplication of this error is pretty easy.  do the following...
     
    • Take a brand new machine that has never had CuteEditor installed on it, because who knows what you have lying around on your system. Remember, this error indicates that the file doesn't exist, so obviously something that your code is looking for isn't being packaged, but it still might be on your development system!
    • Create a new VB web project
    • Add the following line to the global.asax.vb file in the Application_Error function
         Dim sError as string = Server.GetLastError.ToString
    • Put a breakpoint on that line
    • Compile and run the project and confirm that your breakpoint isn't hit
    • Add a reference to CuteEditor 5.3 or 6.0
    • Add your CuteSoft_Client folder and files to the project
    • Add your license file and language files for the editor
    • Open the default page of the website
    • Add a CuteEditor with default settings
    • Compile and run the project.  As soon as the CuteEditor tries to load, you get the error message and the project stops at your breakpoint.  It gives you the following error...

     ?server.GetLastError
    {"File does not exist."}
        System.Web.HttpException: {"File does not exist."}
        Data: {System.Collections.ListDictionaryInternal}
        HelpLink: Nothing
        InnerException: Nothing
        Message: "File does not exist."
        Source: "System.Web"
        StackTrace: "   at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context)
       at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)"
        TargetSite: {System.Reflection.RuntimeMethodInfo}

     Adam, are you saying that you can't duplicate this error in this fashion?  Oh, by the way, I just installed the 6.0.0.0 CuteEditor on a brand new XP Pro system as well and it gave the exact same error.  Thats the only way I know these instructions above work.  Thanks and when can we expect an update? Any ideas?

  •  03-02-2008, 12:28 PM 37487 in reply to 37482

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    I have just fixed the same "File not Found" exception in my own code (although nothing to do with CuteEditor!)
     
    To track down _which_ file is not being found, within your Application_Error catch logic, examine the Url which is throwing the error:
     
        string url = HttpContext.Current.Request.Url.ToString();
     
    Now carefully examine the generated page code for this Url .... either the Url itself is in error or a "<link ...>", "<script..."> or any other link to a resource could be awry - In my case it was a badly pathed "<script type="text/javascript...> tag.
     
    I corrected the path, and the exception disappeared!
     
    Hope this helps

     

  •  03-04-2008, 1:54 PM 37564 in reply to 37487

    Re: cuteeditor in a panel causes "File does not exist" exception (.net 2.0)

    Hi,
     
    I also have the above mentioned exceptions with the message "File does not exist." The exceptions seem only to occur if I debug the application from Visual Studio.
     
    I'm using CuteEditor inside of a FormView which itself is inside a TabPanel. If I replace the CuteEditor tag in my page with a simple TextBox the exceptions don't occur anymore. So my assumption is that the exceptions are caused by the CuteEditor.
     
    HttpContext.Current.Request.Url.ToString() returns in my case http://localhost/.../todo/null (the page with the CuteEditor has the url http://localhost/.../todo/Edit.aspx). 

    Cheers,
    Thomas
View as RSS news feed in XML