thomas.clchan

Use of PI SDK (32-bit version 1.4.2.445) on Windows Server 2012 Standard (64-bit)

Discussion created by thomas.clchan on Mar 17, 2014
Latest reply on Mar 17, 2014 by xwang

I have created a test program to get PI Data.

 

Both development PC and web server are installed with 32-bit PI SDK. Development PC is installed 32-bit Windows and 32-bit Visual Studio.

 

It is okay to run in local development PC, but after it is deployed to a web server, the following error is found.

 

(The last line is obviously incorrect, since it is a local folder in development PC, not a folder in web server)

 

 

 

 

 

System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {3BCB2DC2-5F66-11D1-BD64-0060B0290178} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

 

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

 

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

 

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

 

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

 

   at System.Activator.CreateInstance(Type type)

 

   at GSARSDataExtraction.PIServer..ctor() in C:\Users\RCC3836\GSAR\GSARDevFolder\GSARSDataExtraction\GSARSDataExtraction\GSARSDataExtraction\Common\PIServer.vb:line 5

 

   at GSARSDataExtraction.GSARSDataExtraction..ctor() in C:\Users\RCC3836\GSAR\GSARDevFolder\GSARSDataExtraction\GSARSDataExtraction\GSARSDataExtraction\GSARSDataExtraction.asmx.vb:line 18

 

 

 

Regards,

 

Thomas

Outcomes