Invoke code: Exception has been thrown by the target of an invocation

I am facing “Invoke code: Exception has been thrown by the target of an invocation.” is exception message in while running my invoke code.“Using wc As New System.Net.WebClient()
wc.DownloadFile(URL,Path)
End Using”
This is the invoke code i am using for downloading zip folder from given url.

Hi,

In my environment, your code works without error.
For now, can you check your URL and/or Path are correct?

Regards,

path and URL is correct can you notify any other check points

Hi,

To isolate causes, can you try the following sample? This sample works in my environment.

img20200813-3

Sample20200813-2.zip (12.8 KB)

Regards,