HighTechTalks DotNet Forums  

Strange "ambiguous in namespace" complier error disappears with rebuild

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Strange "ambiguous in namespace" complier error disappears with rebuild in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
John Kotuby
 
Posts: n/a

Default Strange "ambiguous in namespace" complier error disappears with rebuild - 12-12-2007 , 12:10 PM






Hi all.

I am using VS 2005 and VB.NET.
Lately as my Web Application is getting larger, I have been getting strange
compiler messages like the following:
---------------------------
Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx'
is ambiguous in the namespace 'ASP'.

Source Error:

Line 9:
Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
Runat="Server">
Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
runat="server" />
Line 12:
Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" />
---------------------------

This typically occurs after I have made a change that is in a code-behind
page in which the offending User Control is placed and I do a complete
rebuild and then test.

After the error occurs without making any other changes to the code, I
simply do another full rebuild from within VS and the error goes away and
does not re-occur.

Has anyone experienced this? Is there a fix for it? It is becoming both
annoying and time-consuming.

TIA



Reply With Quote
  #2  
Old   
Lloyd Sheen
 
Posts: n/a

Default Re: Strange "ambiguous in namespace" complier error disappears with rebuild - 12-12-2007 , 01:23 PM







"John Kotuby" <JohnKotuby (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi all.

I am using VS 2005 and VB.NET.
Lately as my Web Application is getting larger, I have been getting
strange compiler messages like the following:
---------------------------
Compiler Error Message: BC30560: 'controls_user_createquicksearchbar_ascx'
is ambiguous in the namespace 'ASP'.

Source Error:

Line 9:
Line 10: <asp:Content ID="Content1" ContentPlaceHolderID="Content1"
Runat="Server"
Line 11: <uc1:CreateQuickSearchBar ID="CreateQuickSearchBar1"
runat="server" /
Line 12:
Line 13: <uc2:PCSavedSearches ID="PCSavedSearches1" runat="server" /
---------------------------

This typically occurs after I have made a change that is in a code-behind
page in which the offending User Control is placed and I do a complete
rebuild and then test.

After the error occurs without making any other changes to the code, I
simply do another full rebuild from within VS and the error goes away and
does not re-occur.

Has anyone experienced this? Is there a fix for it? It is becoming both
annoying and time-consuming.

TIA

I have exactly the same problem. I have googled, asked here but no answers
/ solutions. Get out of the car and get back in. The only thing I can
think of is that depending on where my right hand is (on mouse or keyboard)
I will use F5 or click start debugging toolbar button. I always thought
that was the same but it seems that if I use only one of those combinations
I don't get the problem.

LS



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.