HTTP 404 when remotely accessing page that exists (works from IIS server)RSS

7 replies

Last post Dec 09, 2019 09:13 AM by Jalpa Panchal

  • HTTP 404 when remotely accessing page that exists (works from IIS server)

    Dec 04, 2019 02:27 PM|Black_Lion|LINK

    Hello. I am running IIS version 7, which hosts a custom web application. I am receiving an "HTTP 404 resource cannot be found" error message when logging into the web application remotely via http://192.168.137.32:8080/webapp/login.aspx

    The first time I access login.aspx, it prompts me to log on (I am using Forms Authentication). After I enter the credentials and click log in, I get the HTTP 404. However, if I access the server where the web application is hosted and try to login from there, it works. I use to be able to access the web app with no issues and recently tried accessing it after not using it for several months. What could be the issue?

  • Re: HTTP 404 when remotely accessing page that exists (works from IIS server)

    Dec 04, 2019 02:46 PM|lextm|LINK

    Lex Li
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: HTTP 404 when remotely accessing page that exists (works from IIS server)

    Dec 05, 2019 08:10 AM|Jalpa Panchal|LINK

    Hi,

    Could you please share iis log for this site? 

    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: HTTP 404 when remotely accessing page that exists (works from IIS server)

    Dec 05, 2019 08:45 AM|Black_Lion|LINK

    lextm

    If you enable FRT on both cases, then the trace log should tell the differences,

    https://docs.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis 

    After enabling FRT and trying to log into the web app remotely, I got this this information from the Failure Request log file.

  • Re: HTTP 404 when remotely accessing page that exists (works from IIS server)

    Dec 05, 2019 08:47 AM|Black_Lion|LINK

    Jalpa Panchal

    Hi,

    Could you please share iis log for this site? 

    After trying to log in remotely to the web application, where I got the 404 error, there were no entries recorded in the log when I checked afterwards. 

  • Re: HTTP 404 when remotely accessing page that exists (works from IIS server)

    Dec 05, 2019 09:17 AM|Jalpa Panchal|LINK

    you need to check the server where you hosted the site.

    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: HTTP 404 when remotely accessing page that exists (works from IIS server)

    Dec 05, 2019 02:09 PM|Black_Lion|LINK

    Jalpa Panchal

    you need to check the server where you hosted the site.

    Managed to find the log:

    #Software: Microsoft Internet Information Services 7.5
    #Version: 1.0
    #Date: 2019-12-05 13:52:00
    #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
    2019-12-05 13:52:00 192.168.137.32 GET /login.aspx - 8080 - 192.168.137.73 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/64.0.3282.140+Safari/537.36+Edge/18.17763 200 0 64 15676
    2019-12-05 13:52:13 192.168.137.32 GET /webapp/login.aspx - 8080 - 192.168.137.73 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/64.0.3282.140+Safari/537.36+Edge/18.17763 302 0 0 107
    2019-12-05 13:52:13 192.168.137.32 GET /login.aspx ReturnUrl=%2fwebapp%2flogin.aspx 8080 - 192.168.137.73 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/64.0.3282.140+Safari/537.36+Edge/18.17763 200 0 0 3
    2019-12-05 13:52:13 192.168.137.32 GET /css/login.css - 8080 - 192.168.137.73 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/64.0.3282.140+Safari/537.36+Edge/18.17763 200 0 0 28
    2019-12-05 13:52:18 192.168.137.32 POST /login.aspx ReturnUrl=%2fwebapp%2flogin.aspx 8080 - 192.168.137.73 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/64.0.3282.140+Safari/537.36+Edge/18.17763 302 0 0 86
    2019-12-05 13:52:18 192.168.137.32 GET /webapp/login.aspx - 8080 root 192.168.137.73 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/64.0.3282.140+Safari/537.36+Edge/18.17763 404 0 0 56

    As indicated in the logs, a GET to /login.aspx was successful (200), while the issue occurs after a POST to /login.aspx, which redirects back to login.aspx which results in a 404 message. The POST to /login.aspx should have redirected to my webapp page at home.aspx, even though I provided the correct username and password.

  • Re: HTTP 404 when remotely accessing page that exists (works from IIS server)

    Dec 09, 2019 09:13 AM|Jalpa Panchal|LINK

    Hi,

    are you using 2 applications and your main app also has a login page? 

    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.