2013-03-04 04:08 PM
I'm using the 2.3 data ONTAP proxy DLL along with the Getting Started pdf and sample project. When I hit :
Proxy ontapProxy = new Proxy();
I get an error :
The following error occurred while loading the extended type data file:
Microsoft.PowerShell, ...\ProxySample\bin\Debug\DataONTAP\DataONTAP.Type.ps1xml : File skipped because of the following validation exception: AuthorizationManager check failed..
Microsoft.PowerShell, ...\ProxySample\bin\Debug\DataONTAP\DataONTAP.C.Type.ps1xml : File skipped because of the following validation exception: AuthorizationManager check failed..
* Setting machine execution policy to RemoteSigned and Unrestricted (restarted Visual Studio after change)
* Enable PSRemoting
* Verify Data ONTAP references in project have Copy Local set to false
* Verify post build event configured to copy Data ONTAP directory to target location
* Verify none of the dlls are marked as blocked in file properties
Now I'm truly stumped. Any suggestions would be greatly appreciated !
Solved! See The Solution
2 REPLIES 2
2013-03-05 12:27 PM
It's possible that the execution policy for x86 PowerShell is still Restricted. The ProxySample project targets x86 by default. Does changing the build target to x64 or Any CPU help?