Click here to Skip to main content
15,884,473 members
Home / Discussions / C#
   

C#

 
QuestionComponent design-time adjust control boundaries Pin
Chris Copeland17-Jan-11 11:27
mveChris Copeland17-Jan-11 11:27 
QuestionSorting objects in a dictionary into corresponding Pairs... Pin
roman_s17-Jan-11 9:47
roman_s17-Jan-11 9:47 
AnswerRe: Sorting objects in a dictionary into corresponding Pairs... Pin
roman_s17-Jan-11 10:56
roman_s17-Jan-11 10:56 
AnswerRe: Sorting objects in a dictionary into corresponding Pairs... Pin
Henry Minute17-Jan-11 11:25
Henry Minute17-Jan-11 11:25 
Questionusb device (not the storage volume type) Pin
Blubbo17-Jan-11 9:06
Blubbo17-Jan-11 9:06 
AnswerRe: usb device (not the storage volume type) Pin
Michael900017-Jan-11 9:19
Michael900017-Jan-11 9:19 
GeneralRe: usb device (not the storage volume type) Pin
Blubbo19-Jan-11 9:54
Blubbo19-Jan-11 9:54 
QuestionWierd exceptions when calling WCF more than once from a static class Pin
Michael900017-Jan-11 8:32
Michael900017-Jan-11 8:32 
I'm using Compact Framework 3.5 on a phone to contact a WCF-service, but I think my question is more related to this message board.


When the code below is called a second time, from a class that is implemented as a singleton, it ends in som really unexpected errors.

It works fine the first time it's run.

MaintenanceService svc = new MaintenanceService();
List<Assignment> assignments = svc.GetAssignments().ToList<Assignment>; // Fails here


The second time, it randomly throws 2 different exceptions (only one each time):

- Sometimes it's a TimeOutException
(System.Net.HttpWebRequest... - in VS-generated code).

- And Other times it's a ObjectDisposedException
(system.threading.timer for the WCF-TimeOut - in VS-generated code).


If I use the same code from a Button_Click in a Form, it works every time, so I know it's not the service that are causing the error.

I really need som help on this one?
AnswerRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani17-Jan-11 11:17
professionalRavi Bhavnani17-Jan-11 11:17 
QuestionRe: Wierd exceptions when calling WCF more than once from a static class Pin
Michael900017-Jan-11 11:49
Michael900017-Jan-11 11:49 
AnswerRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani17-Jan-11 11:53
professionalRavi Bhavnani17-Jan-11 11:53 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Michael900017-Jan-11 12:13
Michael900017-Jan-11 12:13 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani17-Jan-11 12:22
professionalRavi Bhavnani17-Jan-11 12:22 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Michael900017-Jan-11 12:48
Michael900017-Jan-11 12:48 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Michael900018-Jan-11 5:02
Michael900018-Jan-11 5:02 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani18-Jan-11 5:57
professionalRavi Bhavnani18-Jan-11 5:57 
AnswerRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani17-Jan-11 11:56
professionalRavi Bhavnani17-Jan-11 11:56 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class [modified] Pin
Michael900017-Jan-11 12:27
Michael900017-Jan-11 12:27 
QuestionAnyone work with Microsoft Dynamics Great Plains? Pin
DeepToot17-Jan-11 5:53
DeepToot17-Jan-11 5:53 
QuestionUsing a Class in a C# console application [modified] Pin
B Don Davis17-Jan-11 4:46
B Don Davis17-Jan-11 4:46 
AnswerRe: Using a Class in a C# console application Pin
Pete O'Hanlon17-Jan-11 5:16
mvePete O'Hanlon17-Jan-11 5:16 
GeneralRe: Using a Class in a C# console application Pin
Michael900017-Jan-11 8:40
Michael900017-Jan-11 8:40 
GeneralRe: Using a Class in a C# console application Pin
Pete O'Hanlon17-Jan-11 9:09
mvePete O'Hanlon17-Jan-11 9:09 
GeneralRe: Using a Class in a C# console application Pin
Michael900017-Jan-11 11:59
Michael900017-Jan-11 11:59 
AnswerRe: Using a Class in a C# console application Pin
#realJSOP18-Jan-11 4:45
mve#realJSOP18-Jan-11 4:45 

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.