Tomer Gabel's annoying spot on the 'net RSS 2.0
# Sunday, October 09, 2005
A product I'm working on consists of a primary component and two sattelite components. The sattelite components are designed to run remotely and communicate with the primary component via .NET Remoting. The product is currently undergoing a QA cycle, and the QA team had a bizarre issue to report: when the system is configured to run on localhost and the network cable is disconnected while the system is up and running, remoting requests fail (they reported that the primary component fails to notify the satellite component instances to shut down, but it was actually the same with any remote call). My immediate response was "huh?" but subsequent local testing assured me that they weren't smoking anything illegal.

After quite a bit of research (this is a seemingly little-known issue with .NET Remoting) I managed to come some interesting insights into .NET, but only one relevant post I managed to find after playing with Google Groups a bit: apparently when Windows detects a network cable disconnect (via a feature called Media Sense) it "removes the bound protocols from that adapter until it is detected as "up" again". The only workaround I could find was to completely disable Media Sense, which needless to say is a very unwelcome solution.

I suppose the obvious question is "why the hell does Media Sense shut down localhost connections?" I'm often dumbfounded by bizarre design decisions in Microsoft products, but this one may just necessitate adding a really awful hack to our installation procedures on clients' sites, which just sucks.

Sunday, October 09, 2005 3:02:05 PM (Jerusalem Standard Time, UTC+02:00)  #    Comments [2] -
Development
Wednesday, December 21, 2005 7:34:32 PM (Jerusalem Standard Time, UTC+02:00)
Thanks for the Google link above, you saved me hours of searching for an answer to this issue. Your commentsm, however, don't reference option #2 that was mentioned in the link.

This way of handling the problem fixed my app without requiring me to dink with Media Sense. Add machinename="localhost" and useIpAddress="false" to your the channel tag of you application in App.config, as in:

&ltchannel ref="tcp" port="8080" machinename="localhost" useIpAddress="false"&gt

Hopefully this will work for you as well.
Wednesday, December 21, 2005 10:24:41 PM (Jerusalem Standard Time, UTC+02:00)
It didn't, although I can't honestly remember why or what the symptoms were. If it did I would've mentioned it :-)

Glad you found the site useful. I do hope for more correspondence in the future...
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview
Me!
Send mail to the author(s) Be afraid.
Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
All Content © 2012, Tomer Gabel
Based on the Business theme for dasBlog created by Christoph De Baene (delarou)