Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: How to generate XML report using SQL Server Reporting Services Pin
ColinM12313-Jan-09 18:50
ColinM12313-Jan-09 18:50 
QuestionSmallest and fastest way to store numeric data in a file Pin
Reanalyse13-Jan-09 15:40
Reanalyse13-Jan-09 15:40 
AnswerRe: Smallest and fastest way to store numeric data in a file [modified] Pin
Luc Pattyn13-Jan-09 16:35
sitebuilderLuc Pattyn13-Jan-09 16:35 
AnswerRe: Smallest and fastest way to store numeric data in a file Pin
PIEBALDconsult13-Jan-09 16:51
mvePIEBALDconsult13-Jan-09 16:51 
AnswerRe: Smallest and fastest way to store numeric data in a file Pin
Guffa13-Jan-09 17:20
Guffa13-Jan-09 17:20 
AnswerRe: Smallest and fastest way to store numeric data in a file Pin
Mark Churchill13-Jan-09 17:42
Mark Churchill13-Jan-09 17:42 
GeneralRe: Smallest and fastest way to store numeric data in a file Pin
Reanalyse13-Jan-09 19:22
Reanalyse13-Jan-09 19:22 
AnswerRe: Smallest and fastest way to store numeric data in a file Pin
CPallini13-Jan-09 22:01
mveCPallini13-Jan-09 22:01 
QuestionObtain All Information from an Ocx [modified] Pin
angral13-Jan-09 14:41
angral13-Jan-09 14:41 
AnswerRe: Obtain All Information from an Ocx Pin
Henry Minute13-Jan-09 16:56
Henry Minute13-Jan-09 16:56 
GeneralRe: Obtain All Information from an Ocx Pin
angral13-Jan-09 18:05
angral13-Jan-09 18:05 
Questionanimations\video Pin
mjmim13-Jan-09 14:39
mjmim13-Jan-09 14:39 
AnswerRe: animations\video Pin
EliottA13-Jan-09 14:45
EliottA13-Jan-09 14:45 
QuestionDatasets / SQL [modified] Pin
CrimeanTurtle200813-Jan-09 13:42
CrimeanTurtle200813-Jan-09 13:42 

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.