I created a new page with the above code and I get the same Parameter is Invalid error:
Parameter is not valid.
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.ArgumentException: Parameter is not valid.
Source Error:
Line 12: public void Submit(object sender, System.EventArgs e)
Line 13: {
Line 14: Editor1.SaveRTF("document.rtf");
Line 15: textbox1.Text = Editor1.Text;
Line 16: }
|
Source File: c:\Development\DealersCircle\DealersCircleWeb\WebForm1.aspx Line: 14
Stack Trace:
[ArgumentException: Parameter is not valid.]
System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +1062843
System.Drawing.Image.FromStream(Stream stream) +8
CuteEditor.Convertor.RTF.RTFImageHelper.LoadFromHtml(HTMLNode imgNode, String baseUrl) +348
CuteEditor.Convertor.RTF.HTML2RTF.a(HTMLNode A_0, FontStyle A_1, Int32& A_2) +2122
CuteEditor.Convertor.RTF.HTML2RTF.a(HTMLNode A_0, FontStyle A_1, Int32& A_2) +2338
CuteEditor.Convertor.RTF.HTML2RTF.a(HTMLNode A_0, FontStyle A_1, Int32& A_2) +2338
CuteEditor.Convertor.RTF.HTML2RTF.a(HTMLNode A_0, FontStyle A_1, Int32& A_2) +2338
CuteEditor.Convertor.RTF.HTML2RTF.f() +437
CuteEditor.Convertor.RTF.HTML2RTF..ctor(String html) +586
CuteEditor.Editor.SaveRTF(String path) +103
ASP.webform1_aspx.Submit(Object sender, EventArgs e) in c:\Development\DealersCircle\DealersCircleWeb\WebForm1.aspx:14
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
|