Click here to Skip to main content
15,888,287 members
Home / Discussions / C#
   

C#

 
GeneralRe: finding error [modified] Pin
C#Coudou3-Apr-08 20:08
C#Coudou3-Apr-08 20:08 
QuestionHow to create a keypress event on a form? Pin
Silvyster3-Apr-08 15:40
Silvyster3-Apr-08 15:40 
GeneralRe: How to create a keypress event on a form? Pin
CodingYoshi3-Apr-08 16:17
CodingYoshi3-Apr-08 16:17 
GeneralRe: How to create a keypress event on a form? Pin
Silvyster3-Apr-08 16:39
Silvyster3-Apr-08 16:39 
GeneralRe: How to create a keypress event on a form? Pin
CodingYoshi3-Apr-08 16:50
CodingYoshi3-Apr-08 16:50 
GeneralRe: How to create a keypress event on a form? Pin
Vikram A Punathambekar3-Apr-08 19:29
Vikram A Punathambekar3-Apr-08 19:29 
GeneralXNA Publish [modified] Pin
MasterSharp3-Apr-08 14:48
MasterSharp3-Apr-08 14:48 
General.NET Remoting Pin
CodingYoshi3-Apr-08 13:22
CodingYoshi3-Apr-08 13:22 
Hi,

I have the following:

namespace Server.Layer1
{
public class BaseClass : MarshallByRefObject
{
public enum SomeEnum
{
Zero = 0,
One = 1
}

abstract public IMyInterface CreateImplmentor(SomeEnum anEnum);
}
}

Here is IMyInterface

namespace Server.Layer2
{
public interface IMyInterface
{
bool Save(Student aStudent);
event AnEventHandler SomethingHappened;
}
public delegate void SomethingHappened(object sender, EventInfo e);
}

I have registered the class which implements the BaseClass functionality and register it using a
console application host. Compiles fine.

I have a client but when it connects to BaseClass, exception is thrown at this line:

BaseClass classReceived = (BaseClass ) RemotingServices.Connect(typeof(BaseClass),
"http://localhost:65100/RemoteClass");

Exception is: "Trying to create a proxy to an unbound type."


Student is Serializable. BaseClass is MarshalByRefObject and so is the class which implements the IMyInterface. I am not sure what the problem could be. If a class inherits from MarshalByRefObject and has delegates or events, do they need any special attributes?

Please help,

Thanks
QuestionRunning C# application in memory only Pin
Lukas Holota3-Apr-08 10:21
Lukas Holota3-Apr-08 10:21 
GeneralRe: Running C# application in memory only Pin
led mike3-Apr-08 10:25
led mike3-Apr-08 10:25 
GeneralRe: Running C# application in memory only Pin
Giorgi Dalakishvili3-Apr-08 10:26
mentorGiorgi Dalakishvili3-Apr-08 10:26 
GeneralRe: Running C# application in memory only Pin
Skippums3-Apr-08 10:42
Skippums3-Apr-08 10:42 
GeneralRe: Running C# application in memory only Pin
PIEBALDconsult3-Apr-08 11:02
mvePIEBALDconsult3-Apr-08 11:02 
GeneralCan't seem to get an event to be consumed Pin
GuyThiebaut3-Apr-08 10:13
professionalGuyThiebaut3-Apr-08 10:13 
GeneralRe: Can't seem to get an event to be consumed Pin
led mike3-Apr-08 10:34
led mike3-Apr-08 10:34 
AnswerSolved Pin
GuyThiebaut3-Apr-08 10:53
professionalGuyThiebaut3-Apr-08 10:53 
QuestionHow to check This Whole Number ? Pin
pakpatel3-Apr-08 9:33
pakpatel3-Apr-08 9:33 
AnswerRe: How to check This Whole Number ? Pin
pmarfleet3-Apr-08 9:41
pmarfleet3-Apr-08 9:41 
AnswerRe: How to check This Whole Number ? Pin
half-life3-Apr-08 9:44
half-life3-Apr-08 9:44 
GeneralRe: How to check This Whole Number ? Pin
gspiteri3-Apr-08 11:39
gspiteri3-Apr-08 11:39 
GeneralRe: How to check This Whole Number ? Pin
half-life3-Apr-08 11:44
half-life3-Apr-08 11:44 
GeneralRe: How to check This Whole Number ? Pin
gspiteri3-Apr-08 12:46
gspiteri3-Apr-08 12:46 
AnswerRe: How to check This Whole Number ? Pin
sarvesh.upadhyay3-Apr-08 23:54
professionalsarvesh.upadhyay3-Apr-08 23:54 
GeneralRead Ini File Pin
half-life3-Apr-08 9:30
half-life3-Apr-08 9:30 
GeneralRe: Read Ini File Pin
Luc Pattyn3-Apr-08 9:51
sitebuilderLuc Pattyn3-Apr-08 9:51 

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.