c# - mono in unity 3d and .net remoting -


i working on unity project need work remoting client. have created interface class , using remoting server in other unity project.

while server working without problems, creation of client fails following exception:

system.typeinitializationexception: exception thrown type initializer system.runtime.remoting.channels.socketcache ---> system.notimplementedexception: requested feature not implemented. @ system.threading.threadpool.unsaferegisterwaitforsingleobject (system.threading.waithandle waitobject, system.threading.waitortimercallback callback, system.object state, timespan timeout, boolean executeonlyonce) [0x00000] in :0

my code client:

myremotableobject remoteobject;  void awake () {     try     {         tcpchannel chan = new tcpchannel();         channelservices.registerchannel(chan, false);         remoteobject = (myremotableobject)activator.getobject(typeof(myremotableobject), "tcp://localhost:124/targetshootermenu");     }     catch (exception e)     {         debug.logerror(e.tostring());     } .... 

does know how solve problem? according mono faq, mono should have remoting support. workin unity 3.5.1 (should have mono 2.6.3) on windows 7 x64 professional machine.

thanks in advance

i using unity exact same thing.

first thing have change player api compatibility level ".net 2.0 subset" ".net 2.0"

next have 2.0 mono library "system.runtime.remoting.dll" monodevelop

mine located @ "/applications/unity/monodevelop.app/contents/frameworks/mono.framework/libraries/mono/2.0/system.runtime.remoting.dll"

place "assets/plugins" folder , unity take care of dragging out rest of libraries.

from on out, seems remoting works without hitch :)

if add remoting dll , build find error "but dll not allowed included or not found" still using ".net 2.0 subset"


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -