Professional OPC
Development Tools

logos

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.

C# Console Application Run As Windows Service Error on UA Client Connect

More
30 Nov 2017 15:19 #5702 by support
It is probably same as the issue described here: www.opclabs.com/forum/ua-com-connections-reconnections-certi...2257-opc-ua-using-php?start=20 , which is already fixed in the current QuickOPC version (2017.2).

There are also workarounds listed in the topics above.

Best regards

Please Log in or Create an account to join the conversation.

More
30 Nov 2017 10:52 #5701 by Scattolaro
I solve the problem:
I try to use "nssm" application (ver. 2.24) to create my service from my console application with OPC UA Client.
If I use the nssm 64 bit version It's work properly. It doesn't throw the exception when I start the service.

Thanks

Please Log in or Create an account to join the conversation.

More
30 Nov 2017 10:09 #5700 by Scattolaro
Sorry, the version of file "OpcLabs.EasyOpcUA.dll" is 5.35.442.1

Please Log in or Create an account to join the conversation.

More
30 Nov 2017 10:06 #5699 by support
I need version of one of the assemblies that start with OpcLabs.*.

Please Log in or Create an account to join the conversation.

More
30 Nov 2017 10:00 - 30 Nov 2017 10:01 #5698 by Scattolaro
The version of "Opc.Ua.Client.dll" file is 1.2.334.6
Last edit: 30 Nov 2017 10:01 by Scattolaro.

Please Log in or Create an account to join the conversation.

More
30 Nov 2017 09:56 #5697 by support
Which QuickOPC version and build are you using please?

Please Log in or Create an account to join the conversation.

More
30 Nov 2017 08:54 - 30 Nov 2017 08:59 #5696 by Scattolaro
When I run my console application as windows service the UA Client throws this exception:

Exception: System.ArgumentOutOfRangeException: La lunghezza non può essere minore di zero.Nome parametro: length in System.String.Substring(Int32 startIndex, Int32 length) in Opc.Ua.ApplicationConfiguration.GetFilePathFromAppConfig(String sectionName) in OpcLabs.EasyOpc.UA.Toolkit.AppConfigSdkConfigurationProvider.GetConfiguration(ApplicationInstance sdkApplicationInstance, ApplicationConfiguration& sdkApplicationConfiguration) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.MakeSdkApplicationConfiguration(ApplicationInstance sdkApplicationInstance, ApplicationConfiguration& sdkApplicationConfiguration) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.CreateSdkApplicationConfiguration(ApplicationInstance sdkApplicationInstance, ApplicationConfiguration& sdkApplicationConfiguration) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.CreateSdkApplicationInstance(ApplicationInstance& sdkApplicationInstance, ApplicationConfiguration& sdkApplicationConfiguration) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.MakeSdkApplicationInstance(ApplicationInstance& sdkApplicationInstance) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.InternalConnect() in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.Connect() in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.ExternalConnect() in OpcLabs.EasyOpc.UA.Engine.EasyUAEngine.BrowseNodes(UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, UABrowseParameters browseParameters, EasyUAAdaptableParameters adaptableParameters, Exception& exception, UANodeElementCollection& nodeElementCollection, List`1& warnings) in OpcLabs.EasyOpc.UA.EasyUAClient.InternalBrowseNodes(UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, UABrowseParameters browseParameters) in OpcLabs.EasyOpc.UA.EasyUAClient.<>c__DisplayClassb.<BrowseNodes>b__a() in OpcLabs.EasyOpc.UA.EasyUAClient.DisposeGuard[TResult](Func`1 func) in OpcLabs.EasyOpc.UA.EasyUAClient.DisposeGuardNotNull[TResult](Func`1 func) in OpcLabs.EasyOpc.UA.EasyUAClient.BrowseNodes(UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, UABrowseParameters browseParameters) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.BrowseDataNodes(IEasyUAClient easyUAClient, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.BrowseDataNodes(IEasyUAClient easyUAClient, UAEndpointDescriptor endpointDescriptor) in Qualitas.DeviceAppOPC.DataAccess.OPCserverCH.Open() in c:\Progetti\FDI_GIT\fdi\DeviceAppOPC\DataAccess\OPCserverCH.cs:riga 208(La lunghezza non può essere minore di zero.Nome parametro: length) Trace: in System.String.Substring(Int32 startIndex, Int32 length) in Opc.Ua.ApplicationConfiguration.GetFilePathFromAppConfig(String sectionName) in OpcLabs.EasyOpc.UA.Toolkit.AppConfigSdkConfigurationProvider.GetConfiguration(ApplicationInstance sdkApplicationInstance, ApplicationConfiguration& sdkApplicationConfiguration) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.MakeSdkApplicationConfiguration(ApplicationInstance sdkApplicationInstance, ApplicationConfiguration& sdkApplicationConfiguration) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.CreateSdkApplicationConfiguration(ApplicationInstance sdkApplicationInstance, ApplicationConfiguration& sdkApplicationConfiguration) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.CreateSdkApplicationInstance(ApplicationInstance& sdkApplicationInstance, ApplicationConfiguration& sdkApplicationConfiguration) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.MakeSdkApplicationInstance(ApplicationInstance& sdkApplicationInstance) in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.InternalConnect() in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.Connect() in OpcLabs.EasyOpc.UA.Toolkit.UAClientEngineBase.ExternalConnect() in OpcLabs.EasyOpc.UA.Engine.EasyUAEngine.BrowseNodes(UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, UABrowseParameters browseParameters, EasyUAAdaptableParameters adaptableParameters, Exception& exception, UANodeElementCollection& nodeElementCollection, List`1& warnings) in OpcLabs.EasyOpc.UA.EasyUAClient.InternalBrowseNodes(UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, UABrowseParameters browseParameters) in OpcLabs.EasyOpc.UA.EasyUAClient.<>c__DisplayClassb.<BrowseNodes>b__a() in OpcLabs.EasyOpc.UA.EasyUAClient.DisposeGuard[TResult](Func`1 func) in OpcLabs.EasyOpc.UA.EasyUAClient.DisposeGuardNotNull[TResult](Func`1 func) in OpcLabs.EasyOpc.UA.EasyUAClient.BrowseNodes(UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, UABrowseParameters browseParameters) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.BrowseDataNodes(IEasyUAClient easyUAClient, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.BrowseDataNodes(IEasyUAClient easyUAClient, UAEndpointDescriptor endpointDescriptor) in Qualitas.DeviceAppOPC.DataAccess.OPCserverCH.Open() in c:\Progetti\FDI_GIT\fdi\DeviceAppOPC\DataAccess\OPCserverCH.cs:riga 208;

Can you help me pleae?
Last edit: 30 Nov 2017 08:59 by Scattolaro.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.061 seconds