.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cann't DeSerialize in .net arx environment

5 REPLIES 5
Reply
Message 1 of 6
netarx
313 Views, 5 Replies

Cann't DeSerialize in .net arx environment

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 ?
5 REPLIES 5
Message 2 of 6
Anonymous
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 ?
Message 3 of 6
netarx
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)?
Message 4 of 6
Anonymous
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)?
Message 5 of 6
Anonymous
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
Message 6 of 6
Anonymous
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost