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 / May 2004

Tip: Looking for answers? Try searching our database.

Error when trying to return a array from a COM+ Object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Smith - 12 May 2004 01:10 GMT
I have written a COM+ DLL in vb.net to return all the user samaccount name
in a given OU. The results are returned as a dataview.
As the ASP.NET page calls the function from the COM+ it fails with the
following error:

The type System.Data.DataView in Assembly System.Data, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as
serializable.

I tried just returning one name as a string and it worked fine. So is there
something I should be doing to return Arraylists and datasets??

Thanks

Bill
SqlRanger - 12 May 2004 07:51 GMT
You can't return a dataview from a serviced component in a COM+ server
application because datatviews are not serializable. If the component were
in a library application you could return a dataview because library
applications load in the same proccess as the client and so don't need to be
serialized. I suggest you return a dataset or an array.

Signature

Regards from Madrid (Spain):

Jes?s L?pez
MVP Microsoft .NET

"No dar?s tropez?n ni desatino que no te haga adelantar camino"


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.