I am currently working with a customer who has written a custom ASP.NET control which makes use of the EasyDAClient object.
The problem comes up when in design mode and using the property editor for the control. The code for the editor calls and displays an OpcServerDialog to allow server browsing, and for binding the control to a specific server.
When ShowDialog is called the following error is thrown:
"The type initializer for 'OpcLabs.EasyOpc.DataAccess.EasyDAClient' threw an exception"
Since the error is thrown in design mode and not debug/runtime I am not able to find any detailed exception details unfortunately.
I've seen a few other posts on the forum regarding the Visual C++ Libraries which I have downloaded and installed, and confirmed the correct versions are present.
I have a sample app that I am happy to share if there is an email I can send it to.
The problem comes up when in design mode and using the property editor for the control. The code for the editor calls and displays an OpcServerDialog to allow server browsing, and for binding the control to a specific server.
When ShowDialog is called the following error is thrown:
"The type initializer for 'OpcLabs.EasyOpc.DataAccess.EasyDAClient' threw an exception"
Since the error is thrown in design mode and not debug/runtime I am not able to find any detailed exception details unfortunately.
I've seen a few other posts on the forum regarding the Visual C++ Libraries which I have downloaded and installed, and confirmed the correct versions are present.
I have a sample app that I am happy to share if there is an email I can send it to.