C:\dotnetnuke\controls\Address.ascx.vb(28): 'CountryListBox' is ambiguous in the namespace 'DotNetNuke.Web.UI.WebControls'.

I have DNN 2.0.4 in my machine. I start to learning how to generate my own custom module. I removed two data provider projects(Access & Sql) down there and rebuild the whole solution. Everything so far is fine except the Error msgs come from these two modules as following:

C:\dotnetnuke\controls\Address.ascx.vb(28): 'CountryListBox' is ambiguous in the namespace 'DotNetNuke.Web.UI.WebControls'.
and
C:\dotnetnuke\controls\CountryListBox\CountryListBox.vb(126): 'CountryLookup' is ambiguous in the namespace 'DotNetNuke'.
C:\dotnetnuke\controls\CountryListBox\CountryListBox.vb(142): 'CountryLookup' is ambiguous in the namespace 'DotNetNuke'.
C:\dotnetnuke\controls\CountryListBox\CountryListBox.vb(148): 'CountryLookup' is ambiguous in the namespace 'DotNetNuke'.
C:\dotnetnuke\controls\CountryListBox\CountryListBox.vb(151): 'CountryLookup' is ambiguous in the namespace 'DotNetNuke'.
I am a beginner of DNN and spend a couple of days already try to figure out where are the "ambiguous" come from. Is there somebody can help to give me help? Thanks in advance.
Willie Cai
0
williecai
5/31/2004 4:24:04 PM
asp.net.dotnetnuke 25171 articles. 0 followers. Follow

5 Replies
1019 Views

Similar Articles

[PageSpeed] 55

The error means that DotNetNuke.CountryLookup is defined in more than one place (more than likely in two different assemblies).

Check the following:
1) Make sure you do not have the DotNetNuke.dll assembly in your bin folder duplicated under some other filename.
2) Check that your module's folder is not defined as an application in IIS. Only the root DNN folder must be setup as an application.
Nik

Nik Kalyani
Speerio, Inc.

[DotNetNuke and ASP.Net solutions here]
0
cniknet
5/31/2004 4:49:22 PM
Very quick response, thanks a lot, Nik.

1. I do check bin folder. There are DotNetNuke.dll and CountryListBox.dll existing in the same folder but they are not the same file in different name. It looks to me there are some loop definitions in the beginning.
2. I have XP Pro in my machine, DNN folder is in the root if I understand you correctly, Nik.
Regards.

Willie Cai
0
williecai
5/31/2004 5:19:34 PM
This may not apply in your case, but all my dnn sites are set into solutions with unique names to match my business clients, and in this case, any recompile will create MyClientName.dll which mirrors the original DotNetNuke.dll in the bin folder. If i don't remember to remove this original dll file, i will get this error. hth, drew..
0
dcurry
5/31/2004 6:23:35 PM
Did you recompile DNN? Perhaps you included the CountryListBox project files into the DNN project resulting in the duplicate definition. If this is the case you have to either remove the CountryListBox files from the DNN project and re-compile, or delete the CountryListBox.dll file from the bin folder.

Nik

Nik Kalyani
Speerio, Inc.

[DotNetNuke and ASP.Net solutions here]
0
cniknet
5/31/2004 6:37:08 PM
Nik, there is CountryListBox project under controls\ folder. I exclude them from project and recompile DNN. Now, everything is fine. Thanks, Nik.

Willie
0
williecai
5/31/2004 7:03:46 PM
Reply:

Similar Artilces:

''''''''''''''''''''
Name: haznen Email: haznenatyahoodotcom Product: Gran Paradiso Alpha 8 Summary: '''''''''''''''''''' Comments: '''''''''''''''''''''''''''''''''''' Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061204 UGES/1.7.2.0 GranParadiso/3.0a1 From URL: http://www.mozilla.org/projects/granparadiso/ Note to readers: Hendrix gives...

'''''
Name: mario Email: ramar17atfastwebnetdotit Product: Gran Paradiso Alpha 2 Summary: ''''' Comments: K: Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2) Gecko/20070206 GranParadiso/3.0a2 ...

Compiler Error Message: BC30560: 'Global' is ambiguous in the namespace 'DotNetNuke'.
I'm getting this error. Has anymore seen this or does anyone understand whatit means or how i might fix it? Thanks ShootingStar Server Error in '/' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30560: 'Global' is ambiguous in the namespace 'DotNetNuke'. Source Error: Line 31:...

The names space or the type ' DotNetNuke' in Imports on the level of the project ' DotNetNuke' is untraceable??????
when I try to charge a user control , this message is postedThe names space or the type ' DotNetNuke' in Imports on the level of the project ' DotNetNuke' is untraceable. Why do you have a space in front of DotNetNuke?...

'ScriptManager' is ambiguous in the namespace 'Microsoft.Web.UI'.
Ok. I cleared my whole drive of any refernce to Microsoft.Web.Atlas.dll. I then installed the AJAX Core V1.0 following with ASP.NET AJAX "Value Add" CTP then I installed the Atlas control toolkit. When I just use the core components it's fine but when I add the toolkit I get this error. Error 1 'ScriptManager' is ambiguous in the namespace 'Microsoft.Web.UI'.  If I remove the reference and run it It just re-adds the reference. I thought maybe it was my PC so I tried another one and the same message. I know that the scriptmanager is now in the GAC ...

'UpdatePanel' is ambiguous in the namespace 'System.Web.UI'
I am trying to update my project from .Net 2.0 to 3.5 and I am having this error 'UpdatePanel' is ambiguous in the namespace 'System.Web.UI'.  Can someone tell me please what is wrong or what should I check.Thank you, Eric In case here is my web.config : <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToke...

'Image' is an ambiguous reference between 'System.Web.UI.WebControls.Image' and 'System.Drawing.Image'
In my aspx page, I have the following snippet: <%@ Page Language="C#" %><%@ Import Namespace="System.IO" %><%@ Import Namespace="System.Drawing" %>     public System.Drawing.Image Test()    {      ...    }  I keep getting the 'Image' is an ambiguous reference between 'System.Web.UI.WebControls.Image' and 'System.Drawing.Image' error in my Test function (which returns an Image). How do I fix this? Right which is possible; use the full...

Error: Cannot convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.ButtonField'
Hello, I am getting the following error during compiliation. Any suggestions to fix it. Thanks. Cannot convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.ButtonField' protected void gvEvents_RowCommand(Object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Select") { int index = Convert.ToInt32(e.CommandArgument); GridViewRow selectedRow = gvEvents.Rows[index]; string sID; ButtonField btn; if (selectedRow.RowType == DataControlRowType.DataRow) { sID = ((ButtonField)selectedRow.FindControl("ID")).DataTextFi...

Namespace or type 'WebControls' for the Imports 'Microsoft.Web.UI.WebControls' cannot be found.
I'm trying to get this tab strip control to work within a .Net application. I've run the Build.bat file. I've copied the extracted files to: c:\Inetpub\wwwroot\webctrl_client I've copied the above files to my ASP.Net directory And I've copied the Microsoft.Web.UI.WebControls.dll to my BIN directory. The Namespace declaration is still not being recognized and there are no references to this namespace anywhere from within the IDE... What am I doing wrong? Thanks. Doug dexter you have to add the reference to the namespace right click the project and choose "add...

CS0104: 'Image' is an ambiguous reference between 'System.Web.UI.WebControls.Image' and 'System.Drawing.Image'
 CS0104: 'Image' is an ambiguous reference between 'System.Web.UI.WebControls.Image' and 'System.Drawing.Image'   <%@ Page Language="C#" %> <%@ Import Namespace="System.Drawing" %> <%@Import Namespace="System.Drawing.Imaging" %>   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script type="text/C#" runat="server"> void Page_Load() {//The @ means "Ignore escape characters!" in the following string. It is a verbatim //literal string - any backslashes (and newlines) in...

BC30560: 'ScriptManager' is ambiguous in the namespace 'System.Web.UI'.
Thought I would share the resolution to this error. As the messge says it occurs becuase there are two references to this dll. In my case it seemed to happen automatically. The resolution was to go to the project property pages and remove the duplicate references. I removed the reference to the CAG since I cannot rely on this being there when I publish to production      ...

BC30560: 'ScriptManager' is ambiguous in the namespace 'System.Web.UI'.
I have tried several thing to get rid of this error. I tried going to C:\Windows\Assembly\ and searched for System.Web.Extensions 1.0.61025.0 - R-Click, Uninstall Error message - "Assembly 'System.Web.Extensions' could not be uninstalled because it is required by other applications' I have also tried using the GACUtils.exe and it tells me I have 2 versions on the extensions installed v 3.5 & v 1.0   System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL  System.Web.Extensions, Version=3.5.0.0...

Error 1 The type 'System.Web.UI.WebControls.LinqDataSource' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\WINDOWS\asse
Once I build project. I encounter this error. Does someone experience this error?Error    1    The type 'System.Web.UI.WebControls.LinqDataSource' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll'    D:\Source Code\Linq_Lesson5\Default.aspx    1    1    D:\Source Code\Linq_Lesson5\  It appears tha...

ASPNET2 HELP! CS0266: Cannot implicitly convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.FileUpload'.
Server Error in '/start-movieposters' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0266: Cannot implicitly convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.FileUpload'. An explicit conversion exists (are you missing a cast?) Source Error: ...

Web resources about - C:\dotnetnuke\controls\Address.ascx.vb(28): 'CountryListBox' is ambiguous in the namespace 'DotNetNuke.Web.UI.WebControls'. - asp.net.dotnetnuke

Resources last updated: 12/15/2015 11:50:00 AM