You must Sign In to post a response.
  • Category: ASP.NET

    Localhost- page not found

    The forum thread has not been reviewed by Editors yet. Readers are advised to use their best judgement before accessing this thread.
    This thread will be reviewed shortly.
    If you think this thread contain inappropriate content, please report to webmaster.
    the problem i am facing is,
    if i am giving local host in the url i am able to access it from the localmachine but from the client side i am not able to retrive the page(page not found is displayed.)

    for better understanding

    if i am giving Response.redirect("http://10.90.142.20/SBMGR/Main.aspx" ) i am able to access from client as well as from local machine.

    In case i give Response.redirect("http://Localhost/SBMGR/Main.aspx" ) i am not able to access the page from client side.But In local system it is working fine.

    But i want it to be Response.redirect ("http://Localhost/SBMGR/Main.aspx" ) and it should be accessable from the client side.

    any suggession or idea, Please.....
  • #7727
    Hi,

    Localhost means iis search in the local machine only. Say, on the client maching Localhost means, the client machine, it will not point to remote machine. You can't use localhost to access the remote machine.

    regards,
    Sunil

  • #7732
    When you are accessing from remote m/c, you should either specify host name (m/c name or IP. because request header don't know local host when request is coming from remote m/c.

    Hope that answers your question.

    Regards.

  • #7734
    hi
    local host should be on that machine only from where you are giving path, if u wants to access contents from server than you have to type server's IP address.


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.