title: The Namespace * already contains a definition for *
body: <p>I've created a separate folder and pages in my ASP.NET web application.  When I build the solution, I receive the error </p>
  
  <pre><code>The Namespace MyApp already contains a defintion for VDS
  </code></pre>
  
  <p>Here's the contents of VDS.Master.cs:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  namespace MayApp{
  public partial class VDS : System.Web.UI.MasterPage
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  }
  }
  </code></pre>
  
  <p>Here's the content of VDS.Master.designer.cs:</p>
  
  <pre><code>//------------------------------------------------------------------------------
  // &lt;auto-generated&gt;
  //     This code was generated by a tool.
  //
  //     Changes to this file may cause incorrect behavior and will be lost if
  //     the code is regenerated. 
  // &lt;/auto-generated&gt;
  //------------------------------------------------------------------------------
  
  namespace MyApp.VDS {
  
  
  public partial class VDS {
  
      /// &lt;summary&gt;
      /// Head1 control.
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      /// Auto-generated field.
      /// To modify move field declaration from designer file to code-behind file.
      /// &lt;/remarks&gt;
      protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
  
      /// &lt;summary&gt;
      /// head control.
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      /// Auto-generated field.
      /// To modify move field declaration from designer file to code-behind file.
      /// &lt;/remarks&gt;
      protected global::System.Web.UI.WebControls.ContentPlaceHolder head;
  
      /// &lt;summary&gt;
      /// form1 control.
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      /// Auto-generated field.
      /// To modify move field declaration from designer file to code-behind file.
      /// &lt;/remarks&gt;
      protected global::System.Web.UI.HtmlControls.HtmlForm form1;
  
      /// &lt;summary&gt;
      /// ScriptManager1 control.
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      /// Auto-generated field.
      /// To modify move field declaration from designer file to code-behind file.
      /// &lt;/remarks&gt;
      protected global::System.Web.UI.ScriptManager ScriptManager1;
  
      /// &lt;summary&gt;
      /// NavMenu control.
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      /// Auto-generated field.
      /// To modify move field declaration from designer file to code-behind file.
      /// &lt;/remarks&gt;
      protected global::System.Web.UI.WebControls.Menu NavMenu;
  
      /// &lt;summary&gt;
      /// smds1 control.
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      /// Auto-generated field.
      /// To modify move field declaration from designer file to code-behind file.
      /// &lt;/remarks&gt;
      protected global::System.Web.UI.WebControls.SiteMapDataSource smds1;
  
      /// &lt;summary&gt;
      /// MainContent control.
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      /// Auto-generated field.
      /// To modify move field declaration from designer file to code-behind file.
      /// &lt;/remarks&gt;
      protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
  
      /// &lt;summary&gt;
      /// lblfoot control.
      /// &lt;/summary&gt;
      /// &lt;remarks&gt;
      /// Auto-generated field.
      /// To modify move field declaration from designer file to code-behind file.
      /// &lt;/remarks&gt;
  </code></pre>
  
  <p>Here's the content of VDS.Master:</p>
  
  <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="True" CodeBehind="VDS.Master.cs" Inherits="MyApp.VDS.VDS" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head id="Head1" runat="server"&gt;
  &lt;title&gt;Dealer Services&lt;/title&gt;
  &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt;
  &lt;/asp:ContentPlaceHolder&gt;
  &lt;link href="Styles/master.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form id="form1" runat="server"&gt;
  
  
  &lt;div class="container"&gt; 
  &lt;div class="header"&gt;
  &lt;h1&gt;Welcome to Dealer Services &lt;/h1&gt;
  &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
  &lt;/asp:ScriptManager&gt;
  &lt;/div&gt;
  &lt;div class=" clear nav"&gt;
      &lt;asp:Menu runat="server" ID="NavMenu" BackColor="Silver" DataSourceID="smds1" 
          DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" 
          ForeColor="White" Orientation="Horizontal" StaticSubMenuIndent="10px"&gt;
          &lt;DynamicHoverStyle BackColor="#284E98" ForeColor="White" /&gt;
          &lt;DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /&gt;
          &lt;DynamicMenuStyle BackColor="#B5C7DE" /&gt;
          &lt;DynamicSelectedStyle BackColor="#507CD1" /&gt;
          &lt;StaticHoverStyle BackColor="#284E98" ForeColor="White" /&gt;
          &lt;StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /&gt;
          &lt;StaticSelectedStyle BackColor="#507CD1" /&gt;
      &lt;/asp:Menu&gt;
      &lt;asp:SiteMapDataSource ID="smds1" runat="server" ShowStartingNode="False" /&gt;
  &lt;/div&gt;
  &lt;div class="login"&gt;
  &lt;/div&gt;
  &lt;div class="content"&gt;
  &lt;asp:ContentPlaceHolder id="MainContent" runat="server"&gt;
  
  &lt;/asp:ContentPlaceHolder&gt;
  &lt;/div&gt;
  &lt;div class="footer"&gt;
  &lt;asp:Label runat="server" ID="lblfoot"&gt;&amp;trade; Veehco Inc. 2011&lt;/asp:Label&gt;
  &lt;/div&gt;
  
  
  &lt;/div&gt;  
  
  
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I've tried deleting the VDS.Master.designer.cs file, but the error is returned upon each build.  How do I rectify this issue?</p>
  
  <p>Thanks much!</p>