473,387 Members | 1,548 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,387 software developers and data experts.

BC30554: 'commoncontrols_searchlist' is ambiguous.

This is really weird,

I have a project with a few hundred pages and usercontrols, the project has
been working for a couple of weeks now and I went to make some changes in my
localhost, when hitting the site I got an error in one page saying it could
not load a usercontrol because it was not the right type, and then when I
opened the page in question in VS 2005 I got a lot of errors everytime I
define a control to be loaded using Loadcontrol("path"). It says:

BC30554: 'commoncontrols_searchlist' is ambiguous.

And now when I tried to hit the site on my localhost It does not work and
gives me the same error. Has anybody else seen this?

The control has a reference on the aspx side that looks like this:

<%@ Reference Control="~/commoncontrols/searchlist.ascx" %>

and then in the vb file I have:

Dim showlist As commoncontrols_searchlist =
LoadControl("/commoncontrols/searchlist.ascx")

It used to work, in fact I have the site in production working but I can not
make changes in my localhost now.

thanks,
Marcelo Cabrera.
Jan 19 '06 #1
1 3450
I found the problem,

I used VS2003 before and compiled an ASP.NET solution in 'release' mode,
then switch IIS on my localhost to another project and loaded a site on
VS2005 , compiling in 'debug' mode, somehow the VS2005 project was behaving
like an old 2003 web project, where you can reference any .ascx from your
code behind as long as it exists in your project and because I had a
reference in the aspx file it was declared/referenced twice.

How to fix it:
Open the site in VS2005 and select 'release' build, then rebuild the entire
thing, change it back to 'debug' and then rebuild. that's all.

"Marcelo Cabrera" wrote:
This is really weird,

I have a project with a few hundred pages and usercontrols, the project has
been working for a couple of weeks now and I went to make some changes in my
localhost, when hitting the site I got an error in one page saying it could
not load a usercontrol because it was not the right type, and then when I
opened the page in question in VS 2005 I got a lot of errors everytime I
define a control to be loaded using Loadcontrol("path"). It says:

BC30554: 'commoncontrols_searchlist' is ambiguous.

And now when I tried to hit the site on my localhost It does not work and
gives me the same error. Has anybody else seen this?

The control has a reference on the aspx side that looks like this:

<%@ Reference Control="~/commoncontrols/searchlist.ascx" %>

and then in the vb file I have:

Dim showlist As commoncontrols_searchlist =
LoadControl("/commoncontrols/searchlist.ascx")

It used to work, in fact I have the site in production working but I can not
make changes in my localhost now.

thanks,
Marcelo Cabrera.

Jan 19 '06 #2

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

Similar topics

16
by: REH | last post by:
Can some tell me why the chooses the constructor in class B over operator B in class A? Is this not ambiguous? Thanks. #include <iostream> using namespace std;
9
by: xuatla | last post by:
compile error: test1.cpp:21: error: ISO C++ says that `T mtd::CDiffOperator::getdp(const mtd::mVector&, long int, mtd::mBCTYPE) const' and `void mtd::CDiffOperator::getdp(mtd::mVector&, const...
1
by: Alex Zhitlenok | last post by:
Hi, My question is how to resolve in C# ambiguous overloaded operators? Let say, I have two unrelated classes A and B, each one implements overloaded operator + with the first parameter of type...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
3
by: Arpan | last post by:
The following code exists in a class file named "Users.vb": Namespace Users Public Class UserDetails Public FirstName As String Public LastName As String Public UserName As String Public...
1
by: rn5a | last post by:
Consider the following code in a VB class file: Namespace LoginUserFetchDB Public Class ZForZebra : Inherits SoapHeader Public UserName As String Public Password As String End Class Public...
8
by: xtrigger303 | last post by:
Hi to all, I'm working on a smart pointer implementation and I'm trying to get automatic type conversion between different pointer types. I stumbled upon something weird (at least for me) I...
12
by: Nathan Sokalski | last post by:
I have several CustomControls that I have written for my project. However, when I try to compile I recieve the following warning & errors: Warning 32 Could not resolve this reference. Could not...
3
by: i3x171um | last post by:
To start off, I'm using GCC4. Specifically, the MingW (setjmp/longjmp) build of GCC 4.2.1 on Windows XP x64. I'm writing a class that abstracts a message, which can be either an integer (stored as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.