I need to fetch data from a 3rd party URL (via a HTTP API call; different domain from where Sharepoint is hosted) to display inside a webpart.
When I try to preview the webpart I get the following error:
Request for the permission of type 'System.Net.WebPermission, System, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I've also added the following to my web.config. Tried with trust levels as WSS_Medium and Full with no avail.
Any ideas? The part of the code without the webrequest executes well.
View Complete Post