Last post Feb 04, 2014 10:59 PM by dyyo
Feb 04, 2014 03:03 AM|aparitala|LINK
I have an Application, When i host it on test server or local IIS no issues. But, when i host the same code in Production Server IIS images are not displaying on login page.
Can someone help me in solving this issue?
Please do the needful.
Feb 04, 2014 04:11 AM|anuj_koundal|LINK
Its may be due to path issue... post ur code or provide url for your website.
Feb 04, 2014 04:13 AM|smiling4ever|LINK
Check the html source in your browser. Does the src of the image look correct? Can you view the image when you access it directly from your browser?
Feb 04, 2014 05:06 AM|aparitala|LINK
This issue is only on Login page. Once the user get logged into the app everything is fine.
Yes, When I see the image dircetly from browser i can see the image without any issue.
And image path is give like ../Images/xyz.jpg
Feb 04, 2014 05:12 AM|PatriceSc|LINK
Use the browser dev tools and the network tab to see what is the server response (404 not found ?). Relative path are often disabled. I would suggest to avoid them. It could be also that this content is not available to non authenticated users.
Feb 04, 2014 05:36 AM|aparitala|LINK
Checked still no luck..
Please advice do i need to change web.config ????
Feb 04, 2014 05:55 AM|anuj_koundal|LINK
Make sure the folder where images are placed have proper read/write permissions.
Feb 04, 2014 05:59 AM|PatriceSc|LINK
Checked that is ? Do you see a 404 http status on those images ?
Feb 04, 2014 07:07 AM|smiling4ever|LINK
Ok, looks like the images folder is protected if you are using forumsautehntication.
Try to execlude that or disable authentication then try your login
Feb 04, 2014 10:59 PM|dyyo|LINK
If the images does not show up, it is CERTAINLY because of the path issue. Nothing else.
I suspect you are using an "Absolute path" approach on your code and this makes your images show up on local PC and fails on the server. If you are using this approach, you must make sure that the server has the SAME, EXACT folder configuration like your PC