H
Hans De Schrijver
I have an assembly with 2 projects. The first project (CLSLibrary) is a
Class Library that contains public class User. The second project
(CLSTester) is an ASP.NET Web Application that contains a Web Form
(CLSTestForm.aspx).
The code-behind file of the Web Form has reference to CLSLibrary and a
'using CLSLibrary' directive, so it can use the User class.
The CLSLibrary compiles without errors. However, running the CLSTestForm
generates the following
error message:
System.Security.Principal.IPrincipal' does not contain a definition for
'GetUser'.
(Note: the GetUser function is a public static function in the User class)
Here's the odd thing: if I change the class name from User to MyUser in
CLSLibrary, rebuild the class then run the aspx form, everything runs fine.
Is there a predefined User class in .NET that I don't know about? I also
can't find much info online about the "System.Security.Principal.IPrincipal'
does not contain a definition for " error. Any ideas what;s going on?
-- Hans De Schrijver
Class Library that contains public class User. The second project
(CLSTester) is an ASP.NET Web Application that contains a Web Form
(CLSTestForm.aspx).
The code-behind file of the Web Form has reference to CLSLibrary and a
'using CLSLibrary' directive, so it can use the User class.
The CLSLibrary compiles without errors. However, running the CLSTestForm
generates the following
error message:
System.Security.Principal.IPrincipal' does not contain a definition for
'GetUser'.
(Note: the GetUser function is a public static function in the User class)
Here's the odd thing: if I change the class name from User to MyUser in
CLSLibrary, rebuild the class then run the aspx form, everything runs fine.
Is there a predefined User class in .NET that I don't know about? I also
can't find much info online about the "System.Security.Principal.IPrincipal'
does not contain a definition for " error. Any ideas what;s going on?
-- Hans De Schrijver