I have built Restful web app with asp.net core. I deployed it as a Self Contained application.
So the application currently works on a LAN. it works very well. but there is a strange problem which seems to be some network issues. There are some occassions when I notice that the web app is not browsable on other systems which are connecting to the
server computer that host the app.
This happens once in a while. So I use the Computer name to access the application yet I still face this problem.
I have enabled port on the firewall. I disabled antivirus on the server.
There are some occassions when I notice that the web app is not browsable on other systems which are connecting to the server computer that host the app.
Please check the status of the request, does it return 404, 503 or others? If you got any error messages, please include that in your post, which would help troubleshoot the issue.
With Regards,
Fei Han
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
To fix the issue you need to trace it, when you found the exact issue, its easy to solve it.
Trac:
In the web.config of your dot net core application., set the value of stdoutLogEnabled="false" to
stdoutLogEnabled="true" , Ceate a folder name "logs" in your application root and now all set for logging, you can check the log later and that will give you exact idea about the isssue.
Thanks the problem does not seem to be from the web application. becuase I notice that anytime there is no connection. I try to browse the web app or other demo apps or default app on the client system. There would be no connection.
Take for example. I try to browse port 80 to see If I would seee the default iis page from the client system. I dont get to see it.
Been knocking my head arround the antivirus. dont know. given firewall permission.
According to your description and test, the problem now seems IIS setup and hosting environment related, not web application issue. If you have further question about IIS server setup, please post on this forum.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
When you tell "sometimes" do you mean it later works later on the same machine and then not again? Or that it never works on some machine and always on other machines ? As suggested already uou could use F12 Network to see what happens for the http request.
You could check also check the web server log to see if the request reaches the server.
Do you have someone on charge of that where you work (could it be the server is rebooted or whatever ???)
Member
98 Points
326 Posts
My Restful App some times is not available on the network
Dec 22, 2019 06:50 PM|InspiredJide|LINK
Dear All,
I have built Restful web app with asp.net core. I deployed it as a Self Contained application.
So the application currently works on a LAN. it works very well. but there is a strange problem which seems to be some network issues. There are some occassions when I notice that the web app is not browsable on other systems which are connecting to the server computer that host the app.
This happens once in a while. So I use the Computer name to access the application yet I still face this problem.
I have enabled port on the firewall. I disabled antivirus on the server.
Please anyone with ideas on what the problem is .
Thanks alot.
All-Star
40565 Points
6233 Posts
Microsoft
Re: My Restful App some times is not available on the network
Dec 23, 2019 03:12 AM|Fei Han - MSFT|LINK
Hi InspiredJide,
Please check the status of the request, does it return 404, 503 or others? If you got any error messages, please include that in your post, which would help troubleshoot the issue.
With Regards,
Fei Han
Contributor
2096 Points
1040 Posts
Re: My Restful App some times is not available on the network
Dec 23, 2019 04:44 AM|Khuram.Shahzad|LINK
To fix the issue you need to trace it, when you found the exact issue, its easy to solve it.
Trac:
In the web.config of your dot net core application., set the value of stdoutLogEnabled="false" to
stdoutLogEnabled="true" , Ceate a folder name "logs" in your application root and now all set for logging, you can check the log later and that will give you exact idea about the isssue.
Another solution is : Enable health check in your application detail is : https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-3.1
Member
98 Points
326 Posts
Re: My Restful App some times is not available on the network
Dec 23, 2019 05:28 AM|InspiredJide|LINK
Thanks the problem does not seem to be from the web application. becuase I notice that anytime there is no connection. I try to browse the web app or other demo apps or default app on the client system. There would be no connection.
Take for example. I try to browse port 80 to see If I would seee the default iis page from the client system. I dont get to see it.
Been knocking my head arround the antivirus. dont know. given firewall permission.
All-Star
40565 Points
6233 Posts
Microsoft
Re: My Restful App some times is not available on the network
Dec 31, 2019 05:43 AM|Fei Han - MSFT|LINK
Hi InspiredJide,
According to your description and test, the problem now seems IIS setup and hosting environment related, not web application issue. If you have further question about IIS server setup, please post on this forum.
https://forums.iis.net/
With Regards,
Fei Han
Member
98 Points
326 Posts
Re: My Restful App some times is not available on the network
Jan 01, 2020 11:18 PM|InspiredJide|LINK
When this issue happens. Even other website on the server computer are not browsable. So it not about my application. It more of a networking issue.
All-Star
48520 Points
18073 Posts
Re: My Restful App some times is not available on the network
Jan 02, 2020 07:24 PM|PatriceSc|LINK
Hi,
When you tell "sometimes" do you mean it later works later on the same machine and then not again? Or that it never works on some machine and always on other machines ? As suggested already uou could use F12 Network to see what happens for the http request. You could check also check the web server log to see if the request reaches the server.
Do you have someone on charge of that where you work (could it be the server is rebooted or whatever ???)
Member
98 Points
326 Posts
Re: My Restful App some times is not available on the network
Jan 10, 2020 04:20 PM|InspiredJide|LINK
The machine that hosts the server always works. It is the connect from the client computers that failes on a few occassions.
more like when you are trying to browse yahoo.com from your web browser. A scenario were it most times works but on a few occasion connection is lost.
Best Regards,