UserControl assembly reference

  • Thread starter Thread starter Meir
  • Start date Start date
M

Meir

Hello,
I'm new in C# and .net, I'm doing the Walkthrough: Creating a Web User
Control that comes with Visual Studio .Net 2003.
In this Walkthrough you create a User Control and call it from a WebForm,
when executing it I get:

Compiler Error Message: CS0234: The type or namespace name 'Global' does not
exist in the class or namespace 'System.Web.UI.UserControl' (are you missing
an assembly reference?)

Source Error:


Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : UserControl.Global {
Line 29:
Line 30: private static bool __initialized = false;


Any idea what is the problem?

Thanks
Meir
 
I already found the problem, I called the project UserControl and this was
causing conflicts, I renamed it and everything is OK, thanks anyway.

Meir
 
Back
Top