Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Disabling Version Tolerant Serialization

$
0
0

I was surprised to find that I could compile a new version of a business assembly 1.0.0.1 (the only change being the assembly version), host it in WCFDataPortal and run a client compiled against the previous version 1.0.0.0 with no problems.

I say this because I thought that the default value of BinaryFormatter.AssemblyFormat was FormatterAssemblyStyle.Full which should cause an exception when attempting to deserialize the 1.0.0.0 type into the 1.0.0.1 type.

After some research, I believe this behavior is because my business assembly is not strongly named

Is there an easy way to force CSLA to throw a serialization exception in this case without using a strong name?

 


Viewing all articles
Browse latest Browse all 764

Trending Articles