dotnet component services:
Jonas, [quoted text, click to view] > 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?
Do you have delegations.biz in the GAC? -- Tomas Restrepo tomasr@mvps.org
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
Hi Jonas, [quoted text, click to view] > 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
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 [quoted text, click to view] "Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message news:ur3wloZdDHA.2748@tk2msftngp13.phx.gbl... > 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: > > > > 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? > > Do you have delegations.biz in the GAC? > -- > Tomas Restrepo > tomasr@mvps.org > >
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 [quoted text, click to view] "Jonas" <jonas@nospam.pl> wrote in message news:O0Wsy4cdDHA.1880@TK2MSFTNGP10.phx.gbl... > 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 > > > "Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message > news:ur3wloZdDHA.2748@tk2msftngp13.phx.gbl... > > 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: > > > > > > 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? > > > > Do you have delegations.biz in the GAC? > > -- > > Tomas Restrepo > > tomasr@mvps.org > > > > > >
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 [quoted text, click to view] "Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message news:ORKL%23lfdDHA.2296@TK2MSFTNGP09.phx.gbl... > 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 > >
Don't see what you're looking for? Try a search.
|