I am currently going through and attempting to upgrade an application with CSLA 3.6.3 and .net framework 3.5 to the .net framework 4.0 and csla 4.5. I am attempting to do this in a phased approach and trying to include both version of CSLA in the same solution.
I have gotten CSLA 3.6.3 renamed and changed all of its namespaces so that it will appear to co-exist with csla 4.5. But now I am getting an error that I just can't figure out.
When I add a new class that references the new csla and simply inherit from one of the csla base classes I get the following error.
"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information"
I have done a lot of research and found that if go into the assemlyInfo.vb file and comment out the following code I get a little better error.
[assembly: System.Security.AllowPartiallyTrustedCallers]
The new error is:
Description:
"There was an error reflecting type 'class name'.
File:
SGEN
I believe the problem is related to the Security transparency change that occurred between .net framework 3.5 and .net framework 4.5. Any suggestions on how to solve this issue would be greatly appreciated.