Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- General Issues, Building
- Can't run when target platform is x86 or Any CPU with Perfer 32-bit checked
Can't run when target platform is x86 or Any CPU with Perfer 32-bit checked
Regards
Please Log in or Create an account to join the conversation.
Would you be able to provide an older version which does not rely on the 3rd party library causing this problem? and I will install the prerequisites myself.
Please Log in or Create an account to join the conversation.
The problem seems to be related to loading the mixed-mode assembly (written in C++/CLI) that does the actual OPC communication. There are two of them - one for x86, one for x86. And, they require a corresponding set of Microsoft Visual C++ runtime libraries be present on the system. In order to save our users from having to install these redistributables, we use a special approach that involves "virtualizing" the necessary files in memory. We use a 3rd party library for that, and it looks like that there is a native code exception, possibly in that library, that takes the whole process down immediately. What precisely happens, and why only on your systems, I do not know at the moment.
The library is not under our control, and we cannot even reproduce the problem here. We can try to contact the authors of the library for help.
I assume you don't happen to have a virtual machine image with this problem present?
Regards
Please Log in or Create an account to join the conversation.
1. I am using Windows 8.1 Pro with 64-bit OS.
2. Yes. I have tried try/catch but it didn't catch any exception. Instead, it simply exits on this line "var client = new EasyDAClient();"
3. I compared the debugger outputs. There seems to be a problem with loading App_Web_OpcLabs.EasyOpcClassicRaw.x86.dll. Please see the debugger outputs below.
Target platform set to x64(no problem):
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero2\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero2.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassic.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BaseLibExtensions.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicInternal.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BaseLib.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicNative.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicNetApi.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BoxVC120Redist.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\BoxedAppSDK.Managed.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\App_Web_OpcLabs.EasyOpcClassicRaw.amd64.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcNetApi.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpc.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BoxOpcCorePS.dll'
Target platform set to x86(problem occurs):
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero2\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero2.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassic.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BaseLibExtensions.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicInternal.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BaseLib.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicNative.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicNetApi.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BoxVC120Redist.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\BoxedAppSDK.Managed.dll'
The program '[7008] WpfApplication1.vshost.exe: Managed (v4.0.30319)' has exited with code -1073741790 (0xc0000022)
4. C# in VS2013.
The same problem occurs on my colleague's laptop too with the same development environment.
Please Log in or Create an account to join the conversation.
Some questions:
1. Which Windows version are you using? (and, I assume it is a 64-bit system, right?)
2. Have you tried to put try/catch around the problematic statement and see if there is an exception?
3. Have you tried to look at/capture the contents of the debugger Output window to see whether there aren't any interesting messages?
4. Which version of Visual Studio are you using? Are you developing in C#?
Thank you
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- General Issues, Building
- Can't run when target platform is x86 or Any CPU with Perfer 32-bit checked