Avatar of Peter Chan
Peter Chan
Flag for Hong Kong asked on

Problem to picture file

Hi,
How to resolve the attached problem below?

31k.png
ASP.NET.NET ProgrammingCSSJavaScriptProgramming Languages-Other

Avatar of undefined
Last Comment
Swatantra Bhargava

8/22/2022 - Mon
Swatantra Bhargava

Check your Image path. Error showing that on given path image is not there.
Martyn Spencer

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 Chan

ASKER
I now get
31l.png
Any ideas?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Martyn Spencer

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 Bhargava

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 Chan

ASKER
I already have the shared permission to pict folder like
31m.pngwhy do I get 401 error?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Swatantra Bhargava

Can you provide your pages/application in zip format to debug in the better way?
Peter Chan

ASKER
Swatantra Bhargava

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

This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Swatantra Bhargava

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 Chan

ASKER
There is already permission given to IIS user below. Why is there still 401 error?
31n.png
Swatantra Bhargava

Which version of IIS are you using?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Peter Chan

ASKER
.Net framework version v4.0
Swatantra Bhargava

Peter Chan

ASKER
Sorry to that, I cannot choose DefaultAppPool below.
31o.png
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Lucas Bishop

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Peter Chan

ASKER
Yes, I am sure to this:

C:\inetpub\vs2012\pict = www.searchhouselive.com/pict/
Swatantra Bhargava

Still, you are facing the problem?