Click here to Skip to main content
16,005,038 members
Home / Discussions / C#
   

C#

 
Generalbluetooth Pin
Mridang Agarwalla16-Dec-04 22:06
Mridang Agarwalla16-Dec-04 22:06 
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 
I'm trying to create a 2nd AppDomain for handling remotingserver stuff. What am I doing wrong here:

AppDomainSetup info = new AppDomainSetup();
info.ApplicationBase = "file:///" + System.Environment.CurrentDirectory;
AppDomain dom = AppDomain.CreateDomain("DataHandler", null, info);
BindingFlags flags = (BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance);
ObjectHandle objh = dom.CreateInstance("CommunicationServer", "CCommunicationServer", false, flags, null, null, null, null, null);
Object obj = objh.Unwrap();
CCommunicationServer h = (CCommunicationServer)obj;
h.BeginRemoting();

Then I have the remoting server class which I have compiled as a dll:

public class CCommunicationServer : MarshalByRefObject
{
...
}

When I call dom.CreateInstance("...); I get an exception saying: Could not load type CCommunicationServer from assembly CommunicationServer.

Have I understod something wrong here? Should I use AppDomain.Load() or something? Can you please give me a basic example how to get a 2nd AppDomain running.

Thank you.
AnswerRe: How to create a 2nd AppDomain? Pin
Heath Stewart16-Dec-04 23:39
protectorHeath Stewart16-Dec-04 23:39 
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 

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.