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

巧了我就是萌 提交于 2019-11-28 02:23:19

While I can't fully explain why this solves the issue, I was able to fix this by changing my projects to build to the regular bin/ folder.

I apologize for not mentioning this in my original question, because I didn't think it was relevant, but I had previously changed my ASP.NET project to build to bin\Debug and bin\Release depending on the configuration. This seemed to work just fine, but caused this issue once I changed the name of the projects.

bill

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!