Groups | Blog | Home
all groups > dotnet distributed apps > january 2006 >

dotnet distributed apps : Serialization Exception


endymion.keats NO[at]SPAM gmail.com
1/27/2006 12:34:02 PM
I have run into a problem I have had no luck hunting down. Here is the
scenario...

I have a web service application that works fine, it brings back
customer information.

I have a native .NET application that calls the Web Service and runs in
the System tray. That application works fine. The .NET application
acts as a "traffic-cop". I want it to be responsible for initiating
all the calls to the web service from different applications that run
on the PC. That way all of my application configuration/setup is
consolidated at a single point.

I have a .NET developed Add-In for outlook that use .NET remoting to
call the System Tray application. It works fine at our location (of
course), but at some of our client installs, they are getting an
exception when the Outlook add in calls the System tray application.
At these locations, the System Tray application works fine and
retreives information from the Web Service, it's just when the Outlook
application calls the System Tray app that we see an error.

The error says

System.Runtime.Serialization.SerializationExcpetion: The Type
System.Web.Services.Protocols.SoapException in Assembly
System.Web.Services, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f57f11d50a3 is not marked as serializable.

I have no ideas what the issue may be or what path to start down.

Any help would be greatly appreciated.

Thanks

Endymion
Michael Primeaux
3/23/2006 12:00:32 PM
The System.Web.Services.Protocols.SoapException is indeed not marked as
serializable, which (as the error message indicates) is the issue. The
remoting layer is attempting to serialize the SoapException across the
remoting boundary, which in this case is a process boundary.

Does your "in-house" test plan include failure conditions? I would expect
you to receive the below exception when your tray icon receive an exception
from your web service and then attempts to pass it across the remoting
boundary.

[quoted text, click to view]

Michael Primeaux
3/23/2006 12:12:37 PM
I misspoke. Please disregard my initial response. SoapException inherits
from SystemException, which inherits from Exception. I ran a few
serialization tests and found a SoapException is binary serializable, is
Soap serializable, but is not XML serializable.

I'm currently unsure given the information you've posted as to why you are
recieving the error. I'll continue to investiage.

Regards,
Michael

[quoted text, click to view]

AddThis Social Bookmark Button