My COM Library Problem fixed

My goodness. I wasted a good portion of the week trying to get a C# COM/dll to work with Domino 8.

To summarize my problem… A COM dll that was working in R6.5 stopped working when we upgraded the server to R8. The dll was having issues finding the namgr.exe.config file that it used on the R6.5 install.

Solution: You won’t believe this… I spent a week recompiling the dll with different hard-coded values and different debug statements trying to figure out why it could not find that namgr.exe.config file. Luckily, I discovered a C# property that displays the expected configuration file path:

AppDomain.CurrentDomain.SetupInformation.ConfigurationFile

A debug line showed that for some reason, Domino 8 expects a COM’s configuration path to be (programfile).config instead of (programfile).exe.config (e.g. namgr.config vs namgr.exe.config). I didn’t know Domino had any control over how .NET behaved but I have no other explanation for what happened.

Oh well… what seemed like a really easy fix took almost a week to discover.

14 July 2008 | lotus, lotus notes | Comments

Comments:

  1.  
  2.  
  3.