升级后,托管 Windows 10 1903 不提供 JS 和 CSS 内容

升级后,托管 Windows 10 1903 不提供 JS 和 CSS 内容

升级到 Windows 1903 后,一些之前运行的本地托管服务器应用程序停止了这种情况。

  1. Swagger - 我正在本地部署支持 Swagger 的网站。以下是我在加载 Swagger 主页时收到的 Http 504 错误:

Swagger 加载错误

  1. PGAdmin 4 - Postgre SQL 管理 ide - 浏览器应用程序,本地托管

PGAdmin 4 错误

换句话说,对于 Windows 10 1903 OS 托管的任何 css 或 js 文件,我都会收到 Http 504 错误。

操作系统升级可能会破坏哪些设置?

以下是 swagger 的一些日志摘录:

2019-08-30T11:02:35.3194425+03:00  [DBG] Connection id ""0HLPD414DKGML"" started. (1426b994)
2019-08-30T11:02:35.3196313+03:00 0HLPD414DKGML:00000001 [INF] Request starting HTTP/1.1 GET http://localhost:6003/swagger/swagger-ui-standalone-preset.js   (ca22a1cb)
2019-08-30T11:02:54.2232434+03:00  [DBG] Connection id ""0HLPD414DKGML"" reset. (3d6df208)
2019-08-30T11:02:54.2232772+03:00  [DBG] Connection id ""0HLPD414DKGML"" sending FIN because: ""An existing connection was forcibly closed by the remote host"" (59510695)
2019-08-30T11:02:54.2233949+03:00  [DBG] Connection id ""0HLPD414DKGML"" disconnecting. (b29b9868)
2019-08-30T11:02:54.2235592+03:00 0HLPD414DKGML:00000001 [DBG] The file transmission was cancelled (b927d910)
System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Microsoft.AspNetCore.Http.Extensions.StreamCopyOperation.CopyToAsync(Stream source, Stream destination, Nullable`1 count, Int32 bufferSize, CancellationToken cancel)
   at Microsoft.AspNetCore.StaticFiles.StaticFileContext.SendAsync()
2019-08-30T11:02:54.2236271+03:00 0HLPD414DKGML:00000001 [INF] Connection id ""0HLPD414DKGML"", Request id ""0HLPD414DKGML:00000001"": the application aborted the connection. (9f49aef1)
2019-08-30T11:02:54.2236533+03:00 0HLPD414DKGML:00000001 [INF] Sending file. Request path: '"/swagger-ui-standalone-preset.js"'. Physical path: '"N/A"' (27b0a520)
2019-08-30T11:02:54.2237020+03:00 0HLPD414DKGML:00000001 [INF] Request finished in 18904.0857ms 200 application/javascript (791a596a)
2019-08-30T11:02:54.2238709+03:00  [DBG] Connection id ""0HLPD414DKGML"" stopped. (056149f8)

相关内容