Solved

Images Do Not Appear after a local IIS publish

Posted on 2008-10-08
4
534 Views
Last Modified: 2008-11-06
For some reason...when I publish to my local IIS either directly or by copying a project that was published to disk. I no loanger see the images on the pages. I can copy the same site to my live hosted site and it works fine. But why do I not see the images when i post to my local IIS?? Why would they work in one place and not another. A typical reference looks like this:

#top-bar
        {
            width: 1015px;
            height: 65px;
            float: left;
            background-image: url('Images/Login-page-top-bar.jpg');
            overflow: hidden;
            background-repeat: no-repeat;
        }

and yes...they are where I say they are here. ANy help would be great...thanks.
0
Comment
Question by:SGyves
4 Comments
 
LVL 4

Expert Comment

by:techvagabond
ID: 22675891
0
 

Author Comment

by:SGyves
ID: 22675915
If it does...I fail to see how.
0
 
LVL 16

Expert Comment

by:Gyanendra Singh
ID: 22676010
Are you using form auth. in local server.. ?

Also check  IIS mapping for .jpg extension in your local server.
0
 
LVL 23

Accepted Solution

by:
Saqib Khan earned 500 total points
ID: 22676037
> background-image: url('Images/Login-page-top-bar.jpg');

When browsing on local IIS, mostly likely IIS is not able to understand images as a root directory.

Try


 > background-image: url('<%=ResolveUrl("~")%>Images/Login-page-top-bar.jpg');
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

838 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