Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / September 2004

Tip: Looking for answers? Try searching our database.

DataSet problem when using a Serviced Component

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sprungli - 20 Sep 2004 20:45 GMT
I have remote object that writes a DataSet to an ASP.NET host application.
The remote object used a class to do the writing. With the permissions set
properly everything worked fine until I decided to make this class a
serviced component to take advantage of some COM+ features. Now I get a
runtime error in the method used to write the DataSet. The same method was
performing the task successfully prior to making the class a COM+ component.

Here is what the method of the serviced component does:

public bool PersistData(DataSet ds, string filePath)

{

   //...

    ds.WriteXml(filePath, XmlWriteMode.WriteSchema);

   //...

}

and here is the output:

[top of Call Stack]

mscorlib.dll!System.Runtime.Remoting.Proxies.RealProxy::HandleReturnMessage(
System.Runtime.Remoting.Messaging.IMessage reqMsg =
{System.Runtime.Remoting.Messaging.Message},
System.Runtime.Remoting.Messaging.IMessage retMsg =
{System.Runtime.Remoting.Messaging.MethodResponse}) + 0x90 bytes

[Output]

An unhandled exception of type 'System.Runtime.Remoting.RemotingException'
occurred in mscorlib.dll

Additional information: The argument type System.Data.DataSet cannot be
converted into parameter type System.Data.DataSet.

Any idea on what the problem could be?

TIA
Jos? Miguel Torres - 29 Sep 2004 14:28 GMT
Try to put method serializable....

regards

--
Jos? Miguel Torres
jtorres_diaz~~ARROBA~~terra.es
http://jmtorres.blogspot.com
> I have remote object that writes a DataSet to an ASP.NET host application.
> The remote object used a class to do the writing. With the permissions set
[quoted text clipped - 20 lines]
>
> [top of Call Stack]

mscorlib.dll!System.Runtime.Remoting.Proxies.RealProxy::HandleReturnMessage(
> System.Runtime.Remoting.Messaging.IMessage reqMsg =
> {System.Runtime.Remoting.Messaging.Message},
[quoted text clipped - 12 lines]
>
> TIA

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.