【发布时间】:2014-11-18 12:11:16
【问题描述】:
最近我升级到了 64 位 Windows 2012 标准服务器,所以我可以使用 Web 套接字。
我已经通过服务器管理器添加了角色/功能。
我注意到在我的 Windows 日志中我收到了这条消息:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 18/11/2014 11:51:12
Event time (UTC): 18/11/2014 11:51:12
Event ID: 5261ba8b0e5343289d5fc8618adb8117
Event sequence: 113
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-130607850516111864
Trust level: Full
Application Virtual Path: /
Application Path: D:\Release\WebRoot\
Machine name: DSVR019492
Process information:
Process ID: 660
Process name: w3wp.exe
Account name: IIS APPPOOL\.NET v4.5
Exception information:
Exception type: InvalidOperationException
Exception message: WebSockets is unsupported in the current application configuration. To enable this, set the following configuration switch in Web.config:
<system.web>
<httpRuntime targetFramework="4.5" />
</system.web>
所以,我尝试在消息告诉我的地方添加 。 但我收到了这个警告:
The 'targetFramework' attribute is not allowed.
<system.web>
<httpRuntime targetFramework="4.5.1" />
但在我添加这个之前,我注意到我有这个:
<system.web>
<compilation debug="true" targetFramework="4.5.1">
这不是一回事吗?如果这就是为什么我会收到该警告。
我等待接受教育...
【问题讨论】:
标签: iis websocket web-config