3
0 vote vote

[ Resolved ]

GetEditorContentXML() throws Exception "Cannot access a closed Stream."

Steps to regenerate

I receive the following exception when calling the GetEditorContentXML() method:

============================================================

Exception: Cannot access a closed Stream.
Logged: 8/12/2010 4:11:17 PM
============================================================

Exception Information------------------------------------------
System.ObjectDisposedException: Cannot access a closed Stream.
at System.IO.__Error.StreamIsClosed()
at System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc)
at SpiceLogic.WinHTMLEditor.HTMLEditor.GetEditorContentXML()
at Altec.UI.TemplateEditor.readTemplatePropertyMetaData() in E:\Projects\doc-link\Altec\UI\Altec.UI.Event\TemplateEditor.cs:line 1207
at Altec.UI.TemplateEditor.openFile(String filename) in E:\Projects\doc-link\Altec\UI\Altec.UI.Event\TemplateEditor.cs:line 883

Additonal Info------------------------------------------
ExceptionManager.MachineName: WIN-D6G1SMTYOFO
ExceptionManager.TimeStamp: 8/12/2010 4:11:17 PM
ExceptionManager.FullName: Altec.Framework.Core, Version=2.2.0.0, Culture=neutral, PublicKeyToken=3138182c5bb59fd4
ExceptionManager.AppDomainName: UserTestHarness.vshost.exe
ExceptionManager.ThreadIdentity:
ExceptionManager.WindowsIdentity: ALTEC-WA\scottb

The help file also specifies that this method should work on either BodyHtml or DocumentHtml however there seems to be no way to specify that. This same issue exists for the Save version of this method as well.
Please feel free to share your comment.
loading...