Web Service Proxy Generator
Permission of type System.Net.WebPermission failed
Gravatar is a globally recognized avatar based on your email address. Permission of type System.Net.WebPermission failed
  Frits van den Munckhof
  All
  Feb 1, 2020 @ 08:47am

Hi Rick,

I have an VFP-application that uses a proxy-class made with your Web Service Proxy Generator. When I run it on the server I get an "OLE IDispatch exception code 0 from wwDotNetBridge: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=" .... " failed" error.

When I copy the complete application to my laptop it runs fine. Do you recognize the error and do you know a solution?

TIA, Frits van den Munckhof

Gravatar is a globally recognized avatar based on your email address. re: Permission of type System.Net.WebPermission failed
  Frits van den Munckhof
  Frits van den Munckhof
  Feb 1, 2020 @ 09:04am

Some more information: the only difference I can imagine is that when running the APP on the server it uses 3 dll's on the server (authoriserproxy.dll, wwipstuff.dll and wwdotnetbridge.dll) that were copied there. On my laptop these dll's are of course local to the laptop.

Gravatar is a globally recognized avatar based on your email address. re: Permission of type System.Net.WebPermission failed
  Rick Strahl
  Frits van den Munckhof
  Feb 1, 2020 @ 10:34pm

Take a look here:

Cannot load CLR Instance Error

By default .NET applications can't run from a network share unless the LoadFromRemoteSources setting is enabled.

There's a lot more info in the Web Connection documentation:

Web Connection for Cannot Load CLR Instance Error

Your error is different but it sounds like some of your DLLs are on the network so still effected by this.

+++ Rick ---

© 1996-2020