[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Chris Szabo

8/30/2004 7:17:00 PM

I'm having a strange problem with Serviced Components and enumerations. I'm
posting this under remoting because the exception I get is the following:

System.Runtime.Remoting.RemotingException: The argument type 1 cannot be
converted into parameter type Ori.Orders.Eorders.OrderType.

I have an assembly called Ori that has a strong name and is in the GAC. In
that assembly is a set of enumerations. From the application referencing the
assembly, I try to assign a value to a class property of a particular enum
type:

NewOrder.Type = OrderType.Cpm;

If I set a break point in the code, the exception is thrown at this line.
Prior to using Serviced Components, everything was okay. I shouldn't have to
marshal anything with Serviced Components either... the only class that I
need to extend is System.EnterpriseServices.ServicedComponents.

Has anyone ever seen this type of behavior before? Thanks a lot for any help.