The name 'ConfigureAuth' does not exist
<p>VS 2015 + all updates.
Added an ASP .Net project with authetication (Identity)
Aim - to separate the project into layers.</p>

<p><strong>Layers:</strong></p>

<p><em>DataAccess</em> (All database tables, models etc)</p>

<p><em>BusinessLogic</em> (CRUD operations)</p>

<p><em>Web Class Library</em> (So i dont need to tie the DA and BL i added an extra layer to do this)</p>

<p><em>ASP .Net Web Application</em></p>

<ol>
<li>Move Models Folder into DA.</li>
<li>Move IdentityConfig.cs into root of DA.</li>
<li>Add all references required to DA, change namespaces accordingly. Project builds succesfully.</li>
<li>Move Controller folder into BL.</li>
<li>Add all references required to BL, change namespaces accordingly. Project builds succesfully.</li>
<li>Move BundleConfig, FilterConfig, RouteConfig and Startup.Auth to the root of the Web Class library.</li>
<li>Add all references required to the web library. Project builds succesfully.</li>
<li>In the Web application i change the Startup and </li>
</ol>

<p>Code in class and project:</p>

<pre><code>using Microsoft.Owin;
using Owin;
using Company.Web;

[assembly: OwinStartupAttribute(typeof(Startup))]
namespace Company.Web
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
             ConfigureAuth(app);
        }
    }
}
</code></pre>

<p>Code in <strong>Startup.Auth</strong></p>

<pre><code>namespace Company.Web
{
    public partial class Startup
    {
        // For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864
        public void ConfigureAuth(IAppBuilder app)
        {
            // Configure the db context, user manager and signin manager to use a single instance per request
</code></pre>

<p>I get the error </p>

<p><strong><em>Suppression State Error  CS0103  The name 'ConfigureAuth' does not exist in the current context  WebApplication1</em></strong></p>

<p>I have a squiggle on 'Startup' with a friendly message:</p>

<p>[assembly: OwinStartupAttribute(typeof(Startup))]</p>

<p><em>The type 'Startup' in '....WebApplication1\Startup.cs' conflicts with the imported type 'Startup' in 'Company.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in '....WebApplication1\Startup.cs'.</em></p>

<p><strong>The error</strong> </p>

<p><em>CS0103 The name 'ConfigureAuth' does not exist in the current context  WebApplication1 ....WebApplication1\Startup.cs</em></p>

<p>So i researched around and seen a few links e.g</p>

<p><em><a href="https://stackoverflow.com/questions/30074179/the-name-configureauth-does-not-exist">the name configureauth does not exist</a>
<a href="https://stackoverflow.com/questions/28271265/the-name-configureauth-does-not-exist-in-the-current-contex">The name &#39;ConfigureAuth&#39; does not exist in the current contex</a>
<a href="https://stackoverflow.com/questions/31479778/asp-net-mvc-owin-and-signalr-two-startup-cs-files">ASP.NET MVC OWIN and SignalR - two Startup.cs files</a></em></p>

<p>But cant work out if the way i have structered this project is incorrect or if im missing something obvious?</p>