Does it not run or errors out? Did you sign the agents. Do they have rights to run on the server (check server doc). Does the id that signed/is running the agent have create rights to the nab?
Did you check the logs to see if there is a error message.
then you can output the line number for your error, then you can drill down. I think you will find your error is occurring somewhere different to what you pasted.
HTTP Server: Agent message: Object variable not set
Subject: Could not open the ID file when i want to create lotus account
Hi,
I added error handling code, and i found this message:
HTTP Web Server: Document de conception introuvable - Erreur :Erreur Notes : Could not open the ID file, ligne : 58
When, i verified in my code, my web agent is stopped here in this line :
Call reg.RegisterNewUser( _
UCase(nom), _ ' last name
"", _ ' file to be created
mailServer, _ ' mail server
prenom, _ ' first name
"", _ ' middle initial
certIdPassword, _ ' certifier password
"", _ ' location field
"", _ ' comment field
mailFile, _ ' mail file
"", _ ' forwarding domain
userIdPassword) ' user password
i don’t know what i must do it to resolve this problem “Could not open the ID file”?!
in the help, i found:Before calling the method “RegisterNewUser”, set CertifierIDFile, Expiration (defaults to 2 years from now), IDType, and MinPasswordLength.
Set UpdateAddressBook True to add a Server record to the Domino Directory. Set StoreIDInAddressBook True to attach the ID to the Domino Directory record. These operations can be performed separately with AddUserToAddressBook.
So, i set CertifierIDFile by this :
With reg
'=== certificate
.CertifierIDFile = certIdFilePath
…
and i have certid file in my machine in local ( Z:\cert.id).
I put the certifier id file in a folder on the server.
Now, I run my agent to create a Lotus account. I use the method reg.RegisterNewUser Call (…) to create it.
I can create the document in the names.nsf user base, and I do the update of this document. But when I check if the mail database is created, I don’t found it.
I use this line to check if the pnom.nsf mail file exists or not
Set dbmail = session.Getdatabase (MailServer MailFile, False)
But then I found that the object is null. And when I check manually I can’t find the mail database!
Is the mail file being created or is it that you dont have access to it. IF the later put yourself in a acl group and add that group into the acl of the mail template with around the name. if the mail file is not getting created check your the admin4 db to see if there is a rquest to create the db, also check you code that you set create db on in the reg request