Error renaming ASP.NET MVC project

前端 未结 7 901
慢半拍i
慢半拍i 2021-01-30 09:54

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

7条回答
  •  心在旅途
    2021-01-30 10:34

    This problem will occur if you have two assemblies in the same bin folder which contain an OwinStartup class. Normally you should not have two OwinStartup classes for the same web application.

    You can solve this by inspecting your bin folder. If after the rename an assembly with the old name has remained in the bin folder you will get this error. To solve it delete everything from the bin folder.

提交回复
热议问题