Signalr Can';获取自动生成的信号器/集线器js文件
我在IIS中设置了两个站点。结构如下:Signalr Can';获取自动生成的信号器/集线器js文件,signalr,windows-8.1,iis-8,virtual-directory,Signalr,Windows 8.1,Iis 8,Virtual Directory,我在IIS中设置了两个站点。结构如下: Application Pools Sites -> LogService.WebUI (port 80) -> assets -> bin -> Service References -> notifications (virtual app) -> LogService.Notifications (port 81) -> bin
Application Pools
Sites
-> LogService.WebUI (port 80)
-> assets
-> bin
-> Service References
-> notifications (virtual app)
-> LogService.Notifications (port 81)
-> bin
-> Scripts
WebUI站点中的通知虚拟应用程序和LogService.notifications站点都指向相同的物理位置。当我看到
http://localhost:80/notifications/signalr/hubs
我得到一个404未找到错误。当我看到
http://localhost:81/signalr/hubs
我看到了自动生成的signarjs脚本
我还尝试将其添加到配置文件中
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
</modules>
</system.webServer>
部署此项目时,它将是一个虚拟目录。我怎样才能让它指向正确的位置?我已经看过很多例子,但迄今为止没有一个是有效的 LogService.Notifications与LogService.WebUI在同一应用程序池中运行?@halter73-是的,它们在同一应用程序池中。