Asp Net System Runtime Serialization Serializationexception
.Net Web API SerializationException. At System.Runtime.Serialization. Browse other questions tagged asp.net.net xml-serialization asp.net-web-api wcf. Dec 13, 2010 Re: System.Runtime.Serialization.SerializationException with POST Dec 27, 2008 04:30 PM dosborn278 LINK It appears that the issue is related to the fact that myObject lives in a different assembly and namespace as the REST service. I am using the built it login controls for my website, and when I watch the output dialog I see A first chance exception of type 'System.Runtime.Serialization.
Hi, I am working on an ASP.NET web app using Visual Studio 2008 and a third-party library. Things are fine in my development environment.
Things are also good if the web app is deployed in Debug configuration. However, when it is deployed in Release mode, SerializationExceptions appear intermittently, breaking other functionality. In the Windows event log, the following error can be seen: 'An unhandled exception occurred and the process was terminated. Application ID: DefaultDomain Process ID: 3972 Exception: System.Runtime.Serialization.SerializationException Message: Unable to find assembly 'MyThirdPartyLibrary, Version=1.234.5.67, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'.
Serializationexception
I'm not sure if this is exactly the same issue, but I've run into the same issue when trying to create my own identity implementation. Solved my problem. It seems that the problem is there's an issue with identity serialization in Cassini, but you can get around it by deriving your class from MarshalByRefObject: Serializable public class MyUser: MarshalByRefObject, IIdentity public int UserId. You can't inherit from GenericIdentity then, of course, but you can still implement the IIdentity interface that GenericIdentity implements, so you can use the thing in most places that expect an IIdentity at least.