Unable to connect with Server

  • 2 August 2007
  • 2 replies
  • 1 view

Badge +9

Hi All,


This is the exception message thrown by a windows form (ASP.NET 2.0) when I tried to start a process .


"A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)"


The code snippet is :


private

void K2TEST_Click(object sender, EventArgs e)



Connection cn = new Connection();


cn.Open("Server", "[;];Authentication=External;User=sourcecode;Password=");


SourceCode.K2ROM.

ProcessInstance pI = cn.CreateProcessInstance("K2R&DServerTest");


pI.DataFields[

"Temp"].Value = "101,102,103";


 


cn.StartProcessInstance(pI);


}


The exception was thrown in the statement


cn.Open("Server", "[;];Authentication=External;User=sourcecode;Password=");


I am unable to determine the cause.


Please guide.


Thanks and Regards.


2 replies

Badge +11

Hi sourcecode,


I would first try to specify the full namespace for the connections i.e.:


SourceCode.K2ROM.Connection cn = new SourceCode.K2ROM.Connection();


and then run K2Server in console mode to see if you get anything from the request.  Also make sure in K2.net 2003 Service Manager that K2Server runs on port 5252 - 'Edit K2.net Server Registration Properties...'.


 Regards,


Ockert

Badge +8

This might come over as silly, but just checking 🙂,


Did you use "Server" to be generic in the post or is that you actual K2.net Server Name?

Reply