I get the following error when attempting to build my assembly in Release configuration in Visual Studio 2008:
SGEN : error : Cannot load dynamically generated serialization assembly. In some hosting environments assembly load functionality is restricted, consider using pre-generated serializer. Please see inner exception for more information.
I've been hunting around trying to figure this out for about a day now, but I've found no way to see the inner exception, and everything sensible I've tried so far just hasn't worked. Any help that anyone can offer on how to debug this problem would be greatly appreciated.
This error doesnt occurr in Release configuration.