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
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