I created a small web service that creates a HttpWebRequest to another website using a proxy and after i used the proxies i got that error:
HttpWebRequest
go to properties of your Project/application (WPF)
In security select enable clickone securitysetting. and set trust level of the project