D
dave
hello all,
I have created a very simple C# console app for an Active
Directory extract, thats runs fabuously on my laptop.
When I try move this to a server to run, I keep getting
interop errors. What is the simple thing I'm missing on
my servers, that is preventing me from running it
properly?
The errors.
First a pop up that states:
Application has generated an exception that cannot be
handled.
Process id = 0x36b0(14000), thread id = 0x34a0(13472)
Click OK to terminate the application
Second the debug info is as follows:
Unhandled Exception:
System.Runtime.InteropServices.COMException (0x80070539):
The security ID structure is invalid.
at System.DirectoryServices.Interop.IAdsPropertyList.Item
(Object varIndex)
at System.DirectoryServices.KeyEnumerator.get_Current()
at AD_Extract_C1.1.ADLDAP.MostUseers(String pathemp,
Int32 count)
at AD_Extract_C1.1.Class1.Main(string[],args)
Anything obvious?
I have created a very simple C# console app for an Active
Directory extract, thats runs fabuously on my laptop.
When I try move this to a server to run, I keep getting
interop errors. What is the simple thing I'm missing on
my servers, that is preventing me from running it
properly?
The errors.
First a pop up that states:
Application has generated an exception that cannot be
handled.
Process id = 0x36b0(14000), thread id = 0x34a0(13472)
Click OK to terminate the application
Second the debug info is as follows:
Unhandled Exception:
System.Runtime.InteropServices.COMException (0x80070539):
The security ID structure is invalid.
at System.DirectoryServices.Interop.IAdsPropertyList.Item
(Object varIndex)
at System.DirectoryServices.KeyEnumerator.get_Current()
at AD_Extract_C1.1.ADLDAP.MostUseers(String pathemp,
Int32 count)
at AD_Extract_C1.1.Class1.Main(string[],args)
Anything obvious?