Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
GeneralRe: Override inherited delegates??? Pin
lsugirljte23-Oct-06 5:34
lsugirljte23-Oct-06 5:34 
AnswerRe: Override inherited delegates??? Pin
S. Senthil Kumar23-Oct-06 8:09
S. Senthil Kumar23-Oct-06 8:09 
AnswerRe: Override inherited delegates??? Pin
lsugirljte23-Oct-06 11:23
lsugirljte23-Oct-06 11:23 
QuestionGenerics: Is there a Synchronized Hashtable equivalent??? Pin
LongRange.Shooter23-Oct-06 4:08
LongRange.Shooter23-Oct-06 4:08 
AnswerRe: Generics: Is there a Synchronized Hashtable equivalent??? Pin
ednrgc23-Oct-06 4:18
ednrgc23-Oct-06 4:18 
GeneralRe: Generics: Is there a Synchronized Hashtable equivalent??? Pin
LongRange.Shooter23-Oct-06 6:55
LongRange.Shooter23-Oct-06 6:55 
Questionhow to Export DataGridView to excel in c# 2005 ? Pin
hdv21223-Oct-06 3:08
hdv21223-Oct-06 3:08 
QuestionRemoting Question Pin
Inkyskin_UK23-Oct-06 2:28
Inkyskin_UK23-Oct-06 2:28 
Hi have a problem with a remoting tool Im making. When you select a computer, it connects and shows data from the server on that end - however, if I close that form, and then try again with a different IP, I get an exception:

System.Runtime.Remoting.RemotingException: the channel 'http' is not registered with remoting services at System.Runtime.Remoting.Channels.ChannelServices.UnregisterChannel(IChannel chnl)

How can I "unregister" my channel and launch a new connection?

Here is my connection at the mo:

public void InitRemoteServer()<br />
        {<br />
            try<br />
            {<br />
                RemotingConfiguration.RegisterWellKnownClientType(<br />
                    typeof(procDLL),<br />
                    "http://" + connIP + ":" + connPORT + "/procDLL");<br />
            }<br />
            catch (Exception ex)<br />
            {<br />
                //err occured<br />
            }<br />
        }<br />
<br />
 private void viewProcesses_Load(object sender, EventArgs e)<br />
        {<br />
HttpChannel channel = new HttpChannel();<br />
ChannelServices.RegisterChannel(channel);<br />
try<br />
                {<br />
                    InitRemoteServer();<br />
                }<br />
                catch (Exception ex)<br />
                {<br />
                    ChannelServices.UnregisterChannel(channel);<br />
                }<br />
server1 = new procDLL();<br />
                string allProcsRunning = server1.return_processes();<br />
}


Thanks, Ben.
AnswerRe: Remoting Question Pin
LongRange.Shooter23-Oct-06 4:05
LongRange.Shooter23-Oct-06 4:05 
GeneralRe: Remoting Question Pin
Inkyskin_UK23-Oct-06 4:14
Inkyskin_UK23-Oct-06 4:14 
GeneralRe: Remoting Question Pin
LongRange.Shooter23-Oct-06 9:49
LongRange.Shooter23-Oct-06 9:49 
QuestionWndProc : on windows command ? Pin
vincent3123-Oct-06 2:22
vincent3123-Oct-06 2:22 
AnswerRe: WndProc : on windows command ? Pin
Ed.Poore23-Oct-06 4:04
Ed.Poore23-Oct-06 4:04 
AnswerRe: WndProc : on windows command ? Pin
Dave Kreskowiak23-Oct-06 4:21
mveDave Kreskowiak23-Oct-06 4:21 
QuestionRe: WndProc : on windows command ? Pin
vincent3123-Oct-06 4:37
vincent3123-Oct-06 4:37 
AnswerRe: WndProc : on windows command ? Pin
S. Senthil Kumar23-Oct-06 8:26
S. Senthil Kumar23-Oct-06 8:26 
QuestionRe: WndProc : on windows command ? Pin
vincent3124-Oct-06 3:43
vincent3124-Oct-06 3:43 
AnswerRe: WndProc : on windows command ? Pin
duanvinait25-Jan-21 20:13
duanvinait25-Jan-21 20:13 
Questionasynchrounous web methgod call Pin
Thakur Vikas23-Oct-06 1:54
Thakur Vikas23-Oct-06 1:54 
AnswerRe: asynchrounous web methgod call Pin
Stefan Troschuetz23-Oct-06 3:06
Stefan Troschuetz23-Oct-06 3:06 
QuestionCalling a Method with a Variable as its Name Pin
Gareth H23-Oct-06 1:31
Gareth H23-Oct-06 1:31 
AnswerRe: Calling a Method with a Variable as its Name Pin
Robert Rohde23-Oct-06 1:39
Robert Rohde23-Oct-06 1:39 
GeneralRe: Calling a Method with a Variable as its Name Pin
Gareth H23-Oct-06 2:46
Gareth H23-Oct-06 2:46 
QuestionsplitContainer Pin
alpha_1023-Oct-06 0:48
alpha_1023-Oct-06 0:48 
AnswerRe: splitContainer Pin
Ed.Poore23-Oct-06 4:02
Ed.Poore23-Oct-06 4:02 

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.