Solved

Images Do Not Appear after a local IIS publish

Posted on 2008-10-08
4
532 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

778 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