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-UA in .NET
- Connections, Reconnections, Certificates
- C# Console Application Run As Windows Service Error on UA Client Connect
C# Console Application Run As Windows Service Error on UA Client Connect
There are also workarounds listed in the topics above.
Best regards
Please Log in or Create an account to join the conversation.
- Scattolaro
- Topic Author
- Offline
- Platinum Member
- Posts: 35
- Thank you received: 1
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.
- Scattolaro
- Topic Author
- Offline
- Platinum Member
- Posts: 35
- Thank you received: 1
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Scattolaro
- Topic Author
- Offline
- Platinum Member
- Posts: 35
- Thank you received: 1
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Scattolaro
- Topic Author
- Offline
- Platinum Member
- Posts: 35
- Thank you received: 1
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?
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Connections, Reconnections, Certificates
- C# Console Application Run As Windows Service Error on UA Client Connect