Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: Second form always on top Pin
Giorgi Dalakishvili4-Sep-07 10:50
mentorGiorgi Dalakishvili4-Sep-07 10:50 
GeneralRe: Second form always on top Pin
Le centriste4-Sep-07 10:51
Le centriste4-Sep-07 10:51 
GeneralRe: Second form always on top Pin
Christian Graus4-Sep-07 10:50
protectorChristian Graus4-Sep-07 10:50 
GeneralRe: Second form always on top Pin
Le centriste4-Sep-07 10:53
Le centriste4-Sep-07 10:53 
QuestionPlugin Interface Architecture and Invalid Cast Exceptions Pin
gerdhub4-Sep-07 10:03
gerdhub4-Sep-07 10:03 
AnswerRe: Plugin Interface Architecture and Invalid Cast Exceptions Pin
Judah Gabriel Himango4-Sep-07 11:25
sponsorJudah Gabriel Himango4-Sep-07 11:25 
QuestionRe: Plugin Interface Architecture and Invalid Cast Exceptions Pin
gerdhub4-Sep-07 12:30
gerdhub4-Sep-07 12:30 
AnswerRe: Plugin Interface Architecture and Invalid Cast Exceptions Pin
Judah Gabriel Himango4-Sep-07 13:13
sponsorJudah Gabriel Himango4-Sep-07 13:13 
Aha, now I understand.

First question is obvious: why is inputObject method taking an object, and not a objectLib.myClass object? My bet is, if you changed the parameter to type objectLib.myClass, the issue will resolve itself through compiler errors leading you to the real problem.

As far as the real problem goes, 2 possibilities come to mind. The first is versioning issues: is the remote process that invokes inputObject built with the exact same version of the object library? Perhaps you could check this by seeing if myObject.GetType().Assembly == testClass.GetType().Assembly My guess is that the assemblies don't match either, which could indicate different versions of the same assembly; e.g. Main App is using objLib version 2, but the remote process is using objLib version 1.

What I recommend here is making both the main program, the remote process (server?), the plugin dll(s) and the object library all be single projects but under a single solution in Visual Studio, then just reference the projects as needed.

The other thing that comes to mind is AppDomain weirdness. Unfortunately, I'm not experienced with AppDomains enough to give you any meaningful help. The most I can say is, I'm doing something similar to what you're doing (e.g. having a remote process pass a shared object to another process, and it does indeed work).


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Roman Catholic Relevance?
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: Plugin Interface Architecture and Invalid Cast Exceptions Pin
gerdhub4-Sep-07 13:24
gerdhub4-Sep-07 13:24 
AnswerRe: Plugin Interface Architecture and Invalid Cast Exceptions Pin
gerdhub4-Sep-07 22:36
gerdhub4-Sep-07 22:36 
AnswerRe: Plugin Interface Architecture and Invalid Cast Exceptions Pin
Skippums4-Sep-07 13:19
Skippums4-Sep-07 13:19 
AnswerRe: Plugin Interface Architecture and Invalid Cast Exceptions Pin
Skippums4-Sep-07 12:00
Skippums4-Sep-07 12:00 
GeneralRe: Plugin Interface Architecture and Invalid Cast Exceptions Pin
gerdhub4-Sep-07 12:32
gerdhub4-Sep-07 12:32 
QuestionLostfocus Pin
Assaf824-Sep-07 8:53
Assaf824-Sep-07 8:53 
AnswerRe: Lostfocus Pin
Christian Graus4-Sep-07 9:05
protectorChristian Graus4-Sep-07 9:05 
GeneralRe: Lostfocus Pin
Assaf824-Sep-07 9:16
Assaf824-Sep-07 9:16 
GeneralRe: Lostfocus Pin
Christian Graus4-Sep-07 9:23
protectorChristian Graus4-Sep-07 9:23 
GeneralRe: Lostfocus Pin
Assaf824-Sep-07 9:24
Assaf824-Sep-07 9:24 
GeneralRe: Lostfocus Pin
Urs Enzler4-Sep-07 21:31
Urs Enzler4-Sep-07 21:31 
Questionpassing a collection of objects Pin
jon-804-Sep-07 8:35
professionaljon-804-Sep-07 8:35 
AnswerRe: passing a collection of objects Pin
Christian Graus4-Sep-07 8:50
protectorChristian Graus4-Sep-07 8:50 
GeneralRe: passing a collection of objects Pin
jon-804-Sep-07 12:49
professionaljon-804-Sep-07 12:49 
Questiondraw on transparent form Pin
greekius4-Sep-07 8:06
greekius4-Sep-07 8:06 
AnswerRe: draw on transparent form Pin
Spacix One4-Sep-07 8:55
Spacix One4-Sep-07 8:55 
QuestionCapturing every minimize and restore Pin
Spacix One4-Sep-07 6:37
Spacix One4-Sep-07 6:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.