您当前位置: 首页 » asp.net » asp.net » mvc » ASP.NET MVC The following errors occurred while attempting to load the app的问题

ASP.NET MVC The following errors occurred while attempting to load the app的问题

2015年8月18日 | 蒙奇·D·撸码客 发表评论(0) 查看评论

今天在搭配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内容推荐

分类:

jquery, web前端

| 标签:

发表评论?

0 条评论。

发表评论