- Home /
Android, Xml Serialization and Web Services, trying to access kernel32 and config?
I use System.Web.Services pretty much following the wiki guide: http://wiki.unity3d.com/index.php/Webservices_In_Unity
These issues exist when deploying to Android using System.Xml and System.Web.Services. I have tried running 2.0 compatibility, and 4.6, I've grabbed every possible set of System.Web and System.Web.Services from the MonoBleedingEdge directories, I've tried using the csc.rsp, none of it is working and gives the same errors below.
This is the Xml Serialization class constructor trying to access kernel32 on ANDROID! for some godforsaken reason.... Same issue as others have found, years ago.... https://forum.unity.com/threads/system-xml-serialization-xmlserializer-gives-kernel32-dll-error-with-net-4-6.465563/
I've removed my local paths and application name for privacy.
2019-12-18 16:33:58.825 18600-18704/com.xxxxxxxx W/Unity: Plugins: Couldn't open kernel32, error: dlopen failed: library "kernel32" not found Microsoft.Win32.<>c:<.cctor>b__9_0() System.Lazy1:CreateValue() System.Lazy1:LazyInitValue() System.Lazy1:get_Value() System.Xml.Serialization.TempAssembly:LoadGeneratedAssembly(Type, String, XmlSerializerImplementation&) System.Xml.Serialization.XmlSerializer:.ctor(Type, String) System.Xml.Serialization.XmlSerializer:.ctor(Type) GameStateManager:get_UserAccount() (at Assets\Scripts\Level Manager Scripts\GameStateManager.cs:539) ClientProxyBase1:.ctor() (at Assets\Scripts\Services\ClientProxyBase.cs:96) LogClient:.ctor() (at Assets\Scripts\Services\LogClient.cs:12) DebugHelper:.cctor() (at Assets\Scripts\Misc\DebugHelper.cs:10) InitialiseGraphicSettings:Awake() (at Assets\Scripts\Level Manager Scripts\InitialiseGraphicSettings.cs:120)
The wsdl generated SoapHttpClientProtocol client side proxy classes is trying to access the local config which doesn't exist and fails...
I can't get the rest of this stack trace because the void HandleLog handler is not being called for the soap exception, and the only error message which is output is truncated.....
2-18 16:42:25.607 19933 20061 E Unity : ArgumentException: The specified path is not of a legal form (empty). 12-18 16:42:25.607 19933 20061 E Unity : at System.IO.Path.InsecureGetFullPath (System.String path) [0x00025] in <437ba245d8404784b9fbab9b439ac908>:0 12-18 16:42:25.607 19933 20061 E Unity : at System.IO.Path.GetFullPath (System.String path) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0 12-18 16:42:25.607 19933 20061 E Unity : at System.AppDomainSetup.GetAppBase (System.String appBase) [0x00041] in <437ba245d8404784b9fbab9b439ac908>:0 12-18 16:42:25.607 19933 20061 E Unity : at System.AppDomainSetup.get_ApplicationBase () [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0 12-18 16:42:25.607 19933 20061 E Unity : at System.AppDomain.get_BaseDirectory () [0x00006] in <437ba245d8404784b9fbab9b439ac908>:0 12-18 16:42:25.607 19933 20061 E Unity : at (wrapper remoting-invoke-with-check) System.AppDomain.get_BaseDirectory() 12-18 16:42:25.607 19933 20061 E Unity : at System.Web.Configuration.WebConfigurationHost.GetWebConfigFileName (System.String dir) [0x00063] in :0 12-18 16:42:25.607 19933 20061 E Unity : at System.Web.Configuration.WebConfigurationHost.GetStreamName (System.String configPath) [0x0005a] in :0 12-18 16:42:25.607 19933 20061 E Unity : at System.Configuration.Configuration.Init (System.Configurati
How are we supposed to consume Web/WCF services from Unity in 2019? Is this a test case that Unity is even looking at?
Any plans to support such a standard communications feature in Unity 2019?
You can't use C# without supporting C# back end services...
Can anyone from Unity give us a clear indication if you plan to support xml serialization and soap services with Unity 2019.3 and the 4.x framework or 2.0 standard framework?
This hasn't worked for years(2017 is the last version this works in), can we just assume you guys don't care about this and expect us all to use Rest/Json?
So we can at least plan for it..
Your answer
Follow this Question
Related Questions
Unexpected Data Received - Photon Server, XmlSerializer and Unity 0 Answers
how do i socket client server in unity? 0 Answers
android serialization weird path issue " IsolatedStorageException ", javascript 0 Answers
Rigidbody that two players can move/interact with over network? 1 Answer
Setting up a web service in Unity? 0 Answers