I just want to check that either database is opening or not but over here the code builds successfully but i got exception during run time and exception message is “Retrieving the COM class factory for component with CLSID {29131…} failed due to the following error : 80040154”
I searched for this error code but i can’t find any handy stuff fron net. Can anybody help me in this regard??
Subject: Access Lotus Notes Database through Micorsoft c# .Net
hey dude
have you tried domino designer help. quite basic stuff are provided there. check out that have you missed something regarding diff b/n accessing notes via COM and general exceptions. just type in "domino objects" in the search box you will find lot of stuff regarding this read through it.
and also dont forget to look on the Lotus software Knowledge Base which comes with your Lotus notes package. just check it out and search for this Error Message.
also remember to visit the technical section of the developer works/lotus page there you can find a similar stuff like Knowledge Base.
Subject: RE: Access Lotus Notes Database through Micorsoft c# .Net
thnx Dude!!!Ya i already reading all those stuff and due to which i am able to write the code till now … but all the message boxes places here in code shows empty … i think there is something missing that i don’t know… can anybody help me ??
On Error GoTo errorHandler
Dim s As New NotesSession
' s = CreateObject("Lotus.NotesSession")
s.Initialize("")
Dim dir As NotesDbDirectory
Dim db As NotesDatabase
'dir = s.GetDbDirectory("")
Dim repID As String
dir = s.GetDbDirectory("")
db = dir.OpenDatabase("D:\Visual Studio Projects\Coordimax_Outlook\Coordimax_Outlook\bin\Debug\Res\crmtest.nsf")
repID = db.ReplicaID
'dir = s.GetDbDirectory("")
db = dir.OpenDatabaseByReplicaID(repID)
MessageBox.Show("Server Name..." + dir.Name())
MsgBox(db.Title, , db.FilePath)
' MsgBox(db.Title, , db.FilePath)
MessageBox.Show("here is......" + db.Title() + "...." + db.FilePath())
Exit Sub
errorHandler:
MsgBox("here is error..." + Err.Description, , Err.Number)