COM problem when appending to rich text

I have a VB program which uses COM to create a document in notes and then create a rich text item and append text to it.

This worked up to 6.0.2 CF2, but on all clients 6.0.3 and higher it crashes with an NSD as soon as it hits the RTItem.appendtext line.

I have reported it to IBM support and will update when more emerges

Subject: COM problem Resolved

This problem has now been resolved, by the following steps:

  1. Locate the nlsxbe.dll that should be used ( D:\651EN\Notes\nlsxbe.dll in my case )

  2. Run regsvr32 -u nlsxbe.dll ( this is important, I think I didn’t do it before )

  3. Run regsvr32 “D:\651EN\Notes\nlsxbe.dll”

  4. Check the registry with regedit :

     a) Look at : 
    
     HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Lotus.NotesSession 
    
     
    
     You will find the CLSID 
    
    
    
     b) Search the registry for this CLSID (class ID) :                               
    
    
    
                                                                     
    
     HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{29131539-2EED-1069-BF5D-00DD011186B7}\InprocServer32 
    
     
    
     Then check that the value is the correct  for default. 
    
     The path of the nlsxbe.dll file should be correct. 
    
     InprocServer32 is set to:   
    
     D:\651EN\Notes\nlsxbe.dll
    

Subject: RE: COM problem Resolved

Hi,

I am having the same problem. Have tried the following all the steps to unregister and register the .dll. THe problem still not resolved.

Something strange is that after I reboot the system, I am able to run the code without any error. After about an hour, the code will prompt with this error again.

Does anyone have any solution to this problem? I need to solution urgently as my company already migrated to Lotus Notes and all my programs needs to be updated and send the email notification via Lotus Notes.

I am using Visual Studio 2005 (VB.NET), IIS 6.0 and Lotus Notes Client 6.5.5 installed.

Many thanks in advance.