Domobj not working in R6

I had a C# .NET Web Service working fine in my R5 environment. It references domobj.dll to open a Notes database and returns info from a document.

Since upgrading to R6.0 I cannot get my web service to run successfully. As soon as I try to execute the line:

NotesSession session = new NotesSession();

I get a ‘Page cannot be displayed’ HTTP 500 Internal Server error. Found this out by stepping through the code with my Visual Studio debugger.

I can see good references to Notes Classes when I type “session.” in .NET Visual Studio and the code does build without error.

Any ideas on how I can get this working again?