System.Net.WebClient fails weirdly

前端 未结 4 881
梦谈多话
梦谈多话 2021-02-19 18:29

I am trying to download some data from the reporting services instance on our TFS server.
Given that the code should run on a computer that is not domain-joined, I figured t

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 19:08

    What happens when you use this?

    wc.Credentials = CredentialCache.DefaultCredentials;
    

    Also, are you sure you have the correct username, password and domain?

    Also: I wonder if Fiddler is changing around some unicode characters when .net breaks them or something like that. If your user/pass/domain has unicode, try escaping it out like "\u2638" instead of "☺".

提交回复
热议问题