OWIN启动类失踪 [英] OWIN Startup Class Missing

查看:1045
本文介绍了OWIN启动类失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为我的项目是不是能够找到 OWIN 启动类参考我得到这个错误。我甚至通过的NuGet仍然得到同样的问题,安装的所有OWIN参考软件包。我使用的Visual Studio 2012 MVC4

尝试加载应用程序时出现以下错误。


  

      
  • 不包含OwinStartupAttribute装配找到。

  •   
  • 没有找到组装包含启动或[的AssemblyName] .STARTUP类。要禁用OWIN启动发现,添加appSetting
      owin:AutomaticAppStartup在你的web.config一的假的价值。
      要指定OWIN启动大会,类或方法,添加
      appSetting owin:AppStartup具有完全限定启动类或
      在你的web.config配置方法的名称。

  •   


解决方案

创建一个类具有名称启动,这将帮助你。

 公共类启动
{
   公共无效配置(IAppBuilder应用程序)
   {
      app.MapSignalR();
   }
}

I'm getting this error as my project is not able to find the reference for OWIN startup class. I've even installed all the OWIN reference packages through Nuget still getting the same issue. I'm using Visual Studio 2012 and MVC4.

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.

解决方案

Create One Class With Name Startup this will help you..

public class Startup
{
   public void Configuration(IAppBuilder app)
   {
      app.MapSignalR();
   }
}

这篇关于OWIN启动类失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆