Program hand after issued a notessession or Notessession.getdatabase

I have a program that are using C# .net 2.0 to make a connection to Lotus Notes 6.5.1. This program works when the Lotus Notes return a normal response.

But when the Lotus Notes is busy or access by the same user (by other processes), my server will hang up when execute the following 2 case :

  1. myNotesSession.GetDatabase(CLogEMailFactory.EMailServer,LogEMailFactory.EMailDatabase, false);

  2. myNotesSession = new NotesSessionClass();

When my server is hang up, sometimes I can restart the server by IISRESET. But sometime I need to reboot my server.

Does any one encountered this situtation before ?