Web Connection Wishlist
Permission error
Gravatar is a globally recognized avatar based on your email address. Permission error
  n/a
  All
  Aug 20, 2014 @ 10:44am
Hi Rick,

I have the code generated with the Proxy Generator to access the Web MailService running well on my laptop when connected to the terminal server (I am working remotely). I need to be able to run this from an installation on the terminal server as there are other dependencies for the rest of the process that I need to test that do not exist on my laptop.

I am running from the VFP9 SP2 IDE for testing purposes and I am stymied by the following error.

"Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed..."

I have read the other threads on the messageboard regarding this error and have created a vfp9.exe.config file as described and placed it in the same folder as VFP9.exe. It also lives in the same folder as the form I am running.
The terminal server has .NET 4 installed so I commented out the .NET 2 line and brought back the version 4 line. The error persists. I also tried leaving it as is as they have that version as well, no luck.

I'm quite sure there is some simple thing I am missing but as I have no idea about any of the .NET stuff I am lost as to what to try next.

Thanks again,
Barb

Gravatar is a globally recognized avatar based on your email address. Re: Permission error
  Rick Strahl
  Barb
  Aug 21, 2014 @ 10:43am
Barb,

The error you're getting is from .NET 2.0 (notice the 2.0 version number). 2.0 won't accept the .config network overrides. So before anything else I would try making sure you run .NET 4.0. Note you have to explicitly load the 4.0 runtime in your code somewhere on startup:

GetwwDotNetBridge("V4")

This call will call wwDotnetBridge and load .NET 4.0. Any subsequent wwDotnetBridge calls will then use the V4 runtime. This of course assumes .NET 4.0 is installed.

If that doesn't work you'll have to use the CASPOL tool to explicitly grant Full Trust rights to wwDotnetBridge.dll.

+++ Rick ---


Hi Rick,

I have the code generated with the Proxy Generator to access the Web MailService running well on my laptop when connected to the terminal server (I am working remotely). I need to be able to run this from an installation on the terminal server as there are other dependencies for the rest of the process that I need to test that do not exist on my laptop.

I am running from the VFP9 SP2 IDE for testing purposes and I am stymied by the following error.

"Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed..."

I have read the other threads on the messageboard regarding this error and have created a vfp9.exe.config file as described and placed it in the same folder as VFP9.exe. It also lives in the same folder as the form I am running.
The terminal server has .NET 4 installed so I commented out the .NET 2 line and brought back the version 4 line. The error persists. I also tried leaving it as is as they have that version as well, no luck.

I'm quite sure there is some simple thing I am missing but as I have no idea about any of the .NET stuff I am lost as to what to try next.

Thanks again,
Barb



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Permission error
  n/a
  Rick Strahl
  Aug 26, 2014 @ 02:47pm
Well! Although v4 is installed, no matter what I do, v2 loads. So, I tried the caspol tool to grant full trust in the machine I am running

caspol –addfulltrust f:\tdp\wwDotnetBridge.dll

I receive an error: This assembly is not strong name signed

I have no idea what this is.

I'm going to have to physically go in to their office to see what I can do from there on a different computer.

Barb


Barb,

The error you're getting is from .NET 2.0 (notice the 2.0 version number). 2.0 won't accept the .config network overrides. So before anything else I would try making sure you run .NET 4.0. Note you have to explicitly load the 4.0 runtime in your code somewhere on startup:

GetwwDotNetBridge("V4")

This call will call wwDotnetBridge and load .NET 4.0. Any subsequent wwDotnetBridge calls will then use the V4 runtime. This of course assumes .NET 4.0 is installed.

If that doesn't work you'll have to use the CASPOL tool to explicitly grant Full Trust rights to wwDotnetBridge.dll.

+++ Rick ---


Hi Rick,

I have the code generated with the Proxy Generator to access the Web MailService running well on my laptop when connected to the terminal server (I am working remotely). I need to be able to run this from an installation on the terminal server as there are other dependencies for the rest of the process that I need to test that do not exist on my laptop.

I am running from the VFP9 SP2 IDE for testing purposes and I am stymied by the following error.

"Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed..."

I have read the other threads on the messageboard regarding this error and have created a vfp9.exe.config file as described and placed it in the same folder as VFP9.exe. It also lives in the same folder as the form I am running.
The terminal server has .NET 4 installed so I commented out the .NET 2 line and brought back the version 4 line. The error persists. I also tried leaving it as is as they have that version as well, no luck.

I'm quite sure there is some simple thing I am missing but as I have no idea about any of the .NET stuff I am lost as to what to try next.

Thanks again,
Barb



Gravatar is a globally recognized avatar based on your email address. Re: Permission error
  n/a
  Rick Strahl
  Aug 27, 2014 @ 08:06am
Whoops, I had this in the wrong forum.

Well! Although v4 is installed, no matter what I do, v2 loads. So, I tried the caspol tool to grant full trust in the machine I am running

caspol –addfulltrust f:\tdp\wwDotnetBridge.dll

I receive an error: This assembly is not strong name signed

I have no idea what this is.

Oh, I don't know if this means anything, but the error comes back with version 2 but if I look at obridge.cclrversion it says 4.0.30319. I have tried explicitly loading V4 but kept getting the v2 error so I am explicitly loading v2.

Confused!

Barb


Barb,

The error you're getting is from .NET 2.0 (notice the 2.0 version number). 2.0 won't accept the .config network overrides. So before anything else I would try making sure you run .NET 4.0. Note you have to explicitly load the 4.0 runtime in your code somewhere on startup:

GetwwDotNetBridge("V4")

This call will call wwDotnetBridge and load .NET 4.0. Any subsequent wwDotnetBridge calls will then use the V4 runtime. This of course assumes .NET 4.0 is installed.

If that doesn't work you'll have to use the CASPOL tool to explicitly grant Full Trust rights to wwDotnetBridge.dll.

+++ Rick ---


Hi Rick,

I have the code generated with the Proxy Generator to access the Web MailService running well on my laptop when connected to the terminal server (I am working remotely). I need to be able to run this from an installation on the terminal server as there are other dependencies for the rest of the process that I need to test that do not exist on my laptop.

I am running from the VFP9 SP2 IDE for testing purposes and I am stymied by the following error.

"Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed..."

I have read the other threads on the messageboard regarding this error and have created a vfp9.exe.config file as described and placed it in the same folder as VFP9.exe. It also lives in the same folder as the form I am running.
The terminal server has .NET 4 installed so I commented out the .NET 2 line and brought back the version 4 line. The error persists. I also tried leaving it as is as they have that version as well, no luck.

I'm quite sure there is some simple thing I am missing but as I have no idea about any of the .NET stuff I am lost as to what to try next.

Thanks again,
Barb



Gravatar is a globally recognized avatar based on your email address. Re: Permission error
  Rick Strahl
  Barb
  Sep 2, 2014 @ 03:34pm
Barb...

Make sure you load V4 on startup. Only 1 version of .NET can load so the first call to wwDotnetBridge (or any other COM interop for that matter) will determine the version that is used.

Put it somewhere in your startup code, so it fires before anything else does:

DO wwDotnetBridge
loBridge = GetwwDotNetBridge("V4")
MessageBox(loBridge.GetDotNetVersion())\

Doing this first thing when the app starts should pick up V4 IF it is installed. Note it has to be the FULL version of .NET 4.0 not the client runtime since wwDotnetBridge has dependencies on some parts of the full .NET runtime (there are two versions of 4.0 - full and client).

+++ Rick ---



Whoops, I had this in the wrong forum.

Well! Although v4 is installed, no matter what I do, v2 loads. So, I tried the caspol tool to grant full trust in the machine I am running

caspol –addfulltrust f:\tdp\wwDotnetBridge.dll

I receive an error: This assembly is not strong name signed

I have no idea what this is.

Oh, I don't know if this means anything, but the error comes back with version 2 but if I look at obridge.cclrversion it says 4.0.30319. I have tried explicitly loading V4 but kept getting the v2 error so I am explicitly loading v2.

Confused!

Barb


Barb,

The error you're getting is from .NET 2.0 (notice the 2.0 version number). 2.0 won't accept the .config network overrides. So before anything else I would try making sure you run .NET 4.0. Note you have to explicitly load the 4.0 runtime in your code somewhere on startup:

GetwwDotNetBridge("V4")

This call will call wwDotnetBridge and load .NET 4.0. Any subsequent wwDotnetBridge calls will then use the V4 runtime. This of course assumes .NET 4.0 is installed.

If that doesn't work you'll have to use the CASPOL tool to explicitly grant Full Trust rights to wwDotnetBridge.dll.

+++ Rick ---


Hi Rick,

I have the code generated with the Proxy Generator to access the Web MailService running well on my laptop when connected to the terminal server (I am working remotely). I need to be able to run this from an installation on the terminal server as there are other dependencies for the rest of the process that I need to test that do not exist on my laptop.

I am running from the VFP9 SP2 IDE for testing purposes and I am stymied by the following error.

"Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed..."

I have read the other threads on the messageboard regarding this error and have created a vfp9.exe.config file as described and placed it in the same folder as VFP9.exe. It also lives in the same folder as the form I am running.
The terminal server has .NET 4 installed so I commented out the .NET 2 line and brought back the version 4 line. The error persists. I also tried leaving it as is as they have that version as well, no luck.

I'm quite sure there is some simple thing I am missing but as I have no idea about any of the .NET stuff I am lost as to what to try next.

Thanks again,
Barb






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Permission error
  n/a
  Rick Strahl
  Sep 2, 2014 @ 08:13pm
Argh! That's it - the computer I use for the VPN has only the client version of 4.0. I went into the office and tried running on other computers with the full version of .net 4 and it works like a charm.

Thanks for your patience and help, Rick. The Web Service Proxy Generator is a godsend.
Barb


Barb...

Make sure you load V4 on startup. Only 1 version of .NET can load so the first call to wwDotnetBridge (or any other COM interop for that matter) will determine the version that is used.

Put it somewhere in your startup code, so it fires before anything else does:

DO wwDotnetBridge
loBridge = GetwwDotNetBridge("V4")
MessageBox(loBridge.GetDotNetVersion())\

Doing this first thing when the app starts should pick up V4 IF it is installed. Note it has to be the FULL version of .NET 4.0 not the client runtime since wwDotnetBridge has dependencies on some parts of the full .NET runtime (there are two versions of 4.0 - full and client).

+++ Rick ---



Whoops, I had this in the wrong forum.

Well! Although v4 is installed, no matter what I do, v2 loads. So, I tried the caspol tool to grant full trust in the machine I am running

caspol –addfulltrust f:\tdp\wwDotnetBridge.dll

I receive an error: This assembly is not strong name signed

I have no idea what this is.

Oh, I don't know if this means anything, but the error comes back with version 2 but if I look at obridge.cclrversion it says 4.0.30319. I have tried explicitly loading V4 but kept getting the v2 error so I am explicitly loading v2.

Confused!

Barb


Barb,

The error you're getting is from .NET 2.0 (notice the 2.0 version number). 2.0 won't accept the .config network overrides. So before anything else I would try making sure you run .NET 4.0. Note you have to explicitly load the 4.0 runtime in your code somewhere on startup:

GetwwDotNetBridge("V4")

This call will call wwDotnetBridge and load .NET 4.0. Any subsequent wwDotnetBridge calls will then use the V4 runtime. This of course assumes .NET 4.0 is installed.

If that doesn't work you'll have to use the CASPOL tool to explicitly grant Full Trust rights to wwDotnetBridge.dll.

+++ Rick ---


Hi Rick,

I have the code generated with the Proxy Generator to access the Web MailService running well on my laptop when connected to the terminal server (I am working remotely). I need to be able to run this from an installation on the terminal server as there are other dependencies for the rest of the process that I need to test that do not exist on my laptop.

I am running from the VFP9 SP2 IDE for testing purposes and I am stymied by the following error.

"Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed..."

I have read the other threads on the messageboard regarding this error and have created a vfp9.exe.config file as described and placed it in the same folder as VFP9.exe. It also lives in the same folder as the form I am running.
The terminal server has .NET 4 installed so I commented out the .NET 2 line and brought back the version 4 line. The error persists. I also tried leaving it as is as they have that version as well, no luck.

I'm quite sure there is some simple thing I am missing but as I have no idea about any of the .NET stuff I am lost as to what to try next.

Thanks again,
Barb






© 1996-2024