Click here to Skip to main content
15,914,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: app.config Pin
Curtis Schlak.13-Dec-05 5:36
Curtis Schlak.13-Dec-05 5:36 
GeneralRe: app.config Pin
fmardani13-Dec-05 5:37
fmardani13-Dec-05 5:37 
GeneralRe: app.config Pin
Curtis Schlak.13-Dec-05 5:40
Curtis Schlak.13-Dec-05 5:40 
GeneralRe: app.config Pin
fmardani13-Dec-05 5:57
fmardani13-Dec-05 5:57 
GeneralRe: app.config Pin
Curtis Schlak.13-Dec-05 6:08
Curtis Schlak.13-Dec-05 6:08 
GeneralRe: app.config Pin
fmardani13-Dec-05 6:22
fmardani13-Dec-05 6:22 
GeneralRe: app.config Pin
Curtis Schlak.13-Dec-05 6:32
Curtis Schlak.13-Dec-05 6:32 
QuestionProblem with deserialization Pin
Wjousts13-Dec-05 4:06
Wjousts13-Dec-05 4:06 
I'm having a problem that is really driving me nuts. The setup heres a little complicated, so please bare with me:
I have a dll that contains a class, let's call it Manager, it's job is to search a directory, find other dlls and search them for classes that implement a certain interface, lets call it ICalc. It uses Assembly.LoadFrom to do this. It maintains a list of all the classes it finds that implement ICalc (in an arraylist of Type objects) and returns information about those classes (name and version) to the client program. Manager also has a method, let's call it GetCalc, that will instantiate and return an object that implements ICalc of a type requested by the caller. So far so good, and this seems to work okay.
Now I have another dll that contains a class, lets call it MyCalc that implements ICalc. When MyCalc is instantiated it must instantiate a few other objects that are related to its function. Among these are a class that contains some settings, lets call it MySettings. These settings are actually serialized to the disk and deserialized again by MyCalc using a static method in MySettings, something like:
public static MySettings LoadSettings(string filename)
Hopefully, you are still following this. Now, I create a simple C# console application to test this out and everything works fine - great!! But here's the problem, I'm trying to use LabView[^] as the client for the Manager Dll and this is were I run into trouble. For some reason the deserialization no longer works and chokes with an "Invalid Cast" exception. Basically the line:
MySettings setting = (MySettings) MyFormatter.Deserialize(MyStream)
Doesn't work.
Does anybody have any clue why this might be? I'm really confused by this. I have a guy (a LabView developer) waiting for my DLL and I can't figure this out!
AnswerRe: Problem with deserialization Pin
Robert Rohde13-Dec-05 4:51
Robert Rohde13-Dec-05 4:51 
GeneralRe: Problem with deserialization Pin
Wjousts14-Dec-05 2:52
Wjousts14-Dec-05 2:52 
QuestionHow to get message from Queue? Pin
Rashid.Mahmood13-Dec-05 3:55
Rashid.Mahmood13-Dec-05 3:55 
QuestionC# and VTAPI ACTIVE X CONTROL Pin
CRASH7213-Dec-05 3:52
CRASH7213-Dec-05 3:52 
QuestionTest for Network Connection Pin
dbrenth13-Dec-05 3:47
dbrenth13-Dec-05 3:47 
AnswerRe: Test for Network Connection Pin
pitnu13-Dec-05 4:09
pitnu13-Dec-05 4:09 
AnswerRe: Test for Network Connection Pin
MarcelErz13-Dec-05 4:41
MarcelErz13-Dec-05 4:41 
GeneralRe: Test for Network Connection Pin
MarcelErz13-Dec-05 4:45
MarcelErz13-Dec-05 4:45 
GeneralRe: Test for Network Connection Pin
dbrenth13-Dec-05 7:21
dbrenth13-Dec-05 7:21 
QuestionC# in the Computer network Pin
richarding13-Dec-05 3:34
richarding13-Dec-05 3:34 
JokeRe: C# in the Computer network Pin
akyriako7813-Dec-05 3:42
akyriako7813-Dec-05 3:42 
AnswerRe: C# in the Computer network Pin
MarcelErz13-Dec-05 4:37
MarcelErz13-Dec-05 4:37 
GeneralRe: C# in the Computer network Pin
MarcelErz14-Dec-05 2:06
MarcelErz14-Dec-05 2:06 
AnswerRe: C# in the Computer network Pin
Judah Gabriel Himango13-Dec-05 4:41
sponsorJudah Gabriel Himango13-Dec-05 4:41 
GeneralRe: C# in the Computer network Pin
richarding18-Dec-05 23:56
richarding18-Dec-05 23:56 
GeneralRe: C# in the Computer network Pin
Judah Gabriel Himango19-Dec-05 4:00
sponsorJudah Gabriel Himango19-Dec-05 4:00 
QuestionMSVS 2005 team suite BETA2 sql connection problem. Pin
ashjas13-Dec-05 2:54
ashjas13-Dec-05 2:54 

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.