Quasar
Quasar copied to clipboard
Execute into memory using reflection
Hey , i wondering why cant load client bytes directly in memory using reflection and entrypoint
Executing the built client binary in memory should work without problems if that's what you mean.
i used this code to load
AppDomain.CurrentDomain.Load(byt).EntryPoint.Invoke(Nothing, New Object() {})
and got this error
An unhandled exception of type 'System.Reflection.TargetParameterCountException' occurred in mscorlib.dll Additional information: Parameter count mismatch.
Oslo tried many others methods to load but got the same error
Without knowing the context of your situation, I suggest looking this up on Google instead. Some good looking search results come up when searching for your solution.
despite my error differ from this thread error i will try it and feedback
sorry for annoying you but still not working with reflection
Dim args As [Object]() = New [Object](0) {} args(0) = New [String](-1) {} AppDomain.CurrentDomain.Load(byt).EntryPoint.Invoke(Nothing, args)
this the code i used
Dim looks like VB.NET, not C#
AppDomain.CurrentDomain.Load(byt).EntryPoint.Invoke(Nothing, Nothing)