Been using 2.0 framework for quite a few years (obviously). I am trying to move to to version 3.05 but I am unable to compile due to error. No modifications have been made to the code. The error preventing compilation is:
Line: 25 className = TypeName (source)
Error: System.RunTime.Serialization.TypeName is not accessible in this context because it is Private.
Anyone have any idea why this is happening?
Appreciate anyone's help.
Are you sure this is the official 3.0.5 release source code you are compiling?
I downloaded CSLA 3.0.5 source code (from http://www.lhotka.net/cslanet/download.aspx) and
And the solution compiles with no errors.
The method TypeName should reference a public method in the Microsoft.VisualBasic.Information class in .NET framework!
The framework was downloaded directly from the CSLA site. I did follow Rocky's instructions for setting the compilation symbols.
What ultimately helped, is that you gave me the complete reference to Microsoft.VisualBasic.Information. I added the complete reference and the error has disappeared. It appears that it was attempting to reference the TypeName in System.RunTime.Serialization instead of the proper place.
The problem has been fixed. I appreciate your help. Thanks.
Copyright (c) Marimer LLC