SV: Re: SV: Re: SV: Code behind error
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngfreeforall' list.


=?iso-8859-1?Q?Andr=E9_Colbi=F6rnsen?=
Is this all the code you have? W

Regards/Halsningar

Andre Colbiornsen
--------------------------------------
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malmö
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: Click here to reveal e-mail address
Web.: www.sonnenburg.se
----------------------------------------
B2B Web Solutions - Specializing in .Net
----------------------------------------

hat are you trying to achieve? Do you have a Global.asax using the
Classanme Global?

-----Ursprungligt meddelande-----
Från: Nick [mailto:Click here to reveal e-mail address]
Skickat: den 12 augusti 2002 13:06
Till: aspngfreeforall
Ämne: [aspngfreeforall] Re: SV: Re: SV: Code behind error

here my code that got error ? where i must put the global ??
file one
--------------
Imports System.Configuration.ConfigurationSettings
Imports System.Text
Public Class IUCategory
Inherits System.Web.UI.Page
Protected categoryname, newcat, newspi, status As TextBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Private moConn As New System.Data.SqlClient.SqlConnection()
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

end sub
end class
------------------
file two
--------------
Imports System.Configuration.ConfigurationSettings
Imports System.Text
Public Class LCategory1
Inherits System.Web.UI.Page
Protected WithEvents cvError As
System.Web.UI.WebControls.CustomValidator
Protected WithEvents vsErrors As
System.Web.UI.WebControls.ValidationSummary
Protected WithEvents tblResults As
System.Web.UI.HtmlControls.HtmlTable
Protected WithEvents dgValues As System.Web.UI.WebControls.DataGrid
Protected WithEvents lblResults As
System.Web.UI.HtmlControls.HtmlGenericControl
Protected WithEvents tblErrors As
System.Web.UI.HtmlControls.HtmlTable
Protected WithEvents cmdHome As
System.Web.UI.WebControls.ImageButton
Protected WithEvents lblStatus As System.Web.UI.WebControls.Label
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

end sub
end class

----- Original Message -----
From: "André Colbiörnsen" < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address>
To: "aspngfreeforall" < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address>
Sent: Monday, August 12, 2002 5:09 PM
Subject: [aspngfreeforall] SV: Re: SV: Code behind error

If you are using 2 methods with the same name in your codebehind, you
can always give the whole namespace structure to the compiler:

(Ficticious example)

System.Web.UI.Global()
System.Data.Global()

Hth

Regards/Halsningar

Andre Colbiornsen
--------------------------------------
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malmö
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: <mailto:Click here to reveal e-mail address> Click here to reveal e-mail address
Web.: <http://www.sonnenburg.se> www.sonnenburg.se
----------------------------------------
B2B Web Solutions - Specializing in .Net
----------------------------------------

-----Ursprungligt meddelande-----
Från: Nick [mailto:Click here to reveal e-mail address]
Skickat: den 12 augusti 2002 10:56
Till: aspngfreeforall
Ämne: [aspngfreeforall] Re: SV: Code behind error

so how to fix it ??
can i using 2 diferent file and using the same inherits name like below
this ?? Inherits="DataGridSample.LCategory "
Inherits="DataGridSample.IUCategory " for each file when i runing the
file and compile to dll it works .... each file in each folder but when
i put the file in the same folder it will get error ..... so how ?? is
the code behind have level2 .... ??

----- Original Message -----
From: "André Colbiörnsen" < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address>
To: "aspngfreeforall" < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address>
Sent: Monday, August 12, 2002 3:05 PM
Subject: [aspngfreeforall] SV: Code behind error

It means that the system have more than 1 option to chosose from when a
method, property ose is called. Locate Global and try to be more
specific when calling it or rename it to something else if possible.

Hth

Regards/Halsningar

Andre Colbiornsen
--------------------------------------
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malmö
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: <mailto:Click here to reveal e-mail address> Click here to reveal e-mail address
Web.: <http://www.sonnenburg.se> www.sonnenburg.se
----------------------------------------
B2B Web Solutions - Specializing in .Net
----------------------------------------
-----Ursprungligt meddelande-----
Från: Nick [mailto:Click here to reveal e-mail address]
Skickat: den 12 augusti 2002 06:46
Till: aspngfreeforall
Ämne: [aspngfreeforall] Code behind error

-- Moved from [aspngdatagridrepeaterdatalist] to [aspngfreeforall] by
bryanandrews < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address> --

dear all , when i using code behine i got erro like this, what should i
do to make my script no error like this anymore ??
BC30560: 'Global' is ambiguous in the namespace 'SitusCitra'.
| ASP.net DOCS = <http://www.aspng.com/docs> http://www.aspng.com/docs
| [aspngfreeforall] member <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address = YOUR ID
| <http://www.asplists.com/aspngfreeforall>
http://www.asplists.com/aspngfreeforall = JOIN/QUIT
| <news://ls.asplists.com> news://ls.asplists.com = NEWSGROUP

| ASP.net DOCS = <http://www.aspng.com/docs> http://www.aspng.com/docs
| [aspngfreeforall] member <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address = YOUR ID
| <http://www.asplists.com/aspngfreeforall>
http://www.asplists.com/aspngfreeforall = JOIN/QUIT
| <news://ls.asplists.com> news://ls.asplists.com = NEWSGROUP

| ASP.net DOCS = <http://www.aspng.com/docs> http://www.aspng.com/docs
| [aspngfreeforall] member <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address = YOUR ID
| <http://www.asplists.com/aspngfreeforall>
http://www.asplists.com/aspngfreeforall = JOIN/QUIT
| <news://ls.asplists.com> news://ls.asplists.com = NEWSGROUP

| ASP.net DOCS = <http://www.aspng.com/docs> http://www.aspng.com/docs
| [aspngfreeforall] member <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address = YOUR ID
| <http://www.asplists.com/aspngfreeforall>
http://www.asplists.com/aspngfreeforall = JOIN/QUIT
| <news://ls.asplists.com> news://ls.asplists.com = NEWSGROUP
| ASP.net DOCS = http://www.aspng.com/docs | [aspngfreeforall] member
Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/aspngfreeforall = JOIN/QUIT |
news://ls.asplists.com = NEWSGROUP
Reply to this message...
 
    
=?iso-8859-1?Q?Andr=E9_Colbi=F6rnsen?=
( Sorry last message got a bit strange - here is how it should read)

Is this all the code you have? What are you trying to achieve? Do you
have a Global.asax using the Classanme Global?

Regards/Halsningar

Andre Colbiornsen
--------------------------------------
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malmö
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: Click here to reveal e-mail address
Web.: www.sonnenburg.se
----------------------------------------
B2B Web Solutions - Specializing in .Net
----------------------------------------

-----Ursprungligt meddelande-----
Från: Nick [mailto:Click here to reveal e-mail address]
Skickat: den 12 augusti 2002 13:06
Till: aspngfreeforall
Ämne: [aspngfreeforall] Re: SV: Re: SV: Code behind error

here my code that got error ? where i must put the global ??
file one
--------------
Imports System.Configuration.ConfigurationSettings
Imports System.Text
Public Class IUCategory
Inherits System.Web.UI.Page
Protected categoryname, newcat, newspi, status As TextBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Private moConn As New System.Data.SqlClient.SqlConnection()
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

end sub
end class
------------------
file two
--------------
Imports System.Configuration.ConfigurationSettings
Imports System.Text
Public Class LCategory1
Inherits System.Web.UI.Page
Protected WithEvents cvError As
System.Web.UI.WebControls.CustomValidator
Protected WithEvents vsErrors As
System.Web.UI.WebControls.ValidationSummary
Protected WithEvents tblResults As
System.Web.UI.HtmlControls.HtmlTable
Protected WithEvents dgValues As System.Web.UI.WebControls.DataGrid
Protected WithEvents lblResults As
System.Web.UI.HtmlControls.HtmlGenericControl
Protected WithEvents tblErrors As
System.Web.UI.HtmlControls.HtmlTable
Protected WithEvents cmdHome As
System.Web.UI.WebControls.ImageButton
Protected WithEvents lblStatus As System.Web.UI.WebControls.Label
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

end sub
end class

----- Original Message -----
From: "André Colbiörnsen" < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address>
To: "aspngfreeforall" < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address>
Sent: Monday, August 12, 2002 5:09 PM
Subject: [aspngfreeforall] SV: Re: SV: Code behind error

If you are using 2 methods with the same name in your codebehind, you
can always give the whole namespace structure to the compiler:

(Ficticious example)

System.Web.UI.Global()
System.Data.Global()

Hth

Regards/Halsningar

Andre Colbiornsen
--------------------------------------
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malmö
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: <mailto:Click here to reveal e-mail address> Click here to reveal e-mail address
Web.: <http://www.sonnenburg.se> www.sonnenburg.se
----------------------------------------
B2B Web Solutions - Specializing in .Net
----------------------------------------

-----Ursprungligt meddelande-----
Från: Nick [mailto:Click here to reveal e-mail address]
Skickat: den 12 augusti 2002 10:56
Till: aspngfreeforall
Ämne: [aspngfreeforall] Re: SV: Code behind error

so how to fix it ??
can i using 2 diferent file and using the same inherits name like below
this ?? Inherits="DataGridSample.LCategory "
Inherits="DataGridSample.IUCategory " for each file when i runing the
file and compile to dll it works .... each file in each folder but when
i put the file in the same folder it will get error ..... so how ?? is
the code behind have level2 .... ??

----- Original Message -----
From: "André Colbiörnsen" < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address>
To: "aspngfreeforall" < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address>
Sent: Monday, August 12, 2002 3:05 PM
Subject: [aspngfreeforall] SV: Code behind error

It means that the system have more than 1 option to chosose from when a
method, property ose is called. Locate Global and try to be more
specific when calling it or rename it to something else if possible.

Hth

Regards/Halsningar

Andre Colbiornsen
--------------------------------------
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malmö
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: <mailto:Click here to reveal e-mail address> Click here to reveal e-mail address
Web.: <http://www.sonnenburg.se> www.sonnenburg.se
----------------------------------------
B2B Web Solutions - Specializing in .Net
----------------------------------------
-----Ursprungligt meddelande-----
Från: Nick [mailto:Click here to reveal e-mail address]
Skickat: den 12 augusti 2002 06:46
Till: aspngfreeforall
Ämne: [aspngfreeforall] Code behind error

-- Moved from [aspngdatagridrepeaterdatalist] to [aspngfreeforall] by
bryanandrews < <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address> --

dear all , when i using code behine i got erro like this, what should i
do to make my script no error like this anymore ??
BC30560: 'Global' is ambiguous in the namespace 'SitusCitra'.
| ASP.net DOCS = <http://www.aspng.com/docs> http://www.aspng.com/docs
| [aspngfreeforall] member <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address = YOUR ID
| <http://www.asplists.com/aspngfreeforall>
http://www.asplists.com/aspngfreeforall = JOIN/QUIT
| <news://ls.asplists.com> news://ls.asplists.com = NEWSGROUP

| ASP.net DOCS = <http://www.aspng.com/docs> http://www.aspng.com/docs
| [aspngfreeforall] member <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address = YOUR ID
| <http://www.asplists.com/aspngfreeforall>
http://www.asplists.com/aspngfreeforall = JOIN/QUIT
| <news://ls.asplists.com> news://ls.asplists.com = NEWSGROUP

| ASP.net DOCS = <http://www.aspng.com/docs> http://www.aspng.com/docs
| [aspngfreeforall] member <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address = YOUR ID
| <http://www.asplists.com/aspngfreeforall>
http://www.asplists.com/aspngfreeforall = JOIN/QUIT
| <news://ls.asplists.com> news://ls.asplists.com = NEWSGROUP

| ASP.net DOCS = <http://www.aspng.com/docs> http://www.aspng.com/docs
| [aspngfreeforall] member <mailto:Click here to reveal e-mail address>
Click here to reveal e-mail address = YOUR ID
| <http://www.asplists.com/aspngfreeforall>
http://www.asplists.com/aspngfreeforall = JOIN/QUIT
| <news://ls.asplists.com> news://ls.asplists.com = NEWSGROUP
| ASP.net DOCS = http://www.aspng.com/docs | [aspngfreeforall] member
Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/aspngfreeforall = JOIN/QUIT |
news://ls.asplists.com = NEWSGROUP
Reply to this message...
 
    
Richard Waddell
Found this on wrox.p2p.com posted by a guy named IMar, it worked for me:

Did you recently change the name of your assembly?

I have seen this error a few times when I renamed my assembly. I left the old one in the Bin folder as well, and thus ended up with two assemblies with the same Global classed defined in the same namespace.

Clear your Bin folder, recompile and the error should go away.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

--------------------------------
From: Richard Waddell
Reply to this message...
 
 
System.Configuration.ConfigurationSettings
System.Data.SqlClient.SqlConnection
System.EventArgs
System.Object
System.Web.UI.HtmlControls.HtmlGenericControl
System.Web.UI.HtmlControls.HtmlTable
System.Web.UI.MobileControls.TextBox
System.Web.UI.Page
System.Web.UI.WebControls.Button
System.Web.UI.WebControls.CustomValidator
System.Web.UI.WebControls.DataGrid
System.Web.UI.WebControls.ImageButton
System.Web.UI.WebControls.Label
System.Web.UI.WebControls.TextBox
System.Web.UI.WebControls.ValidationSummary
System.Windows.Forms.TextBox




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com