I copied the previous project and renamed it. Once I have successfully renamed all namespaces and built it correctly. When I started the application, I received the following error:
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.
I found out that if I comment on the first line below, the error will disappear.
//[assembly: OwinStartupAttribute(typeof(Service_Monitor_Web_Interface.Startup))] namespace Service_Monitor_Web_Interface { public partial class Startup { public void Configuration(IAppBuilder app) { ConfigureAuth(app); } } }
I renamed my solution from User_Manager_Interface to Service_Monitor_Web_Interface.
It seems that I can not find places with the old name, howwvel in the error that he mentions.
asp.net-mvc asp.net-mvc-5 owin asp.net-authentication
Zapnologica Feb 11 '14 at 12:02 2014-02-11 12:02
source share