Click here to Skip to main content
15,885,537 members
Home / Discussions / C#
   

C#

 
GeneralRe: Email question for C# Pin
Heath Stewart18-Jan-05 7:30
protectorHeath Stewart18-Jan-05 7:30 
GeneralRe: Email question for C# Pin
new_phoenix18-Jan-05 8:02
new_phoenix18-Jan-05 8:02 
GeneralRe: Email question for C# Pin
Heath Stewart18-Jan-05 8:40
protectorHeath Stewart18-Jan-05 8:40 
GeneralRe: Email question for C# Pin
Skynyrd18-Jan-05 10:09
Skynyrd18-Jan-05 10:09 
QuestionContext Menu ?? Pin
rchokler18-Jan-05 6:54
rchokler18-Jan-05 6:54 
AnswerRe: Context Menu ?? Pin
mav.northwind18-Jan-05 7:14
mav.northwind18-Jan-05 7:14 
AnswerRe: Context Menu ?? Pin
Heath Stewart18-Jan-05 7:17
protectorHeath Stewart18-Jan-05 7:17 
GeneralMSMQ body casting error Pin
Esmo200018-Jan-05 6:16
Esmo200018-Jan-05 6:16 
Whenever I try to send a message and receive a message in MSMQ I keep getting this wierd error. Or more specifically, when I pickup the message I get:

Body <error: an="" exception="" of="" type:="" {system.invalidoperationexception}="" occurred=""> System.Object

As the attribute for body.

I have it sending fine (I checked in the queue itself). The picking up is asynchronous.
Here is the code that I used for picking it up:

My service initialisation:
MQ.MessageReadPropertyFilter.SetAll();
MQ.ReceiveCompleted += new ReceiveCompletedEventHandler(handleMessage);
IAsyncResult MQResult = MQ.BeginReceive(new TimeSpan(1, 0, 0), MQ);
...

private void handleMessage(object sender, ReceiveCompletedEventArgs e)
{
// get the message from the queue
System.Messaging.Message Msg = ((MessageQueue)e.AsyncResult.AsyncState).EndReceive(e.AsyncResult);
...

If anyone had a suggestion I would appreciate it sooo much!
Cheers,
Jim
GeneralRe: MSMQ body casting error Pin
Heath Stewart18-Jan-05 7:10
protectorHeath Stewart18-Jan-05 7:10 
GeneralRe: MSMQ body casting error Pin
Esmo200018-Jan-05 7:49
Esmo200018-Jan-05 7:49 
GeneralRe: MSMQ body casting error Pin
Heath Stewart18-Jan-05 8:42
protectorHeath Stewart18-Jan-05 8:42 
QuestionGet Connection Status? Pin
Snowjim18-Jan-05 3:43
Snowjim18-Jan-05 3:43 
AnswerRe: Get Connection Status? Pin
Heath Stewart18-Jan-05 6:01
protectorHeath Stewart18-Jan-05 6:01 
Generalwindows form-Listview or datagrid (C#) Pin
ipsoftware18-Jan-05 1:38
ipsoftware18-Jan-05 1:38 
GeneralRe: windows form-Listview or datagrid (C#) Pin
mav.northwind18-Jan-05 2:14
mav.northwind18-Jan-05 2:14 
GeneralDataGrid Pin
monn18-Jan-05 1:28
monn18-Jan-05 1:28 
Generaltimer does not tick during establishing ado connection Pin
Anonymous18-Jan-05 0:07
Anonymous18-Jan-05 0:07 
GeneralRe: timer does not tick during establishing ado connection Pin
Colin Angus Mackay18-Jan-05 0:14
Colin Angus Mackay18-Jan-05 0:14 
GeneralMenuImage extender Pin
rchokler18-Jan-05 0:04
rchokler18-Jan-05 0:04 
GeneralThanks i understood it :laugh: Pin
rchokler18-Jan-05 6:52
rchokler18-Jan-05 6:52 
GeneralAdd Hyperlink to Datagrid Column Pin
Anonymous17-Jan-05 23:49
Anonymous17-Jan-05 23:49 
GeneralRe: Add Hyperlink to Datagrid Column Pin
Heath Stewart18-Jan-05 6:26
protectorHeath Stewart18-Jan-05 6:26 
Generali need help with writing go!fish game in C language Pin
SMTK17-Jan-05 23:45
SMTK17-Jan-05 23:45 
GeneralRe: i need help with writing go!fish game in C language Pin
Colin Angus Mackay18-Jan-05 0:10
Colin Angus Mackay18-Jan-05 0:10 
GeneralArrayList Pin
Anthony_Yio17-Jan-05 22:18
Anthony_Yio17-Jan-05 22:18 

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.