Kbase P138060: Compiler error loading the .NET runtime.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/23/2011 |
|
Status: Verified
SYMPTOM(s):
Error raised during compilation
Compiler error loading the .NET runtime.
Error loading the .NET runtime. This may be because required .NET assemblies are on a network share for which the .NET Framework security policy is set to less than Full Trust. (14081)
FACT(s) (Environment):
Installation is a shared network installation.
OpenEdge 10.2x
Windows
CAUSE:
The .NET framework security policy (CAS) on the Progress installation directory does not have the correct level of trust in order to enable the compiler to load the .NET runtime. The Code Access Security is .NET CLR's security system that enforces security policies by preventing unauthorized access to protected resources and operations.
The CAS setting is ?Full Trust? on local machines and ?Partial Trust? on networks by default.
During a NetSetup installation, the user is prompted to change default CAS setting to ?Full Trust? to $DLC\bin directory only. However, may the user choose to keep the default settings, or if the shared network installation was not performed using the recommended procedure (using NetSetup) the CAS setting will remain to 'Partial Trust" and error 14081 will occur.
Be aware that the core install also changes CAS setting if the target destination is located onto a network mapped drive.
FIX:
To manually change the CAS setting of the OpenEdge installation directory to "Full Trust", use the caspol utility with the following syntax:
%WINDIR%\Microsoft.NET\Framework\<version>\caspol.exe -m -ag LocalIntranet_Zone -url \\<ServerName>\<FolderName>\* FullTrust -n "OpenEdge" -d "Progress OpenEdge Network Install"
or go to:
Control Panel >> Administrative Tools >> Microsoft .NET Framework <Version> Configuration
- Select Configure Code Access Security Policy
- Select Adjust Zone Security
- Select Local Intranet and set it to Full Trust