Link to home
Start Free TrialLog in
Avatar of PierreBeukes
PierreBeukes

asked on

Lotus Notes Session.Initilize() Stops working (hangs)

Hi,

I am using a Web Frontend developed in ASP.NET with VB to connect to a Lotus Notes Database Like this:

Dim s As New Domino.NotesSession
Call s.Initialize("12345") 'The password of the Notes Id on the server is 12345

This is working - sort of :)

It connects fine, for a while, then it just stops working
It hangs on the s.Initialize Function. I don't receive any error messages, no timeouts..
the only way to get it working again is to restart the server. (which is busy and then has to restart at night)

Why would it work and just stop working.??
Thanks in Advance,

Avatar of SysExpert
SysExpert
Flag of Israel image

1) Are you closing your sessions properly ?

2) DId you check to see if this has multiple instances that may be causing issues ?

3) Did you check the Notes Server log.nsf ?

4) Have you added any debugging code ?

I hope this helps !
Avatar of PierreBeukes
PierreBeukes

ASKER

1) In VB.net - s (the notes session variable) doesn't seem to have a close propery to call, it is connecting in its own function, so it should dispose of the variable once it exits the function.... maybe it doesn't close the session properlly.

2) No I have not.. how can i check that? because evertime the function gets called, it will create its own instance of the variable.

3) ... No, I will check the log.nsf file - this should be on the server in the data directory right?

4).  No, it is from VB and when it executes the line to initialize - it is on that line that it hangs on - i don't receive any error messages though.

Thanks for the response, looking forward to your answers.
Ciao
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
2) Use the Process explorer from http://www.sysinternals.com/ ( now Microsoft owned )  to check for  multiple instances.

3) Yes in the data dir

4) Add debug code  ON error or similar and capture an error info.

I hope this helps !
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
qwaletee: , What do you mean by This allows you to pass the ID name and the **web** password, instead of relying on the server.ID file and the server's password.

any examples on this?
Sure.  Let's say you want to have the rights of a user names "Automatic Web Processes/PB Companies" and you have registered that user with a password of "on-the-Web-PW" (HTTP password value)

You can then run an ASP.NET script on your Domino server with the following code:

Dim session As NotesSession
session = CreateObject("Lotus.NotesSession")
session.InitializeUsingNotesUserName ("Automatic Web Processes/PB Companies", "on-the-Web-PW")


Everything else works the same. You are limited to accessing NSF files locally. If you have a way to call out to Java routines, you could also do the same remotely using NCSO.jar or NCSO.cab