无法在SignalR 2.0.0中注册路由 [英] Unable to register routes in SignalR 2.0.0
本文介绍了无法在SignalR 2.0.0中注册路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我决定使用Signalr的最新版本,但遇到了一些问题.首先,路由注册的方式已经完全改变;因此,我尝试使用此链接 http://www的方式进行操作. asp.net/vnext/overview/latest/release-notes#TOC13 建议.
I decided to move to the latest version of signalr but i facing a few issues. First of all the way to register routes has entirely changed; so i tried to do it the way that this link http://www.asp.net/vnext/overview/latest/release-notes#TOC13 suggests.
问题是,尽管我添加了
<appSettings>
<add key="owin:AppStartup" value="xxx.Startup, App_Code"/>
</appSettings>
到web.config根本不调用Configuration
.有人知道我在做什么错吗?
to the web.config the Configuration
is not invoked at all. Does anyone know what i'm doing wrong?
推荐答案
解决方案!
<appSettings>
<add key="owin:AppStartup" value="MyNameSpace.Startup, MyNameSpace" />
<add key="owin:AutomaticAppStartup" value="true" />
</appSettings>
<system.web>
<httpHandlers>
<add verb="*" path="*" type="Microsoft.Owin.Host.SystemWeb.OwinHttpHandler, Microsoft.Owin.Host.SystemWeb"/>
</httpHandlers>
</system.web>
<system.webServer>
<handlers>
<add name="Owin" verb="*" path="*" type="Microsoft.Owin.Host.SystemWeb.OwinHttpHandler, Microsoft.Owin.Host.SystemWeb"/>
</handlers>
</system.webServer>
这篇关于无法在SignalR 2.0.0中注册路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文