Website aren't availableRSS

10 replies

Last post Apr 01, 2019 09:20 AM by Jalpa Panchal

  • Website aren't available

    Mar 25, 2019 03:51 PM|saigkill|LINK

    Hello Forum,

    i have set up a Windows Server 2019 Essentials with a IIS. Now i delivered a ASP.NET Core Webapp from my local PC to that Server via WebDeploy.

    Inside the Eventmanager i can see the Log: Application 'MACHINE/WEBROOT/APPHOST/SASCHAMANNS' started process '1084' successfully and is listening on port '4726'.

    I have set Bindings from that WebApp to my domain saschamanns.de (http, https)

    Now i sadly can't view http://localhost:4726 or http://saschamanns.de. 

    I'm getting the second case a 404, and for the first one just a blank page. The Firewall itself works (tested with portscanner).

    Now what can i do, to debug the error?

    Greetings

    Sascha

  • Re: Website aren't available

    Mar 25, 2019 09:04 PM|lextm|LINK

    saigkill

    Now i sadly can't view http://localhost:4726 or http://saschamanns.de. 

    localhost is strictly local, so you cannot use this link to access another machine.

    The domain name might not work if you didn't set up DNS.

    Lex Li
    https://lextudio.com
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Website aren't available

    Mar 25, 2019 09:09 PM|saigkill|LINK

    Hello lextm,

    thank you for answering. I forgot to write that i tried this on the same Maschine, as the IIS runs. So localhost should work. Inside the domain DNS settings, the IP is set to the Server. The portscanner also found the target IIS,

    So i don't know exactly what the problem is...

    Greetings Sascha

  • Re: Website aren't available

    Mar 26, 2019 10:07 AM|Able|LINK

    Hi saigkill

    According to your description, I suggest that you could remove all bindings of your sites and  check setting as below:

    Then I hope that you could run your .net core application on the local to find whether it has any problem. At last ,I hope you could post your .net core web application  configure files so that it will help me to solve your problem.

    Best Regards

    Able

    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: Website aren't available

    Mar 26, 2019 03:02 PM|saigkill|LINK

    Hi Able,

    thanks for answering. I already have set this stuff to my IIS. My deployed App is that one: https://dev.azure.com/saigkill/_git/SaigkillsBacktrace

    Maybe i have misconfigured anything?

    Greetings

    Sascha

  • Re: Website aren't available

    Mar 27, 2019 08:04 AM|Able|LINK

    Hi saigkill,

      According to your description,did you install  .net core runtime for your .net core application? If you want to host the .net core web application  on IIS , you should download sdk to provide environment for application. If you have downloaded this ,when you publish it on iis you could see these codes in web.config file.I suggest you could check it.

    <handlers>
            <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
          </handlers>

    Here is the link to download SDK, I hope it could help you.  

    https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.3-windows-hosting-bundle-installer

    Then here is link for how to host .net core application on IIS .You could follow the steps in the doc.

    https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.2

    By the way, do you host your application directly on Azure DevOps?If so , could you please tell me how to host your application on this platform?

    Best Regards

    Able

    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: Website aren't available

    Mar 27, 2019 02:23 PM|lextm|LINK

    saigkill

    thank you for answering. I forgot to write that i tried this on the same Maschine, as the IIS runs. So localhost should work. Inside the domain DNS settings, the IP is set to the Server. The portscanner also found the target IIS,

    If that's the way you configured DNS settings are OK, move on and verify Windows Firewall settings, as you are now trying to make "The Internal Client" work,

    https://blog.lextudio.com/self-hosting-series-why-cannot-my-web-server-iis-be-reached-from-anywhere-else-8da0e0b252ef 

    Lex Li
    https://lextudio.com
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Website aren't available

    Mar 28, 2019 08:26 PM|saigkill|LINK

    Hi Able,

    thanks for answering. Sorry for my delay.

    The web.config file meets your proposal. I re-installed the hosting bundle for my 2.1.4 app. (It's planned to upgrade it to 3.x soon). I rechecked the doc. But as far as i can see, it meets the requirements.

    To answer your question. The app was originally hosted on Azure. Now it is moved to a local NAS.

    Maybe to clarify my setup.

    saschamanns.de points to saigkill.ddns.net (because i'm using a private phone account, i just have a dynamic ip. This is solved through saigkill.ddns.net.)

    My Windows Server 2019 runs as virtual machine on a NAS. On the server runs the IIS and also a updater for saigkill.ddns.net. So saigkill.ddns.net points to the current IP for my Server.

    The Router is configured to route incoming stuff from 80/443 to the Servers IP.

    Greetings

    Sascha

  • Re: Website aren't available

    Mar 29, 2019 09:37 AM|Jalpa Panchal|LINK

    Hi Sascha,

    According to your description,I suggest that you could check whether 4726 port in your computer is closed or not. I doubt that the port in your machine is not open. To check port, you could enter netstat -a -n in command. Then if the firewall is blocking them, you could start windows firewall logging and check the logs for dropped connections. You could follow the steps as below:

    https://serverfault.com/questions/26564/how-to-check-if-a-port-is-blocked-on-a-windows-machine

    Regards,

    Jalpa.

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: Website aren't available

    Mar 30, 2019 01:12 PM|saigkill|LINK

    Hi Jalpa,

    thanks for answering.

    In general it looks like the port where it published on localhost changes from time to time.

    The last Log i've seen is: "Application 'MACHINE/WEBROOT/APPHOST/SASCHAMANNS' with physical root 'C:\inetpub\wwwroot\saschamanns\' shut down process with Id '6292' listening on port '27473'"

    That entry was from 2019-03-26. And since that date no new process comes up. But this is strange, because since i posted my initial post there, i haven't changed anything on the maschine.

    Greetings

    Sascha

  • Re: Website aren't available

    Apr 01, 2019 09:20 AM|Jalpa Panchal|LINK

    Hi,

    According to your description, so, It's obvious that you couldn't see your application by using localhost: 4726 because port has already changed. So I suggest you could firstly use netstat -a -n -o in Command Prompt to find PID which port is 4726 , then you could use task manager find the porcess which has PID you just find.lastly I hope you could remove the program which is used port 4726, so that you could free the port.
    You could see as below:

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.