Problem to picture file

HuaMin Chen
HuaMin Chen used Ask the Experts™
on
Hi,
How to resolve the attached problem below?

31k.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Swatantra BhargavaTechnical Specialist/Developer

Commented:
Check your Image path. Error showing that on given path image is not there.
Martyn SpencerSoftware Developer / Linux System Administrator / Managing Director

Commented:
And if you are using web server with case sensitive file names, check that the case matches. Error 404 is effectively (as Swatantra says) a file not found error.
HuaMin ChenProblem resolver

Author

Commented:
I now get
31l.png
Any ideas?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Martyn SpencerSoftware Developer / Linux System Administrator / Managing Director

Commented:
The 401 error says "Unauthorized" which probably means that the script does not have permissions to access the file or folder. The 404 error is still that the file cannot be found by the script.
Swatantra BhargavaTechnical Specialist/Developer

Commented:
If you have Windows Server consult with your ISP to give read / write permission on pict folder and for 404 error cross check your image Exists or not in the HouseList4 folder (once try with all small case letters).
HuaMin ChenProblem resolver

Author

Commented:
I already have the shared permission to pict folder like
31m.pngwhy do I get 401 error?
Swatantra BhargavaTechnical Specialist/Developer

Commented:
Can you provide your pages/application in zip format to debug in the better way?
Swatantra BhargavaTechnical Specialist/Developer

Commented:
You specified an image as below

<img id="aspImagePreview" src="output63671305731795.jpg" alt="Preview" />

Now when the page renders it searches image in the http://www.searchhouselive.com/HouseList4/ URL.

Specify the path of this image where it resides like

<img id="aspImagePreview" src="/images/output63671305731795.jpg" alt="Preview" />

Open in new window

Swatantra BhargavaTechnical Specialist/Developer

Commented:
For 401 Error

Server Error

401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.


Please check your permission in your IIS Server.
HuaMin ChenProblem resolver

Author

Commented:
There is already permission given to IIS user below. Why is there still 401 error?
31n.png
Swatantra BhargavaTechnical Specialist/Developer

Commented:
Which version of IIS are you using?
HuaMin ChenProblem resolver

Author

Commented:
.Net framework version v4.0
HuaMin ChenProblem resolver

Author

Commented:
Sorry to that, I cannot choose DefaultAppPool below.
31o.png
Marketing Technologist
Commented:
404 Error for this:
http://www.searchhouselive.com/HouseList4/output63671377030194.jpg

Which means that image does not exist at that location.

Are you positive that "output63671377030194.jpg" is located in the /HouseList4/ directory?

We can see "house_one.png" is located in /HouseList4/:
http://www.searchhouselive.com/HouseList4/house_one.png

For the 401 error. Are you sure that:
C:\inetpub\vs2012\pict = www.searchhouselive.com/pict/
HuaMin ChenProblem resolver

Author

Commented:
Yes, I am sure to this:

C:\inetpub\vs2012\pict = www.searchhouselive.com/pict/
Swatantra BhargavaTechnical Specialist/Developer

Commented:
Still, you are facing the problem?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial