'An exception occurred during a WebClient request" while using C# ASP.NET

后端 未结 6 1687
生来不讨喜
生来不讨喜 2021-02-05 04:20

So, I have built an auto update program to my program.

The code that is running in here is:

new WebClient().DownloadFile(\"XXXX\", checkingfolder.Select         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-02-05 05:06

    I ran into this error when I was trying to download a file, where the resulting downloaded file path would have been longer than some arbitrary limit

    After changing the downloaded file's path name to be 250 characters long, the problem went away

提交回复
热议问题