今天在搭配asp.net mvc的时候爆出以下错误:
The following errors occurred while attempting to load the app.
– No assembly found containing an OwinStartupAttribute.
– No assembly found containing a Startup or [AssemblyName].Startup class.
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.
大概的意思是说webconfig里缺少配置节,主要原因是因为我添加程序包 Owin 引起的。解决方法就是在 web.config的<appSettings>节点里添加:<add key=”owin:AutomaticAppStartup” value=”false” /> 就可以解决
未经允许不得转载:前端撸码笔记 » ASP.NET MVC The following errors occurred while attempting to load the app的问题