user control ambiguous in the namespace

Discussion in 'ASP .Net' started by g@work, Jul 4, 2007.

  1. g@work

    g@work Guest

    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
    g@work, Jul 4, 2007
    #1
    1. Advertising

  2. g@work

    Teemu Keiski Guest

    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


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



    "g@work" <> wrote in message
    news:...
    > 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, Jul 4, 2007
    #2
    1. Advertising

  3. g@work

    g@work Guest

    Thanks so much for this!

    It seems to work, I will do some more testing and I ll come back if
    the problem persist.
    g@work, Jul 4, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nancy.
    Replies:
    3
    Views:
    8,103
    i. Wiin
    Sep 28, 2004
  2. John
    Replies:
    1
    Views:
    4,779
    Patrice
    Jun 24, 2005
  3. =?Utf-8?B?SGFucyBCYXVtYW5u?=

    'mycontrol_ascx' is ambiguous in namespace ASP

    =?Utf-8?B?SGFucyBCYXVtYW5u?=, Nov 23, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    473
    =?Utf-8?B?SGFucyBCYXVtYW5u?=
    Nov 23, 2006
  4. Nemisis
    Replies:
    4
    Views:
    682
    Nemisis
    Apr 16, 2007
  5. =?Utf-8?B?U2FudGlhZ28gUGF6IC0gRnJvbSBTcGFpbg==?=

    ambiguous in the namespace

    =?Utf-8?B?U2FudGlhZ28gUGF6IC0gRnJvbSBTcGFpbg==?=, Oct 22, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    360
    =?Utf-8?B?U2FudGlhZ28gUGF6IC0gRnJvbSBTcGFpbg==?=
    Oct 22, 2007
Loading...

Share This Page