Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Request for the permission of type 'System.Net.SocketPermission fa

Reply
 
Old 08-14-2009   #1 (permalink)
BBF


 
 

Request for the permission of type 'System.Net.SocketPermission fa

Getting an error when attempting to use a .NET assembly. The assembly
appears to load correctly, but when I attempt to use it I get an error. My
code was functioning until I upgraded my workstation from Vista to Windows 7.
I also had another machine it worked on, but I installed all the recommended
update and now the code doesn't function on that machine either. In
troubleshooting I ran CASPOL.exe -security off. Even with this setting I get
the error. I'm new to using .Net assemblies in my powershell code so any
assistance would be helpful.

Error:
Exception calling "Connect" with "2" argument(s): "Request for the
permission of type 'System.Net.SocketPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
At :line:10 char:13


Here are some details about the assembly that loaded ok.
FullName
Novell.Directory.Ldap, Version=2.1.10.0, Culture=neutral, PublicKeyToken=null

Evidence
SecurityZone=MyComputer

ImageRuntimeVersion
v1.1.4322

GlobalAssemblyCache
False

Location
E:\migdata\ScriptProcessing\Novell.Directory.Ldap.dll

HostContext
0

My System SpecsSystem Spec
Old 08-17-2009   #2 (permalink)
BBF


 
 

RE: Request for the permission of type 'System.Net.SocketPermission fa

I discovered my issue. I guess I had loaded the assembly with a network path
initially. When I attempted to utilize the assembly (loaded as a network
path) I received the error. When I changed the path to a local drive path,
it still wouldn't work... until i closed my powershell session. After I
closed my powershell session and reloaded the assembly with the local path it
functioned as expected.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Issue when creating Messenger Add-in - request for permission failed Live Messenger
cant turn off - permission request Vista file management
Services request permission Vista account administration
Permission Request Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46