473,395 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

UserControl assembly reference

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.CompilerGlobalScop eAttribute()]
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
Nov 17 '05 #1
1 3583
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
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.CompilerGlobalScop eAttribute()]
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cedric | last post by:
I have a WebPage with a usercontrol (webcomponent.dll). With the port 80 on the server, the webpage and the usercontrol works fine If i change the port (18802), the time of loading the usercontrol...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
2
by: Kym | last post by:
I have an application which dynamically inserts a UserControls at run time. When I instansiate the UserControl I need to pass it an object however I am getting errors like... 'Value of type...
0
by: ElSchepo | last post by:
Hi, Just made a UserControl with three objects (calendar, textbox, button), a public method and property. Nothing fancy; just a 'stupid' User Control. The control appears on my test aspx page....
2
by: sklett | last post by:
I'm trying to add an assembly that has a couple UserControls (among other things) to the toolbar. When I browse to it, I get a message that it's can't find an assembly that it needs...
2
by: Alex Maghen | last post by:
I want to create a utility function that will seach the current page for one of my UserControls by it's type. So, let's say that I have a UserControl whose class I defined as follows: namespace...
1
by: Stan SR | last post by:
Hi, With asp.net 2, c# I try to load UserControl on "fly". When I test the website using VS2005, everything works. When I try to publish the website, I get some errors like : "The type or...
14
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I have created a UserControl ("MyUC"). I've put a bunch of instances of that control on a Page ("Defaul.aspx"). The control works fine. Now, I want to be able to use "FindControl()" from...
6
by: Johnny Jörgensen | last post by:
I've got a usercontrol derived from a normal ComboBox that contains some special formatting code. On my main form I've got a lot of my custom comboboxes. I discovered a bug in the derived...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.