Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote method execution problem after library merge #41

Open
ScarletKuro opened this issue Jul 2, 2019 · 1 comment
Open

Remote method execution problem after library merge #41

ScarletKuro opened this issue Jul 2, 2019 · 1 comment

Comments

@ScarletKuro
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant