• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Active Member
    Posts: 6
    Registered: ‎10-19-2005

    Cann't DeSerialize in .net arx environment

    74 Views, 5 Replies
    10-19-2005 07:06 AM
    I try to Serialize a custom class' Instance and deserialize it . If this method is called in arx, it always raise an "cann't find the assembly" exception , but the same code is correct without AutoCAD .net environment. please tell me why ?
    Please use plain text.
    *Tony Tanzillo

    Re: Cann't DeSerialize in .net arx environment

    10-19-2005 11:42 AM in reply to: netarx
    What type of serialization is this (e.g., Binary, SOAP, XML) ?

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com

    wrote in message news:4988774@discussion.autodesk.com...
    I try to Serialize a custom class' Instance and deserialize it . If this method is called in arx, it always raise an "cann't find the assembly" exception , but the same code is correct without AutoCAD .net environment. please tell me why ?
    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎10-19-2005

    Re: Cann't DeSerialize in .net arx environment

    10-20-2005 04:42 PM in reply to: netarx
    I use binary serialize type.
    When I use .NET's "Remoting Access" feature, the same thing happend. So, How can I access AutoCAD process from excel add-in process(or from any other process outof autocad,without ActiveX technology)?
    Please use plain text.
    *Tony Tanzillo

    Re: Cann't DeSerialize in .net arx environment

    10-20-2005 06:15 PM in reply to: netarx
    You can send an object across the wire or deserialize
    it into any process, provided the implementation of
    the object's class resides in an assembly that can be
    loaded into the destination process.

    The AutoCAD interop assemblies cannot be loaded into
    any process, only the AutoCAD process.

    What exactly are you trying to persist?

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com

    wrote in message news:4990878@discussion.autodesk.com...
    I use binary serialize type.
    When I use .NET's "Remoting Access" feature, the same thing happend. So, How can I access AutoCAD process from excel add-in process(or from any other process outof autocad,without ActiveX technology)?
    Please use plain text.
    *Fred Chateau

    Re: Cann't DeSerialize in .net arx environment

    01-18-2006 06:58 PM in reply to: netarx
    "Tony Tanzillo" wrote ...

    > You can send an object across the wire or deserialize it into any process,
    > provided the implementation of the object's class resides in an assembly
    > that can be loaded into the destination process.

    So it sounds like your saying if I wanted to serialize some objects and send
    them to a Web Service or to SQL Server, it would work as long as they are
    being deserialized back into an ObjectARX process.

    Is that correct? If I understand the API documentation, there are "filer"
    methods to do this. Should I be looking at them or working with .NET
    serialization classes?

    --
    Regards,

    Fred Chateau
    fchateauAtComcastDotNet
    Please use plain text.
    *Tony Tanzillo

    Re: Cann't DeSerialize in .net arx environment

    01-18-2006 09:11 PM in reply to: netarx
    "Fred Chateau" wrote:

    >> So it sounds like your saying if I wanted to serialize some
    >> objects and send them to a Web Service or to SQL Server,
    >> it would work as long as they are being deserialized back
    >> into an ObjectARX process.

    >> Is that correct?

    Not exactly. That was about remote access to AutoCAD's
    managed wrapper API from another process (serialization
    is how remoting is done) for example, from a standalone
    .NET executable, or a DLL loaded into Excel or something
    like that.

    There's no way to do that with the AutoCAD managed
    wrapper classes, because they can't be loaded into any
    process other than ACAD.EXE.

    --
    http://www.caddzone.com

    AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
    http://www.acadxtabs.com
    Please use plain text.