1

Im using the answer in this question Test to see if an image exists in C# to find out if images exists.

However I am getting an exception with error: The remote server returned an error: (401) Unauthorized.

The images are on our sharepoint intranet, so how can i test to see if the images do exists?

Thanks

Community
  • 1
  • 1
raklos
  • 27,188
  • 58
  • 181
  • 291

1 Answers1

2

request.Credentials = new NetworkCredential(username, password);

L.B
  • 110,417
  • 19
  • 170
  • 215