473,320 Members | 2,012 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,320 software developers and data experts.

CS0234

I have created webform controls by following steps from one of the
site.
but when im placing the control on the form im getting below compiler
error
im not able to get what is this and tried a lot on net
Please help me as im not able to get a hand on it
This is the result that i get on the browser .
----------------------------------------------------
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?)
WebUserControl1.ascx
----------------------------------------------------
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.cs"
Inherits="UserControl.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="links"
Src="WebUserControl1.ascx" %>
<P>
Hello World!!!
</P>
webform1.aspx
----------------------------------------------------
<form id="Form1" method="post" runat="server">
<uc1:WebUserControl1 id="WebUserControl11"
runat="server"></uc1:WebUserControl1>
</form>


Thanks for replying me

Jan 17 '06 #1
1 2623
Did you compile the application first? Usually I get this error because the
Global.asax file does not exist or I haven't compiled it yet and the app is
requesting the Global.asax, which doesn't exist yet or has not been
compiled.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"jack" <ga**********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
I have created webform controls by following steps from one of the
site.
but when im placing the control on the form im getting below compiler
error
im not able to get what is this and tried a lot on net
Please help me as im not able to get a hand on it
This is the result that i get on the browser .
----------------------------------------------------
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?)
WebUserControl1.ascx
----------------------------------------------------
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.cs"
Inherits="UserControl.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="links"
Src="WebUserControl1.ascx" %>
<P>
Hello World!!!
</P>
webform1.aspx
----------------------------------------------------
<form id="Form1" method="post" runat="server">
<uc1:WebUserControl1 id="WebUserControl11"
runat="server"></uc1:WebUserControl1>
</form>


Thanks for replying me

Jan 17 '06 #2

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

Similar topics

1
by: Doug Crabtree | last post by:
I have a project that I am working on that whenever I change the form controls, or any property on the form controls it rewrites the code for that form. I understand that it is supposed to do...
0
by: Bill Johnson | last post by:
Server Error in 'DataGrid' Application Compilation Error CS0234: The type or namespace name 'Global' does not exist in the class or namespace 'System.Web.UI.WebControls.DataGrid' (are you...
0
by: gh0st54 | last post by:
An update on my original message seens like virtual directory doesn't like page inheritance I have taken my form in my Secure folder and made a duplicate in the main site, it works fine from the...
3
by: George W. | last post by:
I'm trying to use a DLL in my web app and get CS0234 (Namespace error). Is there no way to use a DLL that was written in VB in a C# web app?? -George W.
1
by: Surjeet Gill | last post by:
I was getting the following error after compiling the C# source file with VS.NET 2003, Any help will be appreciated. Many thanks! Surjeet Gill Details: Compilation Error Description: An...
0
by: Nikhil Patel | last post by:
Hi all, I am having a problem adding a reference in an ASP.Net project. I have written a custom control using a Web Control Library project. I compiled this project and generated a dll. Now...
2
by: Mark | last post by:
Hi, I'm fairly new to .NET and having problems getting an ASP.NET page working on my web host. The page works fine on my PC running against localhost. I have a MySQL database and a simple C#...
0
by: li.eddie | last post by:
Hi All, I'm new to ASP.NET and trying to create a Database application with MS Visual Web Dev 2005. In my project, I wrote a generic abstract class called DataAccessHelper.cs under App_Code folder...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.