Forum Discussion
Omer_Iqbal_6912
Apr 12, 2011Nimbostratus
Issues with iControl.dll on network?
Hi:
I have a few PowerShell Cmdlets in a dll that in turn uses iControl.dll to access configuration in the F5 switch. Execution from a local machine succeeds, however, when the module is i...
Omer_Iqbal_6912
Apr 12, 2011Nimbostratus
Hi Joe,
Yes, indeed that solved the problem! Thanks.
Another solution that also worked for me is using [System.Reflection.Assembly]::LoadFrom to get the iControl.dll from network share providing the evidence of the current assembly. For instance:
$dllFullPath = '\\SomeServer\Share\iControl.dll'
$evidence = [System.Reflection.Assembly]::GetExecutingAssembly().Evidence
[System.Reflection.Assembly]::LoadFrom($dllFullPath,$evidence)
In the end, I prefer this approach because I do not have to mess around with trust level on the machine with ramifications that I may not know about.
Thanks,
Omer
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects