Lotus Notes / Domino Sonstiges > Companion Products

Fehler 2147467259 bei der Automatisierung von Notes unter Vista

(1/1)

PeterSans:
Hallo,

Ich habe ein einfaches VB-Programm, das mir Kontakte in Notes anlegt. Es funktioniert mit Notes und Vista ganz gut aber nur wenn ich es nicht als Administrator starte !

Wenn ich das Programm als Admin starte, kommt die Fehlermeldung:
---
Laufzeitfehler 2147467259 (80004005)
Automatisierungsfehler
unbekannter Fehler
---

Das Programm ist wirklich einfach:


--- Code: --- Dim session As NotesSession
 
  Set session = New NotesSession
  session.Initialize ("passwd")
   
  Dim database As NotesDatabase
  Set database = session.GetDatabase("", "names.nsf", False)
 
  Dim doc As NotesDocument
  Set doc = database.CreateDocument
  doc.ReplaceItemValue "Form", "Person"
  doc.ReplaceItemValue "Type", "Person"
  doc.ReplaceItemValue "Lastname", "User1"
 
  doc.ComputeWithForm False, False
  doc.Save True, False, False

--- Ende Code ---

Hat jemand ne Idee, warum das Ding grad als Administrator nicht funktioniert?!

Gruß,

Peter

DAU-in:
Initialize: this method can be used on a computer with a Notes client or Domino server and bases the session on the current user ID. If a password is specified, it must match the user ID password. If a password is not specified, the user is prompted for a password as required and as the software permits. If the software does not support prompting (for example, VBScript under ASP/IIS), you must supply the password or the user ID must not have one.


stimmt denn das Passwort?

Axel:
Hat der Admin Rechte im pers. Adressbuch Dokumente anzulegen?

Bau' eine vernüftige Fehlerbehandlung ein (On Error....), dann siehst du genau wo er aussteigt.


Axel

PeterSans:
Das VB-Program steigt bereits bei folgender Anweisung aus:


--- Code: ---Set session = New NotesSession

--- Ende Code ---

Wenn ich das Programm nicht als Admin ausführe, klappt es aber.

Gruß,

Peter

koehlerbv:
Da wird Notes wohl falsch installiert worden sein und unter dem Vista-Account des Admins nicht korrekt laufen.

Bernhard

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln