title: OwinStartup not firing
body: <p>I had the OwinStartup configuration code working perfectly and then it stopped working.  Unfortunately I'm not sure exactly what I did to get it to stop working and am having a really hard time figuring it out.  </p>
  
  <p>To make sure I have the basics covered, I doubled checked to make sure the I have the </p>
  
  <pre><code>[assembly:OwinStartup(typeof(WebApplication.Startup))] 
  </code></pre>
  
  <p>attribute assigned properly and made sure that I don't have an appSetting for owin:AutomaticAppStartup that is set to false so I made one set to true to be safe as there was nothing there before.</p>
  
  <pre><code>&lt;add key="owin:AutomaticAppStartup" value="true" /&gt;
  </code></pre>
  
  <p>I also tried specifically calling out the appSetting:</p>
  
  <pre><code>&lt;add key="owin:appStartup" value="WebApplication.Startup" /&gt;
  </code></pre>
  
  <p>Before it stopped working I upgraded the Microsoft.Owin.Security NuGet packages to 2.0.2, so I tried reverting them to 2.0.1 (that was a pain) but it didn't change anything.  I have WebActivator installed on the project and am using that to bootstrap other things but I've tested that on a fresh WebApplication template and it works there so I don't think that is the culprit.</p>
  
  <p>I also tried removing my Startup class and using Visual Studio to add a new one using the OWIN Startup Class type in Add New Item and that isn't getting called either.  Next I tried adding a second Startup class since I know it will throw an exception if there is more than one OwinStartup attributes defined, but it isn't throwing any exception there.</p>
  
  <p>Not sure what else to try.  Any thoughts?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Turns out that Resharper removed the reference to Microsoft.Owin.Host.SystemWeb when I used it to remove unused references.</p>