MichaelvdV@Atos

"Invalid value for registry" when opening PI OLEDB Connection

Discussion created by MichaelvdV@Atos on Jun 9, 2010

I have the following setup:

 

-Win2k8 R2 (x64)
-PI 3.4.38.36
-PI OLEDB x86
- IIS 7.5
- .NET 4.0 / Visual Studio 2010

 

I have created a WCF services, which accepts requests for data input/output from PI using PI OLEDB. The WCF Service is hosted in IIS.

 

When I open the OLEDB connection I get the following error:

Invalid value for registry

When I host the WCF Service in the ASP.NET Development Server (which comes with Visual Studio), I don't get this error. Also, when I create a simple Console Application which uses PI OLEDB, it works.

 

My IIS application pool which the website uses where my WCF services is hosted in runs under a priviliged user account (for testing purposes). It is my domain account (the same I run Visual Studio and the console application under).

 

I have configured the DCOM settings for PI OLEDB (using dcomcnfg) to allow everything for that particulair identity.

 

I'm totally lost (and a bit frustrated). Can anyone provide some insight?

 

tl;dr; PI OLEDB provider gives error 'invalid value for registry' when hosted in an IIS WCF Service.

Outcomes