How to request a permission of type System.Net.WebPermission in ASP.NET MVC?

后端 未结 3 1296
我寻月下人不归
我寻月下人不归 2021-01-18 23:22

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:

3条回答
  •  春和景丽
    2021-01-18 23:45

    I was also having this issue - and it turned out to be due to dll performing the web request having being downloaded from the web.

    I had to go into the Properties of the dll in file explorer (right click> Properties) and click "Unblock" - making sure to click "Apply" and then "Ok".

提交回复
热议问题