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

C#

 
GeneralInterfaces...duhhh! Pin
Mridang Agarwalla16-Dec-04 21:52
Mridang Agarwalla16-Dec-04 21:52 
GeneralRe: Interfaces...duhhh! Pin
Heath Stewart16-Dec-04 23:29
protectorHeath Stewart16-Dec-04 23:29 
GeneralRe: Interfaces...duhhh! Pin
Skynyrd16-Dec-04 23:30
Skynyrd16-Dec-04 23:30 
GeneralRe: Interfaces...duhhh! Pin
Heath Stewart17-Dec-04 0:16
protectorHeath Stewart17-Dec-04 0:16 
GeneralRe: Interfaces...duhhh! Pin
Stefan Troschuetz16-Dec-04 23:39
Stefan Troschuetz16-Dec-04 23:39 
GeneralRe: Interfaces...duhhh! Pin
Sebastian Schneider17-Dec-04 0:09
Sebastian Schneider17-Dec-04 0:09 
QuestionHow to create a 2nd AppDomain? Pin
kosjanne16-Dec-04 21:47
kosjanne16-Dec-04 21:47 
AnswerRe: How to create a 2nd AppDomain? Pin
Heath Stewart16-Dec-04 23:39
protectorHeath Stewart16-Dec-04 23:39 
First of all, don't prefix your classes with "C". This is inconsistent with the .NET Framework. A good RAD (rapid application development) environment requires consistency. Read the Naming Guidelines[^] for more details. Hungarian notation is obsolete in the .NET Framework naming conventions (and CLI).

Is the CCommunicationServer class the fully-qualified class name? If it is defined within a namespace you must specify that as well. If you're getting a TypeLoadException then that indicates the assembly was loaded but the Type (your class) was not found. AppDomain.CreateInstance throws the FileNotFoundException when the assembly isn't resolvable. The documentation indicates as much.

You might also consider setting the AppDomainSetup.ConfigurationFile property to allow your application to use a .config file. These are more important than using them for Remoting configuration data as I mentioned in a previous post to you. You can also redirect assembly bindings and configure other runtime settins as well. It definitely leaves you open to other possibilities. And, once again, configuring your remoting server via a configuration file is far more flexible than hard-coding it. Read about the Remoting Settings Schema[^] in the .NET Framework SDK for more details.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: How to create a 2nd AppDomain? Pin
kosjanne17-Dec-04 0:07
kosjanne17-Dec-04 0:07 
GeneralRe: How to create a 2nd AppDomain? Pin
Heath Stewart17-Dec-04 0:21
protectorHeath Stewart17-Dec-04 0:21 
Generalfinding the program files directory Pin
Mridang Agarwalla16-Dec-04 21:39
Mridang Agarwalla16-Dec-04 21:39 
GeneralRe: finding the program files directory Pin
Mathew Hall16-Dec-04 22:36
Mathew Hall16-Dec-04 22:36 
Questiona problem of code pucker ? Pin
sssa200016-Dec-04 21:32
sssa200016-Dec-04 21:32 
GeneralAutocomplete Pin
Mridang Agarwalla16-Dec-04 21:28
Mridang Agarwalla16-Dec-04 21:28 
Generaltriggering events by code Pin
Mridang Agarwalla16-Dec-04 21:22
Mridang Agarwalla16-Dec-04 21:22 
GeneralRe: triggering events by code Pin
Jay Shankar16-Dec-04 22:43
Jay Shankar16-Dec-04 22:43 
GeneralRe: triggering events by code Pin
Mridang Agarwalla19-Dec-04 23:49
Mridang Agarwalla19-Dec-04 23:49 
GeneralRe: triggering events by code Pin
Jay Shankar20-Dec-04 13:41
Jay Shankar20-Dec-04 13:41 
Generalwindow class name Pin
NikoTanghe16-Dec-04 20:37
NikoTanghe16-Dec-04 20:37 
GeneralRe: window class name Pin
Heath Stewart16-Dec-04 23:57
protectorHeath Stewart16-Dec-04 23:57 
GeneralEvents problem in C# Forms Pin
raosundar16-Dec-04 18:55
raosundar16-Dec-04 18:55 
GeneralRe: Events problem in C# Forms Pin
Jay Shankar16-Dec-04 19:41
Jay Shankar16-Dec-04 19:41 
GeneralSyntax highlighting... please help! Pin
16-Dec-04 15:58
suss16-Dec-04 15:58 
GeneralRe: Syntax highlighting... please help! Pin
Heath Stewart16-Dec-04 23:48
protectorHeath Stewart16-Dec-04 23:48 
Generaladding command button column to ListViewControl Pin
ronin177016-Dec-04 15:19
ronin177016-Dec-04 15:19 

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.