Error with download a file from https using webclient
I have create a piece of code that download a file from a given URL using WebClient. The problem is i am getting the following error when the code is trying to download a file from a HTTPS site. The remote certificate is invalid according to the validation procedure This issue happened only on the server not on the local machine, so i also don't know how to debug it. I have read several answers on the web but didn't find anything that could help me. The piece of code: using (WebClient Client = new WebClient()) { string fileName = System.Configuration.ConfigurationManager.AppSettings[