Toemsel / Network

C# Network Library

Home Page:https://push-force.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assembly doesnt exist when deploying on Android device

luky92 opened this issue · comments

The app that works perfectly when deployed on emulator but when deployed on device the connection closes with assembly doesnt exist error Note the packets are defined in the external lib both Android app and windows form server app reference tested both Net framework clasic lib and net standard lib but it doesn't work

Looks like the device sends empty assembly name in the registration packet investigating to figure out why

the cast in d HandleDefaultPackets(Packet packet) seems to be failing

Please provide a minimalistic example project illustrating the issue.

here is the striped down version just run the server app and android project remember to change ip

Please consider that you have personal information + licence keys within your provided example.
I did already download the example. You can take it offline any time.

thanks for info :) removed

image

There is no issue within the network lib. Please consider following points

  • Check the consolidated packages within the NuGet explorer. Make sure, that the server and client do have the same assemblies installed.
    image
  • Your client does use RSA or the default ConnectionContainer. However, your server always uses the default ServerConnectionContainer, without RSA.

image

image

Hence, on the emulator the client and server use the default config, without RSA.
On your device, the client uses RSA and the server no RSA. That isn't compatible.

I would suggest, that you use pre-compile statements to switch between RSA and none RSA containers. E.g.:

#if DEBUG
.ClientConnectionContainer(..); ServerConnectionContainer(...)

#if !DEBUG
.SecureClientConnectionContainer(); SecureServerConnectionContainer();

That way you only have to switch between Debug and release to enable RSA.

yep you are right sorry fo bodering and thank you for your help