Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have created a website in visual studio and installed it in IIS 7.Its running fine but images not displaying.How to fix this problem.I have checked the static content.
Posted
Comments
thatraja 9-Dec-13 2:30am    
which images?
Md.Ashraf Ali 9-Dec-13 2:36am    
i have an images folder.
That may be due to path issues. Please check the FireBug console window in Firefox. You can refer other Developer tools as well. There you will be able to know which images are not getting loaded.

See what is their path, then you will be able to make out what the path should be.
Md.Ashraf Ali 9-Dec-13 2:35am    
thanx tadit bhai,this is Ashraf ur junior
remember me na?
Oh yes bro. So problem solved? Always hit reply button inside the comment to reply me.

You must add the image extension in MIME option in IIS configuration.
 
Share this answer
 
Ensure the Images folder exists in right path. While deploying the website, that site should contain the appropriate Images folder. If not copy the folder to deployed path. And also try to include that folder in your project for automatic deployment.

Ensure you have used right path. Don't use Absolute path, use Relative path. Check this
Absolute and Relative Paths[^]
 
Share this answer
 
We discussed the issue over TeamViewer.

I found the image paths inside Style Sheet (present inside project folder) are referring to images present inside image folder (present inside the same project folder).
So, both the Style Sheet and image folder are present on same level inside project folder.

But the path was referring to the image present in one parent folder like below...
../{Some Folder Name}/images/numerous.jpg

Correcting the path to images/numerous.jpg resolved the issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900