Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

user control ambiguous in the namespace

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
g@work - 04 Jul 2007 11:40 GMT
Hello,

I got the following error on a .net 1.1 application:

'mycontrol_ascx' is ambiguous in the namespace '_ASP'

The problem appears when I call 2 user controls on the same page, they
both have the same name but they are located in a different folder and
they dont have a code behind.

This problem was not apparent on the staging machine but it is on live
environment. Reading through other posts having the same problem, it
seems that has to do something with setting debug = false, however
noone till now seems to offer a proper solution (other than setting
debug = true)

Can anyone help please??

Thanks
Teemu Keiski - 04 Jul 2007 11:47 GMT
Hi,

try using ClassName attribute on @Control directive so that they are
different between these ascx files

http://msdn2.microsoft.com/en-us/library/d19c0t4b(vs.80).aspx

Signature

Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

> Hello,
>
[quoted text clipped - 15 lines]
>
> Thanks
g@work - 04 Jul 2007 12:22 GMT
Thanks so much for this!

It seems to work, I will do some more testing and I ll come back if
the problem persist.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.