Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting Strings to Hex Pin
Dario Solera3-Oct-05 7:06
Dario Solera3-Oct-05 7:06 
GeneralRe: Converting Strings to Hex Pin
Guinness4Strength3-Oct-05 8:43
Guinness4Strength3-Oct-05 8:43 
GeneralRe: Converting Strings to Hex Pin
Dario Solera3-Oct-05 9:08
Dario Solera3-Oct-05 9:08 
GeneralRe: Converting Strings to Hex Pin
Guinness4Strength3-Oct-05 9:12
Guinness4Strength3-Oct-05 9:12 
GeneralRe: Converting Strings to Hex Pin
Dario Solera4-Oct-05 5:25
Dario Solera4-Oct-05 5:25 
QuestionISerializable problems Pin
g00fyman3-Oct-05 3:53
g00fyman3-Oct-05 3:53 
AnswerRe: ISerializable problems Pin
Robert Rohde3-Oct-05 7:27
Robert Rohde3-Oct-05 7:27 
GeneralRe: ISerializable problems Pin
g00fyman3-Oct-05 13:47
g00fyman3-Oct-05 13:47 
the exception is being thrown from the client code
<br />
namespace SMSRemotingClient<br />
{<br />
	/// <summary><br />
	/// Summary description for ServerStatsuChecker.<br />
	/// </summary><br />
	internal class ServerStatusChecker<br />
	{<br />
    private IRemoteData remoteObject;<br />
<br />
    internal ServerStatusChecker(IRemoteData remoteObj)<br />
    {<br />
      this.remoteObject = remoteObj;<br />
    }<br />
<br />
    internal void CheckStatus()<br />
    {<br />
      try<br />
      {<br />
        // ping server with this machines current time<br />
        IPingResponse response = this.remoteObject.Ping(DateTime.Now);        <br />
        <br />
        // set returned object with current time<br />
        response.ReceiveTime = DateTime.Now;<br />
        <br />
        Debug.WriteLine("ping: " +  DateTime.Now.ToString("h:mm:ss.fff"));<br />
        Debug.WriteLine("ping turn-around: " + response.TransmissionTime.Milliseconds + " millisecs");<br />
        Debug.WriteLine("ping count: " + response.PingCount);<br />
      }<br />
      catch(SocketException se)<br />
      {<br />
        Debug.WriteLine("its all gone pear-shaped, the server is offline when trying to ping");  <br />
      }<br />
      catch(RemotingException re)<br />
      {<br />
        Debug.WriteLine(re.Message);<br />
      }<br />
      catch(Exception see)<br />
      {<br />
        Debug.WriteLine(see.Message);<br />
      }<br />
    }<br />
	}<br />
}<br />


see.Message gives
<br />
The type RemotingInterface.PingResponse in Assembly StationUpdateInterface, Version=1.0.2103.19283, Culture=neutral, PublicKeyToken=null is not marked as serializable.<br />


a try catch aarounf the line you suggested gives nothing, the exception is always from the client
GeneralRe: ISerializable problems Pin
Robert Rohde3-Oct-05 20:40
Robert Rohde3-Oct-05 20:40 
GeneralRe: ISerializable problems Pin
g00fyman3-Oct-05 20:59
g00fyman3-Oct-05 20:59 
QuestionPolar Graph in c#?? Pin
parvinder sehrawat3-Oct-05 3:30
parvinder sehrawat3-Oct-05 3:30 
AnswerRe: Polar Graph in c#?? Pin
Robert Rohde3-Oct-05 7:20
Robert Rohde3-Oct-05 7:20 
QuestionWriting code for Credit Card Reader in C# Pin
CharlyBrownson3-Oct-05 3:05
CharlyBrownson3-Oct-05 3:05 
AnswerRe: Writing code for Credit Card Reader in C# Pin
g00fyman3-Oct-05 4:09
g00fyman3-Oct-05 4:09 
GeneralRe: Writing code for Credit Card Reader in C# Pin
CharlyBrownson3-Oct-05 14:25
CharlyBrownson3-Oct-05 14:25 
GeneralRe: Writing code for Credit Card Reader in C# Pin
g00fyman3-Oct-05 15:44
g00fyman3-Oct-05 15:44 
QuestionC# and authenticating with LDAP Pin
ehuysamer3-Oct-05 2:49
ehuysamer3-Oct-05 2:49 
QuestionPassing Passwords ARGS Pin
har04mich3-Oct-05 2:30
har04mich3-Oct-05 2:30 
AnswerRe: Passing Passwords ARGS Pin
ehuysamer4-Oct-05 4:25
ehuysamer4-Oct-05 4:25 
QuestionGDI+ Problemo Pin
XeoN-Kc3-Oct-05 2:05
XeoN-Kc3-Oct-05 2:05 
AnswerRe: GDI+ Problemo Pin
leppie3-Oct-05 3:12
leppie3-Oct-05 3:12 
AnswerRe: GDI+ Problemo Pin
Andrew Kirillov3-Oct-05 3:44
Andrew Kirillov3-Oct-05 3:44 
GeneralRe: GDI+ Problemo Pin
XeoN-Kc3-Oct-05 7:55
XeoN-Kc3-Oct-05 7:55 
GeneralRe: GDI+ Problemo Pin
Andrew Kirillov3-Oct-05 9:40
Andrew Kirillov3-Oct-05 9:40 
QuestionWhy Leave the user defined control make the changes of the combobox? Pin
Ming Luo3-Oct-05 1:51
Ming Luo3-Oct-05 1: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.