Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
QuestionHow to create MimeFilter in c# Pin
svt gdwl31-Aug-09 1:21
svt gdwl31-Aug-09 1:21 
QuestionEncrypt and Decrypt an assembly Pin
Member 444864731-Aug-09 1:19
Member 444864731-Aug-09 1:19 
AnswerRe: Encrypt and Decrypt an assembly Pin
Henry Minute31-Aug-09 2:24
Henry Minute31-Aug-09 2:24 
GeneralRe: Encrypt and Decrypt an assembly Pin
Member 444864731-Aug-09 17:31
Member 444864731-Aug-09 17:31 
QuestionOCR Pin
abbd31-Aug-09 0:18
abbd31-Aug-09 0:18 
AnswerRe: OCR Pin
monstale31-Aug-09 0:35
monstale31-Aug-09 0:35 
AnswerRe: OCR Pin
Rajesh R Subramanian31-Aug-09 0:50
professionalRajesh R Subramanian31-Aug-09 0:50 
QuestionRemoting server in Window Service Pin
puneet_shadija31-Aug-09 0:08
puneet_shadija31-Aug-09 0:08 
Hi All,

I have created a simple remoting server inside a Window Service as :

<pre>TcpChannel tcpChannel = new TcpChannel(8085);
                  ChannelServices.RegisterChannel(tcpChannel,true);
                  WellKnownServiceTypeEntry entry = new WellKnownServiceTypeEntry("RemotingWindowSrvc", "RemotingWindowSrvc.MailFormat", "MailFormat", WellKnownObjectMode.SingleCall);
                  RemotingConfiguration.RegisterWellKnownServiceType(entry);</pre>

Then we try and make call to this server in my client as:

<pre>private void GetRemoteObject()
            {
                  TcpChannel chan = new TcpChannel();
                  ChannelServices.RegisterChannel(chan);

                  MailFormat obj = (MailFormat)Activator.GetObject(typeof(MailFormat), "tcp://localhost:8085/MailFormat");

                  obj.sendUserRegistration("...");     
            }
      }</pre>

MailFormat: is the name of the Class, being called here.

But upon calling "obj.sendUserRegistration("...");", client hangs indefinitely.

please help me with this.

Thanks,

Puneet
AnswerRe: Remoting server in Window Service Pin
stancrm31-Aug-09 0:40
stancrm31-Aug-09 0:40 
GeneralRe: Remoting server in Window Service Pin
puneet_shadija31-Aug-09 19:37
puneet_shadija31-Aug-09 19:37 
Questionsplit in C# Pin
rummer30-Aug-09 23:41
rummer30-Aug-09 23:41 
AnswerRe: split in C# Pin
stancrm30-Aug-09 23:47
stancrm30-Aug-09 23:47 
AnswerRe: split in C# Pin
Member 321664631-Aug-09 0:02
Member 321664631-Aug-09 0:02 
GeneralRe: split in C# Pin
OriginalGriff31-Aug-09 0:14
mveOriginalGriff31-Aug-09 0:14 
GeneralRe: split in C# Pin
Luc Pattyn31-Aug-09 0:43
sitebuilderLuc Pattyn31-Aug-09 0:43 
GeneralRe: split in C# Pin
dan!sh 31-Aug-09 0:48
professional dan!sh 31-Aug-09 0:48 
AnswerRe: split in C# Pin
wjp_auhtm31-Aug-09 0:11
wjp_auhtm31-Aug-09 0:11 
GeneralRe: split in C# Pin
Henry Minute31-Aug-09 2:29
Henry Minute31-Aug-09 2:29 
GeneralRe: split in C# Pin
wjp_auhtm31-Aug-09 16:42
wjp_auhtm31-Aug-09 16:42 
General[Message Deleted] Pin
wjp_auhtm30-Aug-09 23:33
wjp_auhtm30-Aug-09 23:33 
GeneralRe: I want to learn English ,somebody wants to learn Chinese? Pin
Hristo-Bojilov30-Aug-09 23:41
Hristo-Bojilov30-Aug-09 23:41 
GeneralRe: I want to learn English ,somebody wants to learn Chinese? Pin
wjp_auhtm30-Aug-09 23:53
wjp_auhtm30-Aug-09 23:53 
GeneralRe: I want to learn English ,somebody wants to learn Chinese? Pin
stancrm30-Aug-09 23:41
stancrm30-Aug-09 23:41 
GeneralRe: I want to learn English ,somebody wants to learn Chinese? Pin
wjp_auhtm30-Aug-09 23:51
wjp_auhtm30-Aug-09 23:51 
AnswerRe: I want to learn English ,somebody wants to learn Chinese? Pin
Richard MacCutchan31-Aug-09 3:28
mveRichard MacCutchan31-Aug-09 3:28 

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.