This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Sep 29, 2016, 11:49 PM
5 Posts
topic has been resolvedResolved

Notes error: Could not open the ID file

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Administrator,Developer
  • Tags:
  • Replies: 3

Hi all,

I wrote a program years ago that retrieves a list of items within a Notes view and displays a subset of that content within my application.  I'm in the process of migrating the application from Windows 2003 (x86) Server to Windows 2012 R2 (x64).  The application is still running without an issue on the 2003 server.  When I took that same application and run it on the 2012 server I keep getting Notes error: Could not open the ID file when I attempt to initialize my NotesSession object.  Here is the code snippet:

Try

             Dim nSession As NotesSession

nSession = New NotesSession

            'Initializes connection using current Notes ID to authenticate
            nSession.Initialize()

        Catch ex As Exception

            'Writes message to event log on error
            eventLogger(True, "Notes Session initialization failed." & newLine &
                            "Source: " & ex.Source & newLine &
                            "Description: " & ex.Message, EventLogEntryType.Error)

            Return (False)

        Finally

I know there isn't an issue with my code since the application runs perfectly fine on the old server.  I'm using the same Notes.ini file (only updating the folder paths), and the same User ID file.  I attempted to also run this application on a Windows 7 x64 system with Notes 9 installed and got the same reults.  I suspect it has something to do with the the Notes installation not registering the DLL.  My application references Interop.Domino.dll.  Trying to manually register using the 32 and 64 bit version of regsvr32.exe dll didn't help either.  I get the error message below regardless of the exe I use.

  The module "C:\Program Files
  ﴾x86﴿\IBM\Notes\Interop.Domino.dll" failed to load.

  Make sure the binary is stored at the specified path or
  debug it to check for problems with the binary or
  dependent .DLL files.

  The specified module could not be found.

At this point I'm at a loss as to what else I can try.  Hopefully someone else has run into this issue and has a suggestion.

Thanks in advance for any assistance.

Oct 1, 2016, 12:27 AM
323 Posts
My exprrience is old, so may be too general.

Most reliable advice:, locate the docs on either the C API or your DLL. If its the DLL likely the DLL has other DLLs it is trying to load.

But ygot an ID file error, which says the DLL isnt the current issue.

If ycant locate docs & work through their setup section, check the Notes.INI path between the two machines & verify the INI can be found (on the path? Might still work that way) & ID file can be found where the INI says.

Oct 3, 2016, 7:30 PM
5 Posts
Follow-up

I didn't realize the Notes client would log my API calls here: C:\Program Files (x86)\IBM\Notes\Data\IBM_TECHNICAL_SUPPORT in a file named Console.log.  Reviewing that log lead me to discover that the location that was being referenced in my INI file didn't contain the ID file I needed, hence the error regarding the ID file.

Something else I didn't realize is there is a file under the same directory that will contain the details of the related DLL's being referenced from your custom application.  The file name will be AppName.adr.  This would be quite helpful if you are actually having an issue related to a missing DLL file.

My issue is now solved, so hopefully someone else finds this of use in the future.

Thanks for the response Mike.

Oct 5, 2016, 1:25 PM
323 Posts
That's very useful to me too, Marquis, thanks.

I had been using a now-obsolete debugging program to find DLLs, so your response more than repays mine. Thanks for that info, I need to squirrel it away the next time I'm moving around DLLs.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal