- Posts: 31
- Thank you received: 3
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.
Intrinsic Component Configuration
Basically anything that has to do with QuickOPC objects should rather be avoided.
The above was the problem for me. I was adding an event handler for the client's LogEntry event as below just before setting up the config file:
Once put the config file init code first things began behaving as expected. Thanks much for the clues.
Please Log in or Create an account to join the conversation.
it works for me. And, as far as I can tell, my code looks like your code. So, there must be some hidden difference.
I am attaching my full project.
Gotchas to look for:
1) Don't you have something in your code that would cause the static host be built earlier, before the code execution reaches the code you listed? Basically anything that has to do with QuickOPC objects should rather be avoided.
2) Is the .INI file actually alongside the EXE? This one got me too - I forgot to set "Copy to output directory" property on the INI file in the VS project originally.
Best regards
Please Log in or Create an account to join the conversation.
I moved the above line to the bottom of the config init method, started a new debug session, and the EnsureDataIntegrity property still remains false as shown in the attached screenshot.
Please Log in or Create an account to join the conversation.
I have not checked it thoroughly, but one thing already stands out: Why do you have this line
at all, and, if you need it, why *before* configuring the "static host"?
This line causes first access to the security parameters, which will 1) initialize them to hard-coded default values, and then 2) overwrite them with the values from configurations set in the static host *at that point*. This will never be repeated then. So, the .INI file will not be considered.
Move this line after the static configuration.
Best regards
Please Log in or Create an account to join the conversation.
And here is the initialization code to get it working:
In case it helps, here is a log entry from my application after the config file init code above completes:
When I run the final line of my init code above, the SecurityParameters.EnsureDataIntegrity property remains false (the default). I expected to see this property change to true instead. Would you mind checking to make sure I've not done something obviously wrong here? Thanks much for the guidance.
Please Log in or Create an account to join the conversation.