Click here to Skip to main content
15,889,899 members

Comments by Rahul saraswat (Top 4 by date)

Rahul saraswat 13-May-14 1:06am View    
I have applied all the things on my system related to IPC, but still unable to resolve. Even facing same problem with Crystal report viewer, when I click print button inside the Crystal Report Viewer, i got the same message "The RPC Server is unavailable".
Rahul saraswat 3-Sep-12 8:25am View    
Hi,
Thank you for reply.C i am using IPCChannel for remoting under the namespace of System.Runtime.Remoting.Channels.Ipc. and i have made two applications one is server and another is client.I have registered IPCChannel in server with
Portname(9090). server is other system than client. and now i run server. and when i try to connect my client application to server. then i get an erroe...

"Failed to connect an Ipc port"

here is my code with BL part:

//This is my BL part
namespace RTMSyncStatusLib
{
public interface IRTMSyncStatus
{
void SetServiceStatus(string status);
string GetServiceStatus();
}
public class RTMSyncStatus : MarshalByRefObject, IRTMSyncStatus
{
private string ServiceStatus = string.Empty;
public void SetServiceStatus(string status)
{
ServiceStatus = status;
}
public string GetServiceStatus()
{
return ServiceStatus;
}
}
}

//This is my server code
IpcChannel channel = new IpcChannel("192.168.2.207:9090");
ChannelServices.RegisterChannel(channel, false);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(RTMSyncStatusLib.RTMSyncStatus), "RTMRemoteStatus", WellKnownObjectMode.Singleton);
Console.WriteLine("RTMSync Ststus Server is ready at "+DateTime.Now.ToString());
Console.ReadLine();

//This is my client Part
IpcChannel ipcChannel = new IpcChannel();
ChannelServices.RegisterChannel(ipcChannel, false);
objRTMStatus = (RTMSyncStatusLib.IRTMSyncStatus)Activator.GetObject(typeof(RTMSyncStatusLib.IRTMSyncStatus), "ipc://192.168.2.207:9090/RTMRemoteStatus");
if (objRTMStatus != null)
{
timerRTM.Start();
}
else
{
MessageBox.Show("Any Problem Occured! or RTMSync Status Server is not running!");
}

plz c my code. and help me.

Thanks
Rahul saraswat 14-Jul-12 6:45am View    
I am very thankful to you. but, how can i use.....

Please help me.

Regards
Rahul
Rahul saraswat 18-Jun-12 6:21am View    
no,please tell me only that How can i get value of all controls on that page after starting timer. When I start timer before filling all textbox values, i dont get text of any textBox after fired of Elapsed event. when i start timer after filling all contols on page, i get all values of all controls after firing Elapsed event.