[GH-ISSUE #604] Execute into memory using reflection #358

Open
opened 2026-02-27 15:50:01 +03:00 by kerem · 8 comments
Owner

Originally created by @moody2000 on GitHub (Apr 27, 2017).
Original GitHub issue: https://github.com/quasar/Quasar/issues/604

Hey , i wondering why cant load client bytes directly in memory using reflection and entrypoint

Originally created by @moody2000 on GitHub (Apr 27, 2017). Original GitHub issue: https://github.com/quasar/Quasar/issues/604 Hey , i wondering why cant load client bytes directly in memory using reflection and entrypoint
Author
Owner

@MaxXor commented on GitHub (May 1, 2017):

Executing the built client binary in memory should work without problems if that's what you mean.

<!-- gh-comment-id:298403955 --> @MaxXor commented on GitHub (May 1, 2017): Executing the built client binary in memory should work without problems if that's what you mean.
Author
Owner

@moody2000 commented on GitHub (May 2, 2017):

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.

<!-- gh-comment-id:298528135 --> @moody2000 commented on GitHub (May 2, 2017): 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.
Author
Owner

@moody2000 commented on GitHub (May 2, 2017):

Oslo tried many others methods to load but got the same error

<!-- gh-comment-id:298528405 --> @moody2000 commented on GitHub (May 2, 2017): Oslo tried many others methods to load but got the same error
Author
Owner

@yankejustin commented on GitHub (May 2, 2017):

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.

<!-- gh-comment-id:298616347 --> @yankejustin commented on GitHub (May 2, 2017): Without knowing the context of your situation, I suggest looking this up on Google instead. Some <a href="http://stackoverflow.com/questions/28616405/trouble-with-assembly-entrypoint-invoke-c">good looking search results</a> come up when searching for your solution.
Author
Owner

@moody2000 commented on GitHub (May 3, 2017):

despite my error differ from this thread error
i will try it and feedback

<!-- gh-comment-id:299046977 --> @moody2000 commented on GitHub (May 3, 2017): despite my error differ from this thread error i will try it and feedback
Author
Owner

@moody2000 commented on GitHub (May 3, 2017):

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

<!-- gh-comment-id:299055640 --> @moody2000 commented on GitHub (May 3, 2017): 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
Author
Owner

@EnricoVogt commented on GitHub (May 4, 2017):

Dim looks like VB.NET, not C#

<!-- gh-comment-id:299141682 --> @EnricoVogt commented on GitHub (May 4, 2017): Dim looks like VB.NET, not C#
Author
Owner

@ghost commented on GitHub (Dec 18, 2018):

AppDomain.CurrentDomain.Load(byt).EntryPoint.Invoke(Nothing, Nothing)

<!-- gh-comment-id:448086655 --> @ghost commented on GitHub (Dec 18, 2018): AppDomain.CurrentDomain.Load(byt).EntryPoint.Invoke(Nothing, Nothing)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Quasar#358
No description provided.