My Blazor server app behaves different on two windows Server 2019

Viewed 14

I have a blazor server application developed and published with .Net 6 that runs on a windows server 2019 and uses a ASP.Net 4.8 web service. One of mothods of web service takes approximatly 45 seconds to be executed. During calling this web method I encounter with an exception as follows:

---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.IO.IOException: Unable to read data from the transport connection: Eine vorhandene Verbindung wurde vom Remotehost geschlossen..

In this case there isn't any error in web service and the exception occures because of long response time of web method.

On the other hand I Have a test server that have exactly the same hardware characteristics as the last one. It's OS is also windows server 2019, and the only difference between two servers is that on test server, I have installed Visual Studio 2019 because of testing purposes. On this server, the blazor app calls the web method without any problem, although it take also a long time to return.

I don't know why this error occurs in the first case. Are there any dependencies I need to provid? I suspect it is due to installed VS2019 that there is no error on the test server.

How can I check, what dependencies I need to install on product server to avoid this exception?

0 Answers
Related