Solved

Images Do Not Appear after a local IIS publish

Posted on 2008-10-08
4
527 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:
adilkhan 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

20 Experts available now in Live!

Get 1:1 Help Now