Solved

Images Do Not Appear after a local IIS publish

Posted on 2008-10-08
4
537 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

752 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