Remoting with shared add-in : SerializationException

J

jacknsa

Cross posted from the VSTO forum:

I have an exisiting WinForms application which uses Remoting to access the
business logic. I want to convert an existing VSTO document-centric Excel
2003 application to use the same business logic server - except this time I'd
rather build it as a Shared Add-in.

I ran a few experiments.

I created a test Shared Add-in project (no shim - just plain vanilla, out of
the box VS2005). I added a command bar button and the click event loads a
form. The form tries to populate a combo box with data from the remoting
server. I get a serialization exception:

A first chance exception of type
'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll

When I trace the request I notice that the server is invoked, the object is
returned to the add-in but the exception is thrown before the remoting
request completes.

As a test, I modified my VSTO version to use the same remoting method and
that seemed to work fine.

I tried a few variations - adding a seperate winforms project to contain all
the remoting logic, etc - with the same results.

Can remoting be used with Shared Add-in? Do I need to do some special shim
stuff? Should I re-post this question in the Remoting forum?

Thanks

Jack
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top