Kestrel on Windows no response
I have an self hosted mvc project using Kestrel as http server.
On some machines ranging from Windows Server 2016 to Windows 10 for some reason there is no response received when trying to access application over the http.
The browser just hangs in waiting for server address.
As i said this have occurred just on 1% of installations but i need to figure it out.
I have tried to stripping my configuration to minimal as possible and still no response from server, console logger also shows no records as if nothing happens so there is no errors or indication of anything going wrong on startup or when requests are made.
Here is my WebHostBuilder code
var hostBuilder = new WebHostBuilder()
.UseStartup<WebStartup>()
.UseKestrel(kestrelOptions =>
//listen on configured web port
kestrelOptions.ListenAnyIP(WEB_PORT, options=>
);
if (HTTPS_ENABLE)
kestrelOptions.Listen(IPAddress.Any, HTTPS_PORT, listenOpt =>
);
);
If i check the process i can see that there is a listening connection and once browser connects there is an established connection, if browser window closed connection goes to close wait state.
So is there any way i can figure at which place in the where the problem starts in the whole pipeline ?
c# asp.net-core-mvc kestrel-http-server
add a comment |
I have an self hosted mvc project using Kestrel as http server.
On some machines ranging from Windows Server 2016 to Windows 10 for some reason there is no response received when trying to access application over the http.
The browser just hangs in waiting for server address.
As i said this have occurred just on 1% of installations but i need to figure it out.
I have tried to stripping my configuration to minimal as possible and still no response from server, console logger also shows no records as if nothing happens so there is no errors or indication of anything going wrong on startup or when requests are made.
Here is my WebHostBuilder code
var hostBuilder = new WebHostBuilder()
.UseStartup<WebStartup>()
.UseKestrel(kestrelOptions =>
//listen on configured web port
kestrelOptions.ListenAnyIP(WEB_PORT, options=>
);
if (HTTPS_ENABLE)
kestrelOptions.Listen(IPAddress.Any, HTTPS_PORT, listenOpt =>
);
);
If i check the process i can see that there is a listening connection and once browser connects there is an established connection, if browser window closed connection goes to close wait state.
So is there any way i can figure at which place in the where the problem starts in the whole pipeline ?
c# asp.net-core-mvc kestrel-http-server
Which browser are you using? Looking for the error message you provided brings up this SO thread and a bunch of SNTP links.
– Jim Yarbro
Nov 15 '18 at 8:06
The behavior is same in all browsers. Calling a WEB Api endpoint with Postman behaves exactly the same. I am not an expert but it seem on browser side the request never times out, hope that info is also useful.
– NullReference
Nov 15 '18 at 8:30
All browsers return the exact same error message? That seems doubtful. Are you seeing that error message from kestrel or IIS console or logs?
– Jim Yarbro
Nov 15 '18 at 8:32
There is no error message just "waiting for host" i can clearly see that connection is accepted on server BUT nothing happens , console logging also display zero info as nothing happens.
– NullReference
Nov 15 '18 at 8:34
Yes, it's just the exact phrasing of an error message is critical to receiving relevant responses on SO.
– Jim Yarbro
Nov 15 '18 at 9:09
add a comment |
I have an self hosted mvc project using Kestrel as http server.
On some machines ranging from Windows Server 2016 to Windows 10 for some reason there is no response received when trying to access application over the http.
The browser just hangs in waiting for server address.
As i said this have occurred just on 1% of installations but i need to figure it out.
I have tried to stripping my configuration to minimal as possible and still no response from server, console logger also shows no records as if nothing happens so there is no errors or indication of anything going wrong on startup or when requests are made.
Here is my WebHostBuilder code
var hostBuilder = new WebHostBuilder()
.UseStartup<WebStartup>()
.UseKestrel(kestrelOptions =>
//listen on configured web port
kestrelOptions.ListenAnyIP(WEB_PORT, options=>
);
if (HTTPS_ENABLE)
kestrelOptions.Listen(IPAddress.Any, HTTPS_PORT, listenOpt =>
);
);
If i check the process i can see that there is a listening connection and once browser connects there is an established connection, if browser window closed connection goes to close wait state.
So is there any way i can figure at which place in the where the problem starts in the whole pipeline ?
c# asp.net-core-mvc kestrel-http-server
I have an self hosted mvc project using Kestrel as http server.
On some machines ranging from Windows Server 2016 to Windows 10 for some reason there is no response received when trying to access application over the http.
The browser just hangs in waiting for server address.
As i said this have occurred just on 1% of installations but i need to figure it out.
I have tried to stripping my configuration to minimal as possible and still no response from server, console logger also shows no records as if nothing happens so there is no errors or indication of anything going wrong on startup or when requests are made.
Here is my WebHostBuilder code
var hostBuilder = new WebHostBuilder()
.UseStartup<WebStartup>()
.UseKestrel(kestrelOptions =>
//listen on configured web port
kestrelOptions.ListenAnyIP(WEB_PORT, options=>
);
if (HTTPS_ENABLE)
kestrelOptions.Listen(IPAddress.Any, HTTPS_PORT, listenOpt =>
);
);
If i check the process i can see that there is a listening connection and once browser connects there is an established connection, if browser window closed connection goes to close wait state.
So is there any way i can figure at which place in the where the problem starts in the whole pipeline ?
c# asp.net-core-mvc kestrel-http-server
c# asp.net-core-mvc kestrel-http-server
asked Nov 14 '18 at 17:48
NullReferenceNullReference
94110
94110
Which browser are you using? Looking for the error message you provided brings up this SO thread and a bunch of SNTP links.
– Jim Yarbro
Nov 15 '18 at 8:06
The behavior is same in all browsers. Calling a WEB Api endpoint with Postman behaves exactly the same. I am not an expert but it seem on browser side the request never times out, hope that info is also useful.
– NullReference
Nov 15 '18 at 8:30
All browsers return the exact same error message? That seems doubtful. Are you seeing that error message from kestrel or IIS console or logs?
– Jim Yarbro
Nov 15 '18 at 8:32
There is no error message just "waiting for host" i can clearly see that connection is accepted on server BUT nothing happens , console logging also display zero info as nothing happens.
– NullReference
Nov 15 '18 at 8:34
Yes, it's just the exact phrasing of an error message is critical to receiving relevant responses on SO.
– Jim Yarbro
Nov 15 '18 at 9:09
add a comment |
Which browser are you using? Looking for the error message you provided brings up this SO thread and a bunch of SNTP links.
– Jim Yarbro
Nov 15 '18 at 8:06
The behavior is same in all browsers. Calling a WEB Api endpoint with Postman behaves exactly the same. I am not an expert but it seem on browser side the request never times out, hope that info is also useful.
– NullReference
Nov 15 '18 at 8:30
All browsers return the exact same error message? That seems doubtful. Are you seeing that error message from kestrel or IIS console or logs?
– Jim Yarbro
Nov 15 '18 at 8:32
There is no error message just "waiting for host" i can clearly see that connection is accepted on server BUT nothing happens , console logging also display zero info as nothing happens.
– NullReference
Nov 15 '18 at 8:34
Yes, it's just the exact phrasing of an error message is critical to receiving relevant responses on SO.
– Jim Yarbro
Nov 15 '18 at 9:09
Which browser are you using? Looking for the error message you provided brings up this SO thread and a bunch of SNTP links.
– Jim Yarbro
Nov 15 '18 at 8:06
Which browser are you using? Looking for the error message you provided brings up this SO thread and a bunch of SNTP links.
– Jim Yarbro
Nov 15 '18 at 8:06
The behavior is same in all browsers. Calling a WEB Api endpoint with Postman behaves exactly the same. I am not an expert but it seem on browser side the request never times out, hope that info is also useful.
– NullReference
Nov 15 '18 at 8:30
The behavior is same in all browsers. Calling a WEB Api endpoint with Postman behaves exactly the same. I am not an expert but it seem on browser side the request never times out, hope that info is also useful.
– NullReference
Nov 15 '18 at 8:30
All browsers return the exact same error message? That seems doubtful. Are you seeing that error message from kestrel or IIS console or logs?
– Jim Yarbro
Nov 15 '18 at 8:32
All browsers return the exact same error message? That seems doubtful. Are you seeing that error message from kestrel or IIS console or logs?
– Jim Yarbro
Nov 15 '18 at 8:32
There is no error message just "waiting for host" i can clearly see that connection is accepted on server BUT nothing happens , console logging also display zero info as nothing happens.
– NullReference
Nov 15 '18 at 8:34
There is no error message just "waiting for host" i can clearly see that connection is accepted on server BUT nothing happens , console logging also display zero info as nothing happens.
– NullReference
Nov 15 '18 at 8:34
Yes, it's just the exact phrasing of an error message is critical to receiving relevant responses on SO.
– Jim Yarbro
Nov 15 '18 at 9:09
Yes, it's just the exact phrasing of an error message is critical to receiving relevant responses on SO.
– Jim Yarbro
Nov 15 '18 at 9:09
add a comment |
1 Answer
1
active
oldest
votes
So the problem it seems that some of the dependent dlls did not have a assembly binding redirects.
Adding following configuration resolved the problem
<dependentAssembly>
<assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53306057%2fkestrel-on-windows-no-response%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
So the problem it seems that some of the dependent dlls did not have a assembly binding redirects.
Adding following configuration resolved the problem
<dependentAssembly>
<assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
add a comment |
So the problem it seems that some of the dependent dlls did not have a assembly binding redirects.
Adding following configuration resolved the problem
<dependentAssembly>
<assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
add a comment |
So the problem it seems that some of the dependent dlls did not have a assembly binding redirects.
Adding following configuration resolved the problem
<dependentAssembly>
<assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
So the problem it seems that some of the dependent dlls did not have a assembly binding redirects.
Adding following configuration resolved the problem
<dependentAssembly>
<assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="4.2.0.0" />
</dependentAssembly>
answered Nov 15 '18 at 12:19
NullReferenceNullReference
94110
94110
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53306057%2fkestrel-on-windows-no-response%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Which browser are you using? Looking for the error message you provided brings up this SO thread and a bunch of SNTP links.
– Jim Yarbro
Nov 15 '18 at 8:06
The behavior is same in all browsers. Calling a WEB Api endpoint with Postman behaves exactly the same. I am not an expert but it seem on browser side the request never times out, hope that info is also useful.
– NullReference
Nov 15 '18 at 8:30
All browsers return the exact same error message? That seems doubtful. Are you seeing that error message from kestrel or IIS console or logs?
– Jim Yarbro
Nov 15 '18 at 8:32
There is no error message just "waiting for host" i can clearly see that connection is accepted on server BUT nothing happens , console logging also display zero info as nothing happens.
– NullReference
Nov 15 '18 at 8:34
Yes, it's just the exact phrasing of an error message is critical to receiving relevant responses on SO.
– Jim Yarbro
Nov 15 '18 at 9:09