We help IT Professionals succeed at work.

Problem to picture file

256 Views
Last Modified: 2018-09-05
Hi,
How to resolve the attached problem below?

31k.png
Comment
Watch Question

Swatantra BhargavaTechnical Specialist/Developer
CERTIFIED EXPERT

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

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.
Peter ChanProblem resolver

Author

Commented:
I now get
31l.png
Any ideas?
Martyn SpencerSoftware Developer / Linux System Administrator
CERTIFIED EXPERT

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
CERTIFIED EXPERT

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).
Peter ChanProblem resolver

Author

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

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

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
CERTIFIED EXPERT

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.
Peter ChanProblem resolver

Author

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

Commented:
Which version of IIS are you using?
Peter ChanProblem resolver

Author

Commented:
.Net framework version v4.0
Swatantra BhargavaTechnical Specialist/Developer
CERTIFIED EXPERT

Commented:
Peter ChanProblem resolver

Author

Commented:
Sorry to that, I cannot choose DefaultAppPool below.
31o.png
Marketing Technologist
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Peter ChanProblem resolver

Author

Commented:
Yes, I am sure to this:

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

Commented:
Still, you are facing the problem?
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.