/signalr/hubs 404 not found after update to MVC5

后端 未结 3 1798
心在旅途
心在旅途 2021-01-12 15:57

SignalR was working while project was ASP.NET MVC3. Now i upgraded it to MVC5 (not so easy to do, I must tell you).

Then I noticed that signalR was not working. I we

3条回答
  •  暖寄归人
    2021-01-12 16:21

    Like Milos said, clearing temp folder will probably fix the problem. I have created a script for doing this which I call powerreset.cmd which should be run As Administrator:

    @echo off
    @iisreset /stop
    @robocopy e:\empty "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files" /PURGE
    @robocopy e:\empty "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files" /PURGE
    @iisreset /start
    

    The e:\empty folder, which will be the source, and using purge with robocopy should then clear the temp files.

提交回复
热议问题