Receiving The remote server returned an error: (403) Forbidden message

后端 未结 3 585
生来不讨喜
生来不讨喜 2021-01-19 03:08

I am receiving \"The remote server returned an error: (403) Forbidden\" error message on the block of code below. Specifically this line is failing: var response =

3条回答
  •  灰色年华
    2021-01-19 03:51

    Have you tried setting the Credentials object on the request with proper authorization for the server you are trying to access? See System.Net.NetworkCredential.

提交回复
热议问题