Click here to Skip to main content
16,005,290 members
Home / Discussions / C#
   

C#

 
Generalselect with where clause in Sqlserver2000 Pin
cishi_us28-Apr-05 11:43
cishi_us28-Apr-05 11:43 
GeneralRe: select with where clause in Sqlserver2000 Pin
Marc Clifton28-Apr-05 15:43
mvaMarc Clifton28-Apr-05 15:43 
GeneralAccessing a row of data Pin
brian5528-Apr-05 11:20
brian5528-Apr-05 11:20 
GeneralRe: Accessing a row of data Pin
brian5528-Apr-05 15:41
brian5528-Apr-05 15:41 
QuestionHow do u see content of a namespace?? Pin
Poikilos28-Apr-05 11:05
Poikilos28-Apr-05 11:05 
AnswerRe: How do u see content of a namespace?? Pin
Tom Larsen28-Apr-05 11:20
Tom Larsen28-Apr-05 11:20 
AnswerRe: How do u see content of a namespace?? Pin
Marc Clifton28-Apr-05 11:28
mvaMarc Clifton28-Apr-05 11:28 
GeneralReconnecting to a remote server using DCOM Pin
bob2k_0328-Apr-05 10:27
bob2k_0328-Apr-05 10:27 
Hello all,
I am writing a client for a remote windows service using C#.

I first instantiate the remote object ...
Type t = Type.GetTypeFromProgID(progId, serverName);
APPLib.IApp obj = (APPLib.IApp)Activator.CreateInstance(type);

Then I use the method and it works great ..
obj.SomeMethod();

But if I unplug the network cable between the object creation and its use, I get a 0x800706BF COMException (The remote procedure call failed.) which is expected. The problem I have is after I reconnect the network cable and then try to recover by calling the Type.GetTypeFromProgID() and Activator.CreateInstance(type) methods, I repeatedly get "The remote procedure call failed." COM Exceptions in the Activator.CreateInstance() call. I can even start another instance of my client that connects to the remote server just fine while this instance is still throwing execptions.

Any suggestions on how to recover gracefully?

Thank you,
Bob
GeneralRe: Reconnecting to a remote server using DCOM Pin
Maxim Alekseykin29-Apr-05 2:47
Maxim Alekseykin29-Apr-05 2:47 
GeneralRe: Reconnecting to a remote server using DCOM Pin
bob2k_0329-Apr-05 3:27
bob2k_0329-Apr-05 3:27 
GeneralClass for MP3 and WMA Pin
housefreak_sls28-Apr-05 10:17
housefreak_sls28-Apr-05 10:17 
GeneralRe: Class for MP3 and WMA Pin
Thoughthopper29-Apr-05 11:38
Thoughthopper29-Apr-05 11:38 
GeneralRemoving elements during iteration through a Dictionary Pin
johtib28-Apr-05 10:14
johtib28-Apr-05 10:14 
GeneralRe: Removing elements during iteration through a Dictionary Pin
Stefan Troschuetz28-Apr-05 10:57
Stefan Troschuetz28-Apr-05 10:57 
GeneralRe: Removing elements during iteration through a Dictionary Pin
johtib28-Apr-05 11:02
johtib28-Apr-05 11:02 
GeneralRe: Removing elements during iteration through a Dictionary Pin
Stefan Troschuetz28-Apr-05 11:13
Stefan Troschuetz28-Apr-05 11:13 
GeneralRe: Removing elements during iteration through a Dictionary Pin
johtib28-Apr-05 11:16
johtib28-Apr-05 11:16 
GeneralRe: Removing elements during iteration through a Dictionary Pin
Sebastian Schneider28-Apr-05 20:36
Sebastian Schneider28-Apr-05 20:36 
GeneralRe: Removing elements during iteration through a Dictionary Pin
johtib29-Apr-05 10:42
johtib29-Apr-05 10:42 
GeneralRe: Removing elements during iteration through a Dictionary Pin
mav.northwind28-Apr-05 20:23
mav.northwind28-Apr-05 20:23 
GeneralRe: Removing elements during iteration through a Dictionary Pin
johtib28-Apr-05 20:30
johtib28-Apr-05 20:30 
GeneralRe: Removing elements during iteration through a Dictionary Pin
mav.northwind28-Apr-05 21:14
mav.northwind28-Apr-05 21:14 
GeneralRe: Removing elements during iteration through a Dictionary Pin
johtib29-Apr-05 10:44
johtib29-Apr-05 10:44 
QuestionWhat is the right way to create inherited classes derived from System.Windows.Forms.TextBox? Pin
rudy.net28-Apr-05 8:37
rudy.net28-Apr-05 8:37 
AnswerRe: What is the right way to create inherited classes derived from System.Windows.Forms.TextBox? Pin
Fernando Soto28-Apr-05 17:37
Fernando Soto28-Apr-05 17:37 

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.