SignalR configuration on IIS 6 / windows server 20

2019-02-27 09:17发布

I'm getting error 404 when I access signalr/hubs url on a web app deployed on IIS 6 / winSrv 2003 r2.

I've tried runAllManagedModulesForAllRequests = true and false. However I found in one of the #issues a comment that says that this is for II7 and >.

Also I've set the wildcard mapping to v4.0.30319\aspnet_isapi.dll and still getting the same error 404.

IIS 6 Log error:

W3SVC1 127.0.0.1 GET /devweb/signalr/hubs - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+Trident/4.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 404 0 3

When I deployed to IIS 7 on Win7 works fine. I need to make it work on IIS 6 as well so it can be deployed to some customers.

2条回答
SAY GOODBYE
2楼-- · 2019-02-27 09:49

This solution worked for me.

  1. Go to Properties of the Asp.Net application in IIS manager
  2. Click on Configuration
  3. Click on Insert (to insert a wildcard application map)
  4. Paste the pathaspnet_isapi.dll: c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll
  5. Uncheck: verify that file exists
  6. press ok and close all dialogs.
查看更多
爷的心禁止访问
3楼-- · 2019-02-27 10:05

Did you set the mapping as "All Verbs" ?

查看更多
登录 后发表回答