首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用MVC 4的Signalr

使用MVC 4的Signalr
EN

Stack Overflow用户
提问于 2014-03-12 09:57:31
回答 2查看 594关注 0票数 0

我无法使用singalr运行聊天应用程序,而且我面临着owin的问题。

在试图加载应用程序时发生了以下错误:

  • No assembly found containing an OwinStartupAttribute.
  • No 'Configuration' method was found in class 'Microsoft.VisualStudio.Web.PageInspector.Runtime.Startup, Microsoft.VisualStudio.Web.PageInspector.Runtime, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
  • 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.
EN

回答 2

Stack Overflow用户

发布于 2014-03-13 16:28:17

听起来您在项目中混合了1.0和2.0组件。有关如何将1.0项目升级到2.0,请参见以下教程:

http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/upgrading-signalr-1x-projects-to-20

票数 1
EN

Stack Overflow用户

发布于 2014-03-12 10:28:17

你的项目中有Startup.cs吗?请多加些代码。

代码语言:javascript
复制
public class Startup
{
    public void Configuration(IAppBuilder app)
    {
        app.MapSignalR();
    }
}

此外,您是否设置了任何集线器?

代码语言:javascript
复制
public class ChatBoxHub : Hub
{
    public ChatBoxHub()
    {
    }
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22347784

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档