Click here to Skip to main content
15,890,717 members
Home / Discussions / C#
   

C#

 
GeneralRe: SOAP over SSL with Certificate Pin
Henrik Stuart3-May-04 7:34
Henrik Stuart3-May-04 7:34 
GeneralRe: Newbie Webservice Problem Pin
mjmcinto3-May-04 6:45
mjmcinto3-May-04 6:45 
GeneralRe: Newbie Webservice Problem Pin
Heath Stewart3-May-04 10:29
protectorHeath Stewart3-May-04 10:29 
GeneralNewbie -- How to use multiple forms not MDI Pin
Daniel Stagg3-May-04 6:24
Daniel Stagg3-May-04 6:24 
GeneralRe: Newbie -- How to use multiple forms not MDI Pin
Dave Kreskowiak3-May-04 7:16
mveDave Kreskowiak3-May-04 7:16 
GeneralRe: Newbie -- How to use multiple forms not MDI Pin
Daniel Stagg3-May-04 7:19
Daniel Stagg3-May-04 7:19 
GeneralRe: Newbie -- How to use multiple forms not MDI Pin
Dave Kreskowiak3-May-04 9:19
mveDave Kreskowiak3-May-04 9:19 
GeneralProblem in MessageQueue Pin
rbarzallo3-May-04 6:21
rbarzallo3-May-04 6:21 
Hi,

i have next class :

public class abc
{
public string campo 1;
public string campo 2;
public Socket CltSckt;
public NetWorkStream NS;
}

After of initialize the class and stored the data for each variable, I wish to send or store in a Queue :


public int EscribeCola(string SrvName, string QueueName, abc Msg_Devices)
{
try
{
MessageQueue msgq = new MessageQueue();
msgq.Formatter = new XmlMessageFormatter(new Type[] {typeof(string)});
System.Messaging.Message msg = new System.Messaging.Message();
msgq.Path = (SrvName + QueueName);
//
// coloco el mensaje en la cola
lock(this)
{
msgq.Send(Mensaje_Devices);
}
msgq.Dispose();
return 0;
}
catch (Exception ex)
{
acc_evento.ReportaEvento(PROCESO_ORIGEN,Param_Eventos.PROBLEMA_WRITE_QUEUE, QueueName + " " +

ex.Message + " " + ex.InnerException.Message);
return -1;
}
}

In the moment of "send", present a runtime error :

"There was an error refecting 'Msg_Devices'"
"System.net.sockets.socket"
"Cannot be serialized because it does not have a default constructor".

May you help me?
What have I do?


Grettings

GeneralRe: Problem in MessageQueue Pin
Jeff Varszegi3-May-04 10:21
professionalJeff Varszegi3-May-04 10:21 
GeneralRe: Problem in MessageQueue Pin
Heath Stewart3-May-04 10:26
protectorHeath Stewart3-May-04 10:26 
GeneralRe: Problem in MessageQueue Pin
Jeff Varszegi3-May-04 11:07
professionalJeff Varszegi3-May-04 11:07 
GeneralRe: Problem in MessageQueue Pin
rbarzallo4-May-04 12:35
rbarzallo4-May-04 12:35 
GeneralRe: Problem in MessageQueue Pin
Jeff Varszegi4-May-04 12:42
professionalJeff Varszegi4-May-04 12:42 
QuestionHelp: Outlook Add-In. How do I set the button icon? Pin
Tony Archer3-May-04 6:15
Tony Archer3-May-04 6:15 
AnswerRe: Help: Outlook Add-In. How do I set the button icon? Pin
Heath Stewart3-May-04 10:24
protectorHeath Stewart3-May-04 10:24 
GeneralRe: Help: Outlook Add-In. How do I set the button icon? Pin
Tony Archer3-May-04 11:10
Tony Archer3-May-04 11:10 
GeneralRe: Help: Outlook Add-In. How do I set the button icon? Pin
Heath Stewart4-May-04 2:48
protectorHeath Stewart4-May-04 2:48 
GeneralXmlDocument to TextBox (Best Practise) Pin
Michael P Butler3-May-04 5:51
Michael P Butler3-May-04 5:51 
GeneralRe: XmlDocument to TextBox (Best Practise) Pin
Daniel Turini3-May-04 6:28
Daniel Turini3-May-04 6:28 
GeneralConvert Unix Time to DateTime (C#) Pin
inyoursadachine3-May-04 5:47
inyoursadachine3-May-04 5:47 
GeneralRe: Convert Unix Time to DateTime (C#) Pin
Heath Stewart3-May-04 10:15
protectorHeath Stewart3-May-04 10:15 
GeneralRe: Convert Unix Time to DateTime (C#) Pin
leppie3-May-04 11:18
leppie3-May-04 11:18 
GeneralCustom Listview Pin
machocr3-May-04 5:09
machocr3-May-04 5:09 
GeneralRe: Custom Listview Pin
Heath Stewart3-May-04 10:14
protectorHeath Stewart3-May-04 10:14 
GeneralRe: Custom Listview Pin
machocr3-May-04 12:09
machocr3-May-04 12:09 

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.