Я скопировал предыдущий проект и переименовал его. Как только я успешно переименовал все пространства имен и правильно построил. Я получил следующее сообщение об ошибке, когда я запустил приложение:Ошибка при переименовании проекта ASP.NET MVC
The following errors occurred while attempting to load the app.
- The OwinStartup attribute discovered in assembly 'User Manager Interface' referencing startup type 'User_Manager_Interface.Startup' conflicts with the attribute in assembly 'Service Monitor Web Interface' referencing startup type 'Service_Monitor_Web_Interface.Startup' because they have the same FriendlyName ''. Remove or rename one of the attributes, or reference the desired type directly.
To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config.
To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.
Я понял, что если я закомментировать первую строку ниже, то ошибка уходит.
//[assembly: OwinStartupAttribute(typeof(Service_Monitor_Web_Interface.Startup))]
namespace Service_Monitor_Web_Interface
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
}
}
}
Я переименовал свое решение с User_Manager_Interface в Service_Monitor_Web_Interface.
Я не могу найти какие-либо места со старым именем, в котором он упоминает об ошибке.
У меня такая же проблема. Какие-либо ответы или удача выясняют решение? –
Я просто удалил проект и снова начал работу. Только переименование классов и пространства имен. – Zapnologica