I have copied a previous project and renamed it. Once I had successfully renamed all the name spaces and it build correctly. I got the following error when I ran the application
I was having the same problem after renaming the assembly of the solution.
I solved by making sure the OwinStartupAttritbute is refering to my new assembly name.
Next is to delete the old assembly found in bin folder.