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
  • 28,027
  • 60
  • 183
  • 301

1 Answers1

2

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

L.B
  • 114,136
  • 19
  • 178
  • 224