Hi, I'm working to an insane deadline (two days from posting this message!) and posting to this forum for inspiration. It's my first post to these forums so apologies if its directed to the wrong place.
I've built a PC standalone self executable in Unity3 that consumes a .net SOAP webservice. Everything builds fine in the Unity editor and the standalone executable file runs fine on Windows 7 (SP1). The application communicates correctly with the webservice (this web service just takes a string input and returns a random string in response).
The problem is when I try the .exe on another PC. The application crashes when trying to communicate with the .net service. I've tried enabling 'script debugging' and looked at the output trace. The standalone .exe gets as far as communicating then crashes - with no helpful error messages - it just stops logging. If I move the .exe back to the PC that it was developed on, all is fine!?!
I've looked over the forums and checked I've performed the following:
The application is NOT being used as a webplayer (.unity3D) - so the web-player sandbox isn't the cause.
I've built the wsdl stub class using the Visual Studio command line prompt: `wsdl -out:VPDentistv01.cs /protocol:SOAP12 http://www.myserver.com/mywebservice.asmx` (I've also used /protocol:SOAP)
I've tried communicating with the stub/web service by wraping it into another .net class, that is compiled as a dll (.net 2.0). The dll is placed in the Plugin folder and is present in the Plugin folder of the build.
I'm building with the full .net library, not the subset.
The test PC I have is also running Win7 SP1 operating system with .net 3.5 framework. I've disabled firewall and anti-virus (yes I'm that desperate!) to check its not blocking communication with the web-service.
I'm out of ideas. I am new to Unity (5 days experience so far) so I've likely missed somethig basic. What I can't understand is why the .exe works on the PC I develop with but not on another PC running the same environment.
I'm aware that its best to post my code as an example, but to be honest I don't think the code is faulty - as its builds and executes as a self executable ok on my dev pc. It seems its a build setting or security / sandbox setting I'm missing.
PS: Not sure if this is significant, but I develop on a MacBook Pro using boot camp. I have Unity installed on the Windows 7 partition of the MacBook where the .exe works fine. However on the Mac partition, a the .app fails (on the same machine).
Any help, or ideas - much appreciated!