Click here to Skip to main content
15,559,819 members
Home / Discussions / C#
   

C#

 
QuestionComponent design-time adjust control boundaries Pin
Chris Copeland17-Jan-11 12:27
mveChris Copeland17-Jan-11 12:27 
QuestionSorting objects in a dictionary into corresponding Pairs... Pin
roman_s17-Jan-11 10:47
roman_s17-Jan-11 10:47 
AnswerRe: Sorting objects in a dictionary into corresponding Pairs... Pin
roman_s17-Jan-11 11:56
roman_s17-Jan-11 11:56 
AnswerRe: Sorting objects in a dictionary into corresponding Pairs... Pin
Henry Minute17-Jan-11 12:25
Henry Minute17-Jan-11 12:25 
Questionusb device (not the storage volume type) Pin
Blubbo17-Jan-11 10:06
Blubbo17-Jan-11 10:06 
AnswerRe: usb device (not the storage volume type) Pin
Michael900017-Jan-11 10:19
Michael900017-Jan-11 10:19 
GeneralRe: usb device (not the storage volume type) Pin
Blubbo19-Jan-11 10:54
Blubbo19-Jan-11 10:54 
QuestionWierd exceptions when calling WCF more than once from a static class Pin
Michael900017-Jan-11 9:32
Michael900017-Jan-11 9: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 12:17
professionalRavi Bhavnani17-Jan-11 12:17 
QuestionRe: Wierd exceptions when calling WCF more than once from a static class Pin
Michael900017-Jan-11 12:49
Michael900017-Jan-11 12:49 
AnswerRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani17-Jan-11 12:53
professionalRavi Bhavnani17-Jan-11 12:53 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Michael900017-Jan-11 13:13
Michael900017-Jan-11 13:13 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani17-Jan-11 13:22
professionalRavi Bhavnani17-Jan-11 13:22 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Michael900017-Jan-11 13:48
Michael900017-Jan-11 13:48 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Michael900018-Jan-11 6:02
Michael900018-Jan-11 6:02 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani18-Jan-11 6:57
professionalRavi Bhavnani18-Jan-11 6:57 
AnswerRe: Wierd exceptions when calling WCF more than once from a static class Pin
Ravi Bhavnani17-Jan-11 12:56
professionalRavi Bhavnani17-Jan-11 12:56 
GeneralRe: Wierd exceptions when calling WCF more than once from a static class [modified] Pin
Michael900017-Jan-11 13:27
Michael900017-Jan-11 13:27 
QuestionAnyone work with Microsoft Dynamics Great Plains? Pin
DeepToot17-Jan-11 6:53
DeepToot17-Jan-11 6:53 
QuestionUsing a Class in a C# console application [modified] Pin
B Don Davis17-Jan-11 5:46
B Don Davis17-Jan-11 5:46 
AnswerRe: Using a Class in a C# console application PinPopular
Pete O'Hanlon17-Jan-11 6:16
mvaPete O'Hanlon17-Jan-11 6:16 
GeneralRe: Using a Class in a C# console application Pin
Michael900017-Jan-11 9:40
Michael900017-Jan-11 9:40 
GeneralRe: Using a Class in a C# console application Pin
Pete O'Hanlon17-Jan-11 10:09
mvaPete O'Hanlon17-Jan-11 10:09 
GeneralRe: Using a Class in a C# console application Pin
Michael900017-Jan-11 12:59
Michael900017-Jan-11 12:59 
AnswerRe: Using a Class in a C# console application Pin
#realJSOP18-Jan-11 5:45
mva#realJSOP18-Jan-11 5: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.