Click here to Skip to main content
14,879,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to display images in my windows application(c#). Image is stored in my web-server say

http://www.sample.com/Images/Test.jpg.

Below is my code

C#
Image.FromStream(System.Net.HttpWebRequest.Create(url).GetResponse().GetResponseStream());


But it shows an error .The remote server return an error(403) Forbidden.

Is it need to pass any credentials?

Site hosted in IIS 7
Posted
Updated 2-May-13 20:13pm
v2

1 solution

Refer to this link

403 Forbidden Error
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900