in Search
 
Home Blogs Forums Marketplace Files
 
 
 

'System.OutOfMemoryException' was thrown while trying to open a model

Last post 08-24-2008, 7:31 PM by bengiloo. 0 replies.
Sort Posts: Previous Next
  •  08-24-2008, 7:31 PM 14154

    'System.OutOfMemoryException' was thrown while trying to open a model

    Hi,

    I have been receiving the following error last week. Before this it was running fine.

    How does this error occur? I have create a batch job which will retrieve a collection of information from a database server and add the record/tasks into the captaris workflow. Before that, this does not happen because I added the task 1 by 1 at a time. I have checked the number of record/task added to the workflow, which is around 400++ only.   

    Now it will not allow me to open the model, delete task or even add/create task to the workflow. Everytime I try to open the model, the following error will pop up. I am using WF6.5 with Hotfix 1 updated. Any guidance or help will be appreciated, thanks a lot.


    WHEN I TRY TO DELETE A TASK. The following error pop up.
    =================================================================
    Could not delete file(s).   

     

    System.Exception: Unable to load process Error loading xml file.   ---> System.Exception: Error loading xml file.   ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

       at System.Xml.XmlDocument.CreateElement(String prefix, String localName, String namespaceURI)

       at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)

       at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)

       at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)

       at System.Xml.XmlDocument.Load(XmlReader reader)

       at System.Xml.XmlDocument.LoadXml(String xml)

       at Teamplate.BLL.BModel.Load(Int32 Id, Int32 modelVersion, Boolean LoadGraphicallyData)

       --- End of inner exception stack trace ---

       at Teamplate.BLL.BModel.Load(Int32 Id, Int32 modelVersion, Boolean LoadGraphicallyData)

       at Teamplate.BLL.BModel.Load(Int32 Id, Int32 modelVersion)

       at Teamplate.BLL.BProcess.SetModelId(Int32 modelId, Int32 modelVersion)

       at Teamplate.BLL.BProcess.Load(Int32 Id)

       --- End of inner exception stack trace ---

     

    Server stack trace:

       at Teamplate.BLL.BProcess.Load(Int32 Id)

       at Teamplate.BLL.BProcess.Teamplate.BLL.IBFile.Delete(Int32 id)

       at Teamplate.BLL.BFileList.DeleteFile(Int32 Id)

       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

       at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

       at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

     

    Exception rethrown at [0]:

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at Teamplate.BLL.BFileList.DeleteFile(Int32 Id)

       at Teamplate.Windows.Management.FileList.menuItemDelete_Click(Object sender, EventArgs e)

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


     

    WHEN I TRY TO OPEN MY MODEL. The following error pop up.
    ===================================================================

    Could not load model.

     

    System.Exception: Error loading xml file.   ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

       at System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)

       at System.Xml.XmlTextReaderImpl.NodeData.get_StringValue()

       at System.Xml.XmlTextReaderImpl.get_Value()

       at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)

       at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)

       at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)

       at System.Xml.XmlDocument.Load(XmlReader reader)

       at System.Xml.XmlDocument.LoadXml(String xml)

       at Teamplate.BLL.BModel.Load(Int32 Id, Int32 modelVersion, Boolean LoadGraphicallyData)

       --- End of inner exception stack trace ---

     

    Server stack trace:

       at Teamplate.BLL.BModel.Load(Int32 Id, Int32 modelVersion, Boolean LoadGraphicallyData)

       at Teamplate.BLL.BModel.Load(Int32 Id, Int32 modelVersion)

       at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

       at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)

       at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

     

    Exception rethrown at [0]:

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at Teamplate.BLL.BModel.Load(Int32 Id, Int32 modelVersion)

       at Teamplate.Windows.IDE.IDEModelDesigner.LoadModel(Int32 modelId, Int32 modelVersionToLoad)


    WHEN I TRY TO ADD A TASK TO THE WORKFLOW. The following error was thrown from the website.
    ===================================================================

    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.]
    
    [Exception: Error loading xml file.  ]
       System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +1780146
       System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +826
       Teamplate.BLL.BProcess.Add(String name, Int32 folder, Int32 owner, Int32 modelId) +0
       Asialife.Captaris.BusinessLogic.ProposalCaptarisProcess.SetProposal(XmlDocument proposalXMLDoc) +193
       Asialife.WebApps.Intranet.test.TestUtility.AddProposalButtonClicked(Object sender, EventArgs e) +266
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
    

View as RSS news feed in XML
  Privacy    Site Terms   Contact Administrator