This is a migrated thread and some comments may be shown as answers.

[Solved] Intermittent error using Image Manager

3 Answers 106 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rachelle Joy Villapena
Top achievements
Rank 1
Rachelle Joy Villapena asked on 14 May 2009, 08:45 AM
Hi,

I am currently using RadControls for ASPNET AJAX Q1 2009.  My Virtual Machine is Windows Server 2003 Service Pack 1.

I am using the RadEditor but the Image Manager Dialog produces a "Page cannot be found error" intermittently.  If I refresh the IE page and try again, it would display the Image Manager Dialog and I would be able to Upload, Insert or Delete images.  But if I refreshed again the "Page cannot be found error" will return.

I used the DialogHanderURL in the RadEditor tool. 

 <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">  
 <ContentTemplate> 
 <div style="text-align:left;padding-top:3pt;padding-bottom:3pt">  
 <asp:Label ID="lblMessage" runat="server" Text=""   Font-Names="Tahoma" Font-Size="12px" ForeColor="red"></asp:Label><BR/>  
 <telerik:RadEditor ID="DocManagementRadEditor" runat="server"      Width="685px"                  
Height="340px"   
EditModes="Design"   
ToolsFile="~/EditorTools/NoTools.xml" 
CssClass="DMDropDown" 
DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx">  
<Content></Content>  
</telerik:RadEditor>   
                    
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" style="display:none;"/>  
                    <script type="text/javascript">  
                    Telerik.Web.UI.Editor.CommandList["Save"] = function(commandName, editor, args)  
                    {  
                       //alert("Save In Database");  
                       var btnSubmit = $get("<%=btnSubmit.ClientID%>"); //get a reference to the Asp:Button  
                        btnSubmit.click(); //click it programmatically  
                    };  
                    </script> 
                   </ContentTemplate> 
                       <Triggers> 
                           <asp:AsyncPostBackTrigger  ControlID="DocumentSubTypeDropDown" 
                            EventName="SelectedIndexChanged"/>  
                       </Triggers> 
                   </asp:UpdatePanel> 

Then on load of the page I specified the ViewPaths, DeletePath and UploadPath
 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        If Not Page.IsPostBack Then  
            Try  
                Dim viewImages As String() = "~/app_upload"  
                DocManagementRadEditor.ImageManager.ViewPaths = viewImages 
                DocManagementRadEditor.ImageManager.DeletePaths = viewImages 
                DocManagementRadEditor.ImageManager.UploadPaths = viewImages 
 
                 
            Catch ex As Exception  
                WriteToEventLog(ex.Message, EventLogEntryType.Error)  
            End Try  
        End If  
    End Sub 


Weird thing is, when I accessed my Virtual machine application or in other environments using my host/base machine which is XP IE7 and before IE6 SP2, it works without any problems even after many refresh.  Some of our clients also experience this intermittent behavior.   Is this a browser setting issue? Any help is greatly appreciated.



Thanks,
Rachell


3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 May 2009, 02:02 PM
Hi Rachelle,

I suggest that you try using a HTTP debugging proxy (Fiddler for Internet Explorer, or Firebug for Firefox) and check what happens with the script requests when the dialog displays the "Page cannot be found error".

Please, also send us the event log of your server when the error pops up.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rachelle Joy Villapena
Top achievements
Rank 1
answered on 26 May 2009, 06:48 AM
Hi Rumen,

There are no errors in the Server event logs when the "page cannot be found error " occurs.  It appears to be a client side problem.

I will try out Fiddler and let you know the results.

Regards,
Rachelle
0
Rumen
Telerik team
answered on 28 May 2009, 02:01 PM
Hi Rachelle,

Ok, let us know about the results in Fiddler.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Rachelle Joy Villapena
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Rachelle Joy Villapena
Top achievements
Rank 1
Share this question
or