Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: save picturebox.image into image field on database Pin
Saamir5-Sep-07 4:46
Saamir5-Sep-07 4:46 
QuestionXML Driven WinForm [modified] Pin
mark_key4-Sep-07 11:02
mark_key4-Sep-07 11:02 
AnswerRe: XML Driven WinForm Pin
Judah Gabriel Himango4-Sep-07 11:20
sponsorJudah Gabriel Himango4-Sep-07 11:20 
AnswerRe: XML Driven WinForm Pin
Judah Gabriel Himango4-Sep-07 13:04
sponsorJudah Gabriel Himango4-Sep-07 13:04 
QuestionSecond form always on top Pin
Le centriste4-Sep-07 10:33
Le centriste4-Sep-07 10:33 
AnswerRe: Second form always on top Pin
Giorgi Dalakishvili4-Sep-07 10:45
mentorGiorgi Dalakishvili4-Sep-07 10:45 
GeneralRe: Second form always on top Pin
Le centriste4-Sep-07 10:46
Le centriste4-Sep-07 10:46 
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 

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.