bella28
asked on
System.ComponentModel.Win32Exception: Class already exists
Hi, I have written a small c# class (.dll) that takes html string removes all the HTML tags sends it back to me in rtf format. I have getting following error on .aspx page that calls this dll.
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ------
Class already exists
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.ComponentModel.Win3 2Exception : Class already exists
Source Error:
Line 23: thisString = Request.Form["rctext"].ToS tring();
Line 24: retVal = new TextToRtf(thisString);
Line 25: retVal.textToRTF();
Line 26: outString = retVal.getRTF();
Line 27: Response.Write("Member ID: " + Request.Form["thisindid"]. ToString() );
Source File: D:\InetPub\wwwroot\aednet\ www\leader ship\textr tf.aspx Line: 25
Stack Trace:
[Win32Exception (0x80004005): Class already exists]
System.Windows.Forms.Windo wClass.Reg isterClass () +1091
System.Windows.Forms.Windo wClass.Cre ate(String className, Int32 classStyle) +181
System.Windows.Forms.Nativ eWindow.Cr eateHandle (CreatePar ams cp) +215
System.Windows.Forms.Contr ol.CreateH andle() +213
System.Windows.Forms.Contr ol.get_Han dle() +60
System.Windows.Forms.Contr ol.CreateH andle() +200
System.Windows.Forms.TextB oxBase.Cre ateHandle( ) +54
System.Windows.Forms.Contr ol.get_Han dle() +60
System.Windows.Forms.RichT extBox.For ceHandleCr eate() +5
System.Windows.Forms.RichT extBox.set _SelectedT ext(String value) +13
System.Windows.Forms.TextB oxBase.App endText(St ring text) +105
TextToRtf.TextToRtf.textTo RTF() in c:\documents and settings\csh\my documents\visual studio projects\texttortf\class1. cs:30
ASP.textrtf_aspx.Page_Load () in D:\InetPub\wwwroot\aednet\ www\leader ship\textr tf.aspx:25
System.Web.Util.ArglessEve ntHandlerD elegatePro xy.Callbac k(Object sender, EventArgs e) +10
System.Web.UI.Control.OnLo ad(EventAr gs e) +67
System.Web.UI.Control.Load Recursive( ) +35
System.Web.UI.Page.Process RequestMai n() +750
-------------------------- ---------- ---------- ---------- --
Please Help.
--------------------------
Class already exists
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.ComponentModel.Win3
Source Error:
Line 23: thisString = Request.Form["rctext"].ToS
Line 24: retVal = new TextToRtf(thisString);
Line 25: retVal.textToRTF();
Line 26: outString = retVal.getRTF();
Line 27: Response.Write("Member ID: " + Request.Form["thisindid"].
Source File: D:\InetPub\wwwroot\aednet\
Stack Trace:
[Win32Exception (0x80004005): Class already exists]
System.Windows.Forms.Windo
System.Windows.Forms.Windo
System.Windows.Forms.Nativ
System.Windows.Forms.Contr
System.Windows.Forms.Contr
System.Windows.Forms.Contr
System.Windows.Forms.TextB
System.Windows.Forms.Contr
System.Windows.Forms.RichT
System.Windows.Forms.RichT
System.Windows.Forms.TextB
TextToRtf.TextToRtf.textTo
ASP.textrtf_aspx.Page_Load
System.Web.Util.ArglessEve
System.Web.UI.Control.OnLo
System.Web.UI.Control.Load
System.Web.UI.Page.Process
--------------------------
Please Help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have resolved this issue.
All I had to do was use custom RichTextBox (RichTextBoxEx) I purchased and update my framework form 1.1 to 2 (or 3).
Thank You
All I had to do was use custom RichTextBox (RichTextBoxEx) I purchased and update my framework form 1.1 to 2 (or 3).
Thank You
ASKER
Please help