Duplicate custom controls



Hi!
I created some user control (ASCX) and it works fine.
The control is created one of subfolders of my project, so
its namespace looks like:
namespace myproject.subfolder1
{
public class route : System.Web.UI.UserControl
....

In another subfolder I also created second control, but
I used the 1st control as origin. Just copied the 1st control files
to the 2nd subfolder. After changed the 2nd control's namespace as:
namespace myproject.subfolder2
{
public class route : System.Web.UI.UserControl
....

Compilation works ok, but at run-time when I visit a page that contains
both of my controls, the server raises error:

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: CS1595: 'ASP.route_ascx' is defined in multiple
places; using definition from
'd:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\myproject\4b10f33a\12f97037\2bgwzy1u.dll'



.



Relevant Pages

  • Re: Why null reference to ListBox?
    ... I'm not sure what NameSpace means here. ... Search for Listbox ... Given that I dragged a graphical representation of a control from a ... sub aaaa ...
    (microsoft.public.excel.programming)
  • Problem using remote controls
    ... instance of a class and marshals it. ... GetControl() which returns the control to display the informations of the ... namespace Interfaces ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Cannot get a handle on web UserControls in ASP 2.0
    ... ASP 2.0 by resolving this namespace issue and getting a handle on control ... control loose in the root, I can access it statically from the default page. ... What bothers me is there does not appear to be a central location ... >> worst problem I've run into is all references to ...
    (microsoft.public.dotnet.framework.aspnet)
  • usercontrol question (C++)
    ... Then display the time in one of the panels using a timer control to ... using namespace System::ComponentModel; ... /// 'Resource File Name' property for the managed resource compiler tool ... void InitializeComponent ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Selectively disallowing PInvoke
    ... I assume you want this control from the managed side of the code. ... namespace GXGraphicsLibrary ... public class Windows ... > call into native DLLs and disallow other apps from doing the same. ...
    (microsoft.public.dotnet.security)