Hi All,
We are using Clearcase so our code is running from a network drive.
Our client application is using C# UI and native code behind.
I recently upgraded my computer and moved to Windows 7 and for some reason am not able to run the client anymore from a network drive.
Some debugging revealed that the native API getaddrinfo returns 11003, and I can't actually connect to our server. After doing some digging I found that running the client form another location (not a network drive) works. so I started looking at .net
security issues.
I tried to narrow the problem and created a really small windows forms program which has one button that calls the following API IPAddress[] Addresses = Dns.GetHostAddresses("server") ;
I copied the application code to both our network drive and the C local drive and got the same error (11003) when running from the network, while it worked perfectly when I ran it from the local drive.
The application is using .net framework 2, although I have 2,3.5,4 and 4.5 installed.
I tried to use caspol and edit the policy in all runtimes where it's available (2.0, 2.0 64bit, 4.0, 4.0 64bit) but no luck - I get the same results.
The outputs from CASPOL.exe are attached in the end of this message.
Can anyone tell me if I'm doing anything wrong or if there is anything else I can try...?
Thanks,
Ron
Caspol -listgroups:
32bit V2.0
Microsoft (R) .NET Framework CasPol 2.0.50727.5420
Copyright (c) Microsoft Corporation. All rights reserved.
Security is ON
Execution checking is ON
Policy change prompt is OFF
Level = Machine
Code Groups:
1. All code: FullTrust
1.1. Zone - MyComputer: FullTrust
1.1.1. StrongName - 002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C9
9921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F
17E5EAF0FC4963D261C8A12436518206DC093344D5AD293: FullTrust
1.1.2. StrongName - 00000000000000000400000000000000: FullTrust
1.2. Zone - Intranet: FullTrust
1.2.1. All code: Same site Web
1.2.2. All code: Same directory FileIO - 'Read, PathDiscovery'
1.3. Zone - Internet: FullTrust
1.3.1. All code: Same site Web
1.4. Zone - Untrusted: FullTrust
1.5. Zone - Trusted: FullTrust
1.5.1. All code: Same site Web
32bit V4.0
Microsoft .NET Framework CasPol 4.0.30319.17929
for Microsoft .NET Framework version 4.0.30319.17929
Copyright (C) Microsoft Corporation. All rights reserved.
WARNING: The .NET Framework does not apply CAS policy by default. Any settings shown or modified by CasPol will only affect applications that opt
into using CAS policy.
Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.
Policy change prompt is OFF
Level = Machine
Code Groups:
1. All code: FullTrust
1.1. Zone - MyComputer: FullTrust
1.1.1. StrongName - 002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C9
9921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F
17E5EAF0FC4963D261C8A12436518206DC093344D5AD293: FullTrust
1.1.2. StrongName - 00000000000000000400000000000000: FullTrust
1.2. Zone - Intranet: FullTrust
1.2.1. All code: Same site Web
1.2.2. All code: Same directory FileIO - 'Read, PathDiscovery'
1.3. Zone - Internet: FullTrust
1.3.1. All code: Same site Web
1.4. Zone - Untrusted: FullTrust
1.5. Zone - Trusted: FullTrust
1.5.1. All code: Same site Web
Success
64bit V2.0
Microsoft (R) .NET Framework CasPol 2.0.50727.5420
Copyright (c) Microsoft Corporation. All rights reserved.
Security is ON
Execution checking is ON
Policy change prompt is OFF
Level = Machine
Code Groups:
1. All code: FullTrust
1.1. Zone - MyComputer: FullTrust
1.1.1. StrongName - 002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C9
9921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F
17E5EAF0FC4963D261C8A12436518206DC093344D5AD293: FullTrust
1.1.2. StrongName - 00000000000000000400000000000000: FullTrust
1.2. Zone - Intranet: FullTrust
1.2.1. All code: Same site Web
1.2.2. All code: Same directory FileIO - 'Read, PathDiscovery'
1.3. Zone - Internet: FullTrust
1.3.1. All code: Same site Web
1.4. Zone - Untrusted: FullTrust
1.5. Zone - Trusted: FullTrust
1.5.1. All code: Same site Web
1.6. Url - file://v:\*: FullTrust
1.7. Zone - Intranet: MyCompany (LevelFinal)
1.7.1. StrongName - 0024000004800000940000000602000000240000525341310004000001000100ED92913322617BC45AAE29AAADDD29C1AF270797B200E698DA08CECEAA5
46F911AD09EF0F6DBE4221FA30B8210C76FE004702E540068E526273F35BD009D2026226D00AB72F4223B09E896C0F7AF688FAB2ADB4242C2BFDA793B5C2A259E0D6CD2BD09CBCC20305BD
465C113E36B19854602DC53CE4766F568FC576DBE3822B4: MyDepartment (Exclusive)
64bit V4.0
Microsoft .NET Framework CasPol 4.0.30319.17929
for Microsoft .NET Framework version 4.0.30319.17929
Copyright (C) Microsoft Corporation. All rights reserved.
WARNING: The .NET Framework does not apply CAS policy by default. Any settings shown or modified by CasPol will only affect applications that opt
into using CAS policy.
Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.
Policy change prompt is OFF
Level = Machine
Code Groups:
1. All code: FullTrust
1.1. Zone - MyComputer: FullTrust
1.1.1. StrongName - 002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C9
9921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F
17E5EAF0FC4963D261C8A12436518206DC093344D5AD293: FullTrust
1.1.2. StrongName - 00000000000000000400000000000000: FullTrust
1.2. Zone - Intranet: FullTrust
1.2.1. All code: Same site Web
1.2.2. All code: Same directory FileIO - 'Read, PathDiscovery'
1.3. Zone - Internet: FullTrust
1.3.1. All code: Same site Web
1.4. Zone - Untrusted: Nothing
1.5. Zone - Trusted: FullTrust
1.5.1. All code: Same site Web
Success