System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040200

S

sridev

hi all,

I am very much new to C Sharp.

I am using COM in my project.I have added it to the reference of my
project.
And i have created the object for the COM.And i am accessing the
methods that are in the COM with the help of the object.

The method which i am using will save the XMLString in the DB.The
method will get the Connection string and the xmlstring as input.

When i run the project its generates an error like this

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.Runtime.InteropServices.COMException:
Exception from HRESULT: 0x80040200.

Source Error:


Line 466: String strClientxml="";
Line 467: //SPSCOMLib.DCOMClient objCli = new
SPSCOMLib.DCOMClientClass ();
Line 468: strClientxml=objClient.Save(strCondb,strxml);
Line 469: Debug.WriteLine(strClientxml);
Line 470: }

Stack Trace:


[COMException (0x80040200): Exception from HRESULT: 0x80040200.]
SPSCOMLib.DCOMClientClass.Save(String bstrConnString, String strXML)
+0
Op.Net.Client.Temp.btnNext_Click(Object sender, EventArgs e) in
E:\Op.Net\Client\InsClient.aspx.cs:468
System.Web.UI.WebControls.Button.OnClick(EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()


Plz help me to solve the problem......

Thanking you in advance....

With regards,
Sridev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top