Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

Problem to picture file

Hi,
How to resolve the attached problem below?

User generated image
Avatar of Swatantra Bhargava
Swatantra Bhargava
Flag of India image

Check your Image path. Error showing that on given path image is not there.
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.
Avatar of Peter Chan

ASKER

I now get
User generated image
Any ideas?
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.
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).
I already have the shared permission to pict folder like
User generated imagewhy do I get 401 error?
Can you provide your pages/application in zip format to debug in the better way?
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

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.
There is already permission given to IIS user below. Why is there still 401 error?
User generated image
Which version of IIS are you using?
.Net framework version v4.0
Sorry to that, I cannot choose DefaultAppPool below.
User generated image
ASKER CERTIFIED SOLUTION
Avatar of Lucas Bishop
Lucas Bishop
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, I am sure to this:

C:\inetpub\vs2012\pict = www.searchhouselive.com/pict/
Still, you are facing the problem?