![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||