IIS 7.0 - File Caching Issue

Posted on 2012-09-04
Last Modified: 2012-09-19

I have a .NET website which connects to a web.config file.
I have no issue connecting to the site until I add a Host Name.
Once the Host Name is entered, the site redirects itself to an non-existent URL.
(Non existent in the sense that this file no longer exists.)

I'm also unable to change the URL - it keeps defaulting back to the same non-existent URL.
The only thing I can think of is that the Host Name is cached to this non-existent URL.

Can anyone assist me in letting me know what I can do to fix this issue?
Question by:Stephane_L
    1 Comment
    LVL 10

    Accepted Solution


    try to make host entry on server and against the ip address of that server.

    for e.g.

    <ip address of iis server>          <website hostheadername>

    reset  IIS and clear your browser cache.

    Try to browse the website.

    -Let us know.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now