Problems with application running on Windows 2003

Discussion in 'ASP .Net' started by Manuel Krummenacher, Oct 20, 2003.

  1. 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
     
    Manuel Krummenacher, Oct 20, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kieran Kelly
    Replies:
    3
    Views:
    852
    Shaji
    Sep 29, 2003
  2. JollyK
    Replies:
    0
    Views:
    544
    JollyK
    Feb 9, 2004
  3. Juan T. Llibre [MVP]
    Replies:
    4
    Views:
    3,005
    Patrick Olurotimi Ige
    Dec 9, 2004
  4. laks
    Replies:
    0
    Views:
    437
  5. =?Utf-8?B?U3JpZGhhcg==?=

    running 64 bit web application on 32 bit windows server 2003

    =?Utf-8?B?U3JpZGhhcg==?=, Nov 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    356
    =?Utf-8?B?U3JpZGhhcg==?=
    Nov 16, 2006
Loading...

Share This Page