"Notes Error: Cannot Open ID file"

I am trying to send email through Domino objects with ASP.net page. I am using c# as the code behind. I installed the LN client on the server with IIS. I can logon to the client just fine with the password.

I get an error with this line:

oNotesSession.Initialize(sPassword);

“Notes Error: Cannot Open ID file”

I tried giving Admin rights to asp.net, iis_wp and a few others.

I added C:\program files\lotus\notes and C:\program files\lotus\notes\data to my PATH variable. I checked notes.ini and it all points to the right places and is in C:\program files\lotus\notes.

Has anyone seen this? anybody know why I cant open the file?

Subject: “Notes Error: Cannot Open ID file”

Full error:

System.Runtime.InteropServices.COMException (0x80040FA0): Notes error: Could not open the ID file

Subject: RE: “Notes Error: Cannot Open ID file”

try to change the security of “notes.exe” - so the “network services” have permission to “read & execute”.it works for me