little problem with deployment

  • Thread starter Thread starter dave
  • Start date Start date
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?
 
It looks like it can't get its current directory.

Is there anything funny about the directory it's running in? Permissions
lacking, maybe?
 
You probably have something in the GAC that makes it all work fine on your
machine. But it becomes a problem when you try it on another machine.

Check your references and make sure they all create a local copy, so you can
see all the required DLLs.

Michael A. Covington said:
It looks like it can't get its current directory.

Is there anything funny about the directory it's running in? Permissions
lacking, maybe?



dave said:
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?
 
Back
Top