cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Newbie

System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

log below:

2016-06-22 15:19:00.044Z [L: Error] [T: 6] [U: SYSTEM] [O: com.thingworx.opcda.OpcDaClient] Error while initializing new OpcDaThing, or opening connection to Platform. : System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。     在 com.thingworx.communications.client.TwApiWrapper.twApi_Connect(UInt32 timeout, Int32 retries)     在 com.thingworx.communications.client.TwApiWrapper.Connect(UInt32 timeout, Int16 retries)     在 com.thingworx.communications.client.BaseClient.start()     在 com.thingworx.opcda.OpcDaClient.run()

11 REPLIES 11

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Hello Ling Zhou, we have an article which describes CS227473 How to configure the connection between ThingWorx and the OPC DA service.

Let me know if this helps.

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Your error message: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。     在  = Attempted to read or write protected memory . This is often an indication that other memory is corrupt . in

What kind of device are you attempting to connect with, and have you tested connecting to any other devices to see if the problem persists on those as well?

If you have the ability to open a support case I would do so.

Meghan

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Thank you Meghan. I want to know, does KEPware have to connect with device when connect to thingworx? I just want a DEMO, so I configured a Item and then disconnect the device.

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Thank you every much, is it have to be configured SSL? I set DisableEncryption to true is no OK ?

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Ling Zhou, You should not need an actual device connected to KEPServerEX to show connectivity to ThingWorx using the OPC DA Extension.

The current shipping version of KEPServerEX which is 5.20 has a built in agent to push data up to a ThingWorx instance. You would not need the OPC DA Extension if you use that version.

As for the error you are seeing, I also get that when I try to disable encryption and connect to a non SSL endpoint. I just leave encryption enable and use the self signed certificate.

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

So the problem is no SSL link, I understand, Thanks.

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Hi Dionne, other problem when I test BrowseItems service in OpcDaThing, there is a error like above, do you know why?

Unable to Invoke Service BrowseItems on OpcDaThing : null

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Ling Zhou, When I see that message it usually means I did not put in a proper filter or path.

In the Filter make sure you have an asterix

*

and for the path it should be something like

Channel1.Device1

Highlighted

Re: System.AccessViolationException occur when using OPC DA Edge connecting to KEPwareServerEX(V4.5)

Can you try adding * in the filter section to browse all items?