19

I'd like to clean up the project I'm working on. We are using Simple Membership and have no intention of supporting authentication using Twitter, Google, etc. I don't know that much about OWIN but I see quite a few NuGet packages installed by default.

Is it safe to uninstall all of the OWIN packages?

rwkiii
  • 5,368
  • 17
  • 60
  • 102

2 Answers2

24

You can safely delete all Owin packages and you don't have add owin:AutomaticAppStartup key with false value.

Just make sure you delete all owin dlls from your bin folders after removing owin packages. They are not cleaned from your bin folder by Visual Studio and somehow they get executed automatically. See my answer in this question:

c# - OWIN Startup Class Missing - Stack Overflow

Community
  • 1
  • 1
Hüseyin Yağlı
  • 8,508
  • 4
  • 38
  • 47
18

I also just had to do this. One of our team had created the MVC 5 website, which included all the OWIN stuff. We're using Membership and so after doing a little digging into the differences (and honestly looking like it would NOT be easy), I just decided to dive head first. Here's what I did:

  1. Deleted Startup.cs (this will give an error that's fixed by the next step)
  2. Add the following key & value to appSettings in your config: <add key="owin:AutomaticAppStartup" value="false"/>
Pat Hermens
  • 894
  • 6
  • 18
DenverDev
  • 195
  • 1
  • 6
  • @DenverDev, I will refer to your answer at some point. For now I just left things as they were. I commented out relevant code in AuthConfig.cs (I believe) and that got me to where I wanted to be for the time being. Thank you for your answer. – rwkiii Jul 29 '14 at 16:18
  • 3
    I also had to remove from my web config. – Chris Dec 05 '14 at 20:48
  • This became a problem for me once I published my project to production. I didn't have any trouble during development. Once I published to production I got this error: http://stackoverflow.com/questions/20068075/owin-startup-class-missing – puddinman13 Jun 24 '15 at 21:21