Click here to Skip to main content
15,907,001 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# Pin
leckey14-Jan-09 3:21
leckey14-Jan-09 3:21 
QuestionWindows service suggestions Pin
mpavas14-Jan-09 0:00
mpavas14-Jan-09 0:00 
QuestionNeed advise about desktop application Pin
Haim Nachum13-Jan-09 22:28
Haim Nachum13-Jan-09 22:28 
AnswerRe: Need advise about desktop application Pin
SeMartens13-Jan-09 23:14
SeMartens13-Jan-09 23:14 
QuestionLink ArrayList to datagridview and display spesific data Pin
Ronenb13-Jan-09 20:51
Ronenb13-Jan-09 20:51 
AnswerRe: Link ArrayList to datagridview and display spesific data Pin
musefan13-Jan-09 23:54
musefan13-Jan-09 23:54 
AnswerRe: Link ArrayList to datagridview and display spesific data Pin
Reza Raad14-Jan-09 0:41
Reza Raad14-Jan-09 0:41 
AnswerRe: Link ArrayList to datagridview and display spesific data Pin
Henry Minute14-Jan-09 2:16
Henry Minute14-Jan-09 2:16 
Questionxml carriage return Pin
arkiboys13-Jan-09 20:50
arkiboys13-Jan-09 20:50 
AnswerRe: xml carriage return Pin
Eddy Vluggen13-Jan-09 21:07
professionalEddy Vluggen13-Jan-09 21:07 
GeneralRe: xml carriage return Pin
arkiboys13-Jan-09 21:24
arkiboys13-Jan-09 21:24 
GeneralRe: xml carriage return Pin
Eddy Vluggen13-Jan-09 21:30
professionalEddy Vluggen13-Jan-09 21:30 
AnswerRe: xml carriage return Pin
J4amieC13-Jan-09 22:25
J4amieC13-Jan-09 22:25 
GeneralRe: xml carriage return Pin
arkiboys13-Jan-09 22:35
arkiboys13-Jan-09 22:35 
GeneralRe: xml carriage return Pin
J4amieC13-Jan-09 22:53
J4amieC13-Jan-09 22:53 
GeneralRe: xml carriage return Pin
arkiboys13-Jan-09 23:04
arkiboys13-Jan-09 23:04 
GeneralRe: xml carriage return Pin
J4amieC13-Jan-09 23:37
J4amieC13-Jan-09 23:37 
GeneralRe: xml carriage return Pin
arkiboys13-Jan-09 23:41
arkiboys13-Jan-09 23:41 
QuestionHow can I get selected value from crystal report Pin
Ali 11013-Jan-09 19:59
Ali 11013-Jan-09 19:59 
QuestionAdd Icon / JPG into Cell [DataGridView] Pin
M Riaz Bashir13-Jan-09 19:59
M Riaz Bashir13-Jan-09 19:59 
AnswerRe: Add Icon / JPG into Cell [DataGridView] Pin
dan!sh 13-Jan-09 21:13
professional dan!sh 13-Jan-09 21:13 
QuestionRemoting: Problem unregistering channel - System.Net.Sockets.SocketException : Only one usage of each socket address (protocol/network address/port) is normally permitted Pin
devvvy13-Jan-09 18:55
devvvy13-Jan-09 18:55 
hello

having problem trying to unregister remoting channel (.NET 2.0/XP) - error:
<br />
System.Net.Sockets.SocketException : Only one usage of each socket address (protocol/network address/port) is normally permitted<br />


On server side, I created the channel by:
<br />
TcpChannel oTcpChannel = new TcpChannel(AppContext.DefaultRemotingInterfacePort);				ChannelServices.RegisterChannel(oTcpChannel, true);<br />
RemotingConfiguration.RegisterWellKnownServiceType(typeof(Util.MyRemoteObj, "TcpRemoteObj", WellKnownObjectMode.Singleton);<br />


Then I try to close and restart channel (as part of application re-initialization rountine - this means process never actually exited and that would be undesirable)
<br />
ChannelServices.UnregisterChannel(oChannel);<br />
TcpChannel oChTcp = (TcpChannel)oChannel;				oChTcp.StopListening(null);<br />


I have no clue how to get around this at the moment - I Googled a bit seems like many people are running into this problem but no solution yet. Many suspected OS (or .NET) failed to release socket on UnregisterChannel until application/process exit. But I don't want to exit the app, just want to reinitialize remoting as part of re-init routine.

Any suggestion? Many thanks!

dev

QuestionSendkeys.Sendwait Pin
channbear13-Jan-09 18:38
channbear13-Jan-09 18:38 
QuestionHow to generate XML report using SQL Server Reporting Services Pin
DipaliG13-Jan-09 18:25
DipaliG13-Jan-09 18:25 
AnswerRe: How to generate XML report using SQL Server Reporting Services Pin
ColinM12313-Jan-09 18:50
ColinM12313-Jan-09 18:50 

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.