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

后端 未结 6 1688
生来不讨喜
生来不讨喜 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 04:50

    it gives exception, if directory to path does not exist.

    for example path is @"j:\Folder\SubFolder\123.pdf and SubFolder does not exist ,it will throw exception.

提交回复
热议问题