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:
It seems that you are running into a trust related issue. You might be able to work-around the issue by including in your Web.Config
, under System.Web
,
WebPermission
is not available under a medium trust
environment (and you can look at this article to modify this behavior and for the reasons why you shouldn't).
However, if you require full trust
you might have to reconsider the requirements of your application.