Problems with application running on Windows 2003

  • Thread starter Manuel Krummenacher
  • Start date
M

Manuel Krummenacher

Hi!

I tried to run an ASP.NET-Application (C#) under Windows 2003. The
application should create an user in Active Directory and give it a
password.

The creation of the user works fine, but in the line setting the password,
this error occurs:

Ein Aufrufziel hat einen Ausnahmefehler verursacht.

System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen
Ausnahmefehler verursacht. --->
System.Runtime.InteropServices.COMException (0x80072035): Der Server kann
die Anforderung nicht ausfhren. --- Ende der internen
Ausnahmestapelberwachung --- at System.RuntimeType.InvokeDispMethod
(String name, BindingFlags invokeAttr, Object target, Object[] args,
Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[]
modifiers, CultureInfo culture, String[] namedParameters) at
System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
binder, Object target, Object[] args) at
System.DirectoryServices.DirectoryEntry.Invoke(String methodName, Object
[] args) at user.erstellen.benutzer_erstellen() in e:\internetsites\user-
admin.ch\erstellen.aspx.cs:line 341

I try to set the password with the following code:

deNewUser.Invoke("SetPassword", new object[] {"Passwort"});

(deNewUser is the DirectoryEntry-Object of the user)

The same application works fine under Windows 2000. Both Servers have
Framework 1.1 installed.

Any ideas?

Thanks in advance.

Greetings Manuel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top