Peter Chan
asked on
Problem to picture file
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.
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).
Can you provide your pages/application in zip format to debug in the better way?
ASKER
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" />
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.
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.
Which version of IIS are you using?
ASKER
.Net framework version v4.0
There is some problem in setting up permission. Please check following links
https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/setting-folder-permissions
https://support.microsoft.com/en-in/help/910449/troubleshooting-common-permissions-and-security-related-issues-in-asp
https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/setting-folder-permissions
https://support.microsoft.com/en-in/help/910449/troubleshooting-common-permissions-and-security-related-issues-in-asp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Still, you are facing the problem?