Problem u korištenju COM verzije

Dec 17, 2012 at 11:24 AM
Edited Dec 17, 2012 at 12:12 PM

Pozdrav svima, i unaprijed hvala svima koji će pročitati i pomoći.

Koristimo Visual Foxpro 9.0 , DLL sam registrirao, , COM objekt sam bez problema "digao" u fox-u kao objekt (računa bez problema UID) ali prilikom zahtjeva  za Echo dobivam grešku :

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

Koliko sam shvatio problem je u sustavu zaštite pristupa vanjskoj lokaciji, ali

nisam našao rješenje.

Ako neko ima iskustva sa sličnim problemom molim za pomoć.

**************************************************************************************************************************************

NAŠAO sam rješenje.. na netu .... ako ikom treba evo ga :-)  Link

Method#1 Go to the properties of precompiled dll’s, check to see if it has following security message (at the bottom of the window): "This file came from another computer and might be blocked to help protect this computer." If present, click "Unblock", "Apply" and "OK".

 If you have multiple dlls in your application, you would need to perform this step to all dlls one by one.

 Method#2 Run the below caspol command to resolve the issue Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file:////c:\mysitecontent\*" FullTrust -exclusive on

Note: Please substitute "c:\mysitecontent\*" with actual path where ASP.net pre compiled dlls are located.

 **************************************************************************************************************************************