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 2003

Tip: Looking for answers? Try searching our database.

Serialization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonas - 07 Sep 2003 22:33 GMT
Hi!

I have a class running in COM+ in a library package, and it works great. But
when I change it to a server package, I get this message:

System.Runtime.Serialization.SerializationException: The type
se.cybercom.cybermate.cs.Delegations.Biz.DlgsTx+Regional in Assembly
delegations.biz, Version=1.0.1343.14260, Culture=neutral,
PublicKeyToken=69760308791fe826 is not marked as serializable.

"Regional" is defined as follows and is used to send an array between the
client (web page) and the server in the COM+ package:

       Public Structure Regional
           Public guidRegionalID As Guid
           Public guidLanguageID As Guid
           Public strName As String
           Public strDescription As String
           Public dtModifyTime As DateTime
       End Structure

I tried to mark it with the <Serializable> attribute, but then I get the
following error instead:

System.Web.HttpUnhandledException: Exception of type
System.Web.HttpUnhandledException was thrown. --->
System.Runtime.Serialization.SerializationException: Cannot find the
assembly delegations.biz,

What more do I have to do to get this to work?

TIA

Jonas
Tomas Restrepo \(MVP\) - 08 Sep 2003 00:45 GMT
Jonas,

> I have a class running in COM+ in a library package, and it works great. But
> when I change it to a server package, I get this message:
[quoted text clipped - 24 lines]
>
> What more do I have to do to get this to work?

Do you have delegations.biz in the GAC?
Signature

Tomas Restrepo
tomasr@mvps.org

Jonas - 08 Sep 2003 06:58 GMT
Hi Tomas!

No, none of the dll's that make up the delegations.biz namespace is in the
GAC, do I have to put them all there for this to work?

Brgds

> Jonas,
>
[quoted text clipped - 29 lines]
>
> Do you have delegations.biz in the GAC?
Jonas - 08 Sep 2003 07:39 GMT
Sorry, the delegations.biz is of course only one dll. But when I put it  in
the GAC, I get this error instead

Type is not resolved for member
se.cybercom.cybermate.cs.Delegations.Biz.DlgsTx+Regional

/Jonas

> Hi Tomas!
>
[quoted text clipped - 37 lines]
> >
> > Do you have delegations.biz in the GAC?
Tomas Restrepo \(MVP\) - 08 Sep 2003 12:08 GMT
Hi Jonas,

> Sorry, the delegations.biz is of course only one dll. But when I put it  in
> the GAC, I get this error instead
>
>  Type is not resolved for member
> se.cybercom.cybermate.cs.Delegations.Biz.DlgsTx+Regional

Humm... interesting. Have you tried not making Regional a nested type? If
not, try converting it to a class, also, as there have been some bugs
reported with serialization of structs
--
Tomas Restrepo
tomasr@mvps.org
Jonas - 18 Sep 2003 08:37 GMT
I solved by reverting to plain old arrays :-< but I will try to use a class
the next time. The reason for choosing the struct was that it was more
light-weight than a ordinary class, but if a struct doesn't serialize well,
it doesn't work anyway.

Thanks for your help

Jonas

> Hi Jonas,
>
[quoted text clipped - 11 lines]
> Tomas Restrepo
> tomasr@mvps.org

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.