Exception in OPCUAConnection.Connect on Android
Hi all!
I am using the OPCUA4Unity asset in my project. When I run it on android devices an exception is thrown in game4automation.OPCUAConnection.Connect(). Here is the full output:
The type initializer for 'Opc.UaFx.Client.OpcClient' threw an exception. at game4automation.OPCUAConnection.Connect () [0x00000] in <00000000000000000000000000000000>:0 at game4automation.OPCUA_Interface.Connect () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.Logger:Log(LogType, Object) game4automation.OPCUA_Interface:Connect()
I am able to run it in Unity Editor aswell as Win Standalone App. I am also able to connect with another OPC UA client from the same android device to the server.Is Android not supported?
Please let me know if you need additional infos!
JG
Answer
Hi, we tested it also with android and it shoudl workl.
Are you compiling with ILCPP and are you having .Net20 compatibility turned on. Are you allowing Internet Access for your Android Device?
Thomas
Thanks for the quick response!
Yes IL2CPP, Unity 2018.3.12f1 (due to other dependcies) and .Net20.
Let me add some other network stuff to the app to check if networking is ok!
Hmm, just updated to Unity 2019.1.1f1 and the exception is gone. Althoug, downgrading to 2018 did not reproduce it either. So, I guess it was a project configuration problem after all.
Thank you for your help!
Customer support service by UserEcho
Hi, we tested it also with android and it shoudl workl.
Are you compiling with ILCPP and are you having .Net20 compatibility turned on. Are you allowing Internet Access for your Android Device?
Thomas