scs icon indicating copy to clipboard operation
scs copied to clipboard

Remote method execution problem after library merge

Open ScarletKuro opened this issue 6 years ago • 1 comments

Lets Say you have Client and Server. If you merge Client with Scs and CommonLib(ScsService) with some ILMerge tool, then the method execution stops to work. I noticed that the DeserializationAppDomainBinder on server side is trying to find an not existing library. Like it's trying to find Client lib that got merged instead of Scs.dll. Is there way to bypass it?

ScarletKuro avatar Jul 02 '19 11:07 ScarletKuro

Nvm. Looks like changing it to this helped return AppDomain.CurrentDomain.GetAssemblies().Select(assembly => assembly.GetType(typeName)).FirstOrDefault(t => t != null);

ScarletKuro avatar Jul 02 '19 17:07 ScarletKuro