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

System.OutOfMemoryException - RadEditor

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David Shaw
Top achievements
Rank 1
David Shaw asked on 28 May 2010, 02:24 AM
The following scenario may be highly unusual, but I am supporting a legacy asp app that my boss doesn't want to kill and keeps wanting to add new features.

I am using a Rad Editor embedded in an aspx page.  This aspx page is referenced by an asp page using an IFrame control.  Occassionally an OutOfMemoryException is thrown when the RadEditor tries to load. 

Any insight would be appreciated.

-----------------------------------------------------------------
asp page

<

 

iframe name="DiagnosisEditor" id="DiagnosisEditor"

 

 

src="../Diagnosis/DiagnosisEditor.aspx" ></iframe>
------------------------------------------------------------------
aspx page

 

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="DiagnosisEditor.aspx.cs" Inherits="Diagnosis_DiagnosisEditor" %>

 

<%

@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

 

 

 

 

 

Namespace="System.Web.UI" TagPrefix="asp" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

 

 

 

 

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head id="Head1" runat="server">

 

<

 

script type="text/javascript">

 

 

 

 

 

function ExecuteCommand(command)

 

{

$find(

"RadEditor1").fire(command);

 

}

 

function AlertSelectedHtml()

 

{

alert($find(

"RadEditor1").getSelectionHtml());

 

}

 

 

function GetHtml() {

 

 

return $find("RadEditor1").get_html(true);

 

}

 

function SetHtml(html)

 

{

$find(

"RadEditor1").set_html(html);

 

}

 

function loaddiagnosis() {

 

$find(

"RadEditor1").set_html("nnnn");

 

}

 

function OnClientLoad(editor) {

 

 

var diagnosishtml = parent.parent.document.forms[0].giDiagnosisHTML.value ;

 

editor.set_html(diagnosishtml);

}

 

 

</script>

 

</

 

head>

 

<

 

body onload="">

 

 

 

 

 

<script type="text/javascript">

 

 

 

 

 

 

</script>

 

 

 

 

 

<form id="form1" runat="server" >

 

 

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"/>

 

 

 

 

 

<telerik:RadEditor ID="RadEditor1" Runat="server" Height="400px" Width="800px"

 

 

Skin="Telerik" EditModes="All" ToolbarMode="Default" OnClientLoad="OnClientLoad">

 

 

 

 

 

<Content/>

 

 

 

 

 

<CssFiles>

 

 

 

 

 

<telerik:EditorCssFile Value="radstyle.css" />

 

 

 

 

 

</CssFiles>

 

 

 

 

 

</telerik:RadEditor>

 

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 

 

 

----------------------------------------------------------------------------------------------------------------------------------------------------


The following is the stack trace:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Exception of type 'System.OutOfMemoryException' was thrown.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
   System.Reflection.Assembly.Load(String assemblyString) +25
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +211
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
   System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +267
   System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +39
   System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +429
   System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +75
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +582
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161

 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433





1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Jun 2010, 05:03 PM
Hi David Shaw,

I am not aware of this error and I was unable to see any Telerik controls or code in the stack trace. This means that the error is not caused by a Telerik control.

I have two suggestions that could be helpful:
1) Upgrade and try the latest version Q1 2010 SP2 (2010.1.519).
2) Try to configure the Application pools in IIS to be recycled for example every 2 hours.You can also configure the idle time-out. For more information see the attached screenshot available at http://screencast.com/t/YjIxMjQ4Mzkt.

Greetings,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
David Shaw
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or