Cann't DeSerialize in .net arx environment

Cann't DeSerialize in .net arx environment

Anonymous
Not applicable
811 Views
5 Replies
Message 1 of 6

Cann't DeSerialize in .net arx environment

Anonymous
Not applicable
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 ?
0 Likes
812 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
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:[email protected]...
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 ?
0 Likes
Message 3 of 6

Anonymous
Not applicable
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)?
0 Likes
Message 4 of 6

Anonymous
Not applicable
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:[email protected]...
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)?
0 Likes
Message 5 of 6

Anonymous
Not applicable
"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
0 Likes
Message 6 of 6

Anonymous
Not applicable
"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
0 Likes