我无法使用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.发布于 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
发布于 2014-03-12 10:28:17
你的项目中有Startup.cs吗?请多加些代码。
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}此外,您是否设置了任何集线器?
public class ChatBoxHub : Hub
{
public ChatBoxHub()
{
}
}https://stackoverflow.com/questions/22347784
复制相似问题