Can't get the OWIN Startup class to run in IIS Express after renaming ASP.NET project file

后端 未结 2 927
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 04:49

I\'ve got a situation where I needed to change the solution and project names within a OWIN-based WebAPI website. Everything worked great before this change, and to my knowl

2条回答
  •  旧巷少年郎
    2020-12-07 05:49

    I know this is old, but just wanted to add that I ran across this using a custom template. In my case I had a working solution with a startup, made it a template but the template didn't work.

    Come to find out, it was because the new project had a space in its name. So adding

    [assembly: OwinStartup(typeof(myProjectName.Startup))]
    

    to my existing startup file fixed it.

提交回复
热议问题