缺少 OWIN 启动类 [英] OWIN Startup Class Missing

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

问题描述

我收到此错误,因为我的项目无法找到 OWIN 启动类的参考.我什至通过 Nuget 安装了所有 OWIN 参考包,但仍然遇到同样的问题.我正在使用 Visual Studio 2012MVC4.

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.

  • 未找到包含 OwinStartupAttribute 的程序集.
  • 未找到包含 Startup 或 [AssemblyName].Startup 类的程序集.要禁用 OWIN 启动发现,请添加 appSettingowin:AutomaticAppStartup 在您的 web.config 中的值为false".要指定 OWIN 启动程序集、类或方法,请添加appSetting owin:AppStartup 与完全限定的启动类或web.config 中的配置方法名称.

推荐答案

创建一个名为 Startup 的类这将帮助您..

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

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

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

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