Link to home
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

Problem to picture file

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


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 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
Avatar of Lucas Bishop
Lucas Bishop
Flag of United States of America image

Blurred text
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Yes, I am sure to this:

C:\inetpub\vs2012\pict =
Still, you are facing the problem?