locked
How to launch live site source code in local environment. RRS feed

  • Question

  • User1908405033 posted

    Hi,

    I am a newbie in asp.net technology. Recently I have imported live project source code in visual studio and tried to set up locally, but when I tried to launch an application it is redirecting to a live site rather than localhost. Since I am trying this for the first time could anybody help me out on this?

    Below are the steps, I followed.

    • Imported source code from the live site into the Visual Studio.
    • Set Index.asp, as a start page.
    • Then click on the 'IIS Express' button to launch an application.

    But it is redirecting to live site, rather than localhost.

    Kindly help me with this.

    Thanks In advance.

    Sunday, April 26, 2020 2:56 PM

All replies

  • User409696431 posted

    Look at the code behind file for Index.aspx  (Index.aspx.cs if you are using C#).  Is there a hard coded redirect to the live site somewhere in page load?

    Look at the code for Index.aspx itself: is there a meta tag that is doing a redirect? E.g:

    <meta http-equiv="refresh" content="0; url=http://example.com/">

    Those are the only two guesses I can make without knowing exactly what you did and what the code looks like.

    Sunday, April 26, 2020 10:36 PM