Author Topic: Any CPU error  (Read 1369 times)

gofito1984

  • Newbie
  • *
  • Posts: 4
    • View Profile
Any CPU error
« on: May 31, 2016, 01:34:11 PM »
Good Afternoon.
I'm writing from Spain.

I'm developing a Windows Form Application with Visual Studio, in C#, using AdvancedHMI DLLs.
If I select "target platform: x86", the application WORKS FINE, but when I select "target platform: Any CPU", I receive this error in runtime (in line "opcDaCom1.Subscribe (...)" :
" No se puede convertir el objeto COM del tipo 'System.__ComObject' al tipo de interfaz 'OpcRcw.Comn.IOPCServerList2'. Ocurrió un error de operación debido a que la llamada QueryInterface en el componente COM para la interfaz con IID '{9DD0B56C-AD9E-43EE-8305-487F3188BF7A}' generó el siguiente error: Clase no registrada (Excepción de HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."

Any help?

Thanks.


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Any CPU error
« Reply #1 on: May 31, 2016, 01:44:08 PM »
AdvancedHMI uses some OPC files needed when using an OPC server. These files only support x86, so if you set to Any CPU and try to build on an X64 system, it will cause errors.