Using DOTNET API - Webpermission failed

Hi

I trying to use a API from NAV 2017.
But i’m getting this error

A Call to FlexAPI.Connect.Login failed with the message: Request for the permission of type ‘System.Net.WebPermission, System, Version …’ failed.

Se attached

api_fail.jpg Thanks