Re: remoting - nasty bug?
- From: "David Krmpotic" <david.krmpotic@xxxxxxxx>
- Date: Sun, 8 May 2005 19:15:17 +0100
Thank you for your effort... I discovered something important..
The problem only arises when you get the reference from the SAO to some
MarshaledByRef object on the server.
I wrote a simple example.. here
http://www.david13.com/cases/DotNet/Remoting-BUG-Server-Inaccessible-From-Local-Machine/LANCableProblemReproduction.zip
just start the server.exe with LAN cable plugged in, run the client.exe and
observe that it works.. then unplug the cable and try to run the client
again.. it shouldn't run... now plug the cable back in and run the client
again.. it works without restarting the server..
So.. you will see from the example what I am trying to do.. I use the same
technique in two of my programs.. but for different reasons.. the sample I
am sending is for some simple notes.. please tell me if what I am doing is a
bad practice or not, but even more important - tell me if this behaviour is
normal or not..
I've seen some peole experience the same problem, but nobody found a good
solution for it.. or at least they didn't post it / or I can't find it!!
=====[not related to the problem]===========================================
S dniom razhdjenia! (hehe I found that one on some web page..)
cool! where are you from exactly.. maybe we can chat about all that
privately once we solve the problem (thank you for helping me out again!!)
oh about languages... :) it is very rewarding.. I hope I'll have more time
in the future to learn a few more languages. that would be cool!
Russian is not very far from my language - Slovenian!
"Sergey Radkevich" <sergeyr@xxxxxxxxxxxx> wrote in message
news:%239xZdU5UFHA.1404@xxxxxxxxxxxxxxxxxxxxxxx
> > > When you install loopback adapter you can specify any address
manually,
> > > or use automatically configured ip address
>
> > I have to specify it manually, so the client at the machine with the
> server
> > can reference the server through this address.. it only works then (I
> tried
> > it). if I continue to reference it with the machine name or "localhost",
> > then it continues to produce the same behaviour no matter that the
> loopback
> > is present.
>
> Currently I think we need to investigate Alex Passos's idea (about
incorrect
> name resolution)
>
> > After the problem happens, I can still get the prompt
> > although I cannot connect to the server with my client.
>
> The reason to check is following:
> at this moment telnet uses new name resolution scheme (which is occurs
after
> disconnection),
> but client still use old IP address (which was before disconnection)
>
> > It happened on anothe machine..
> > so it is definitelly not the problem just with my machine!
>
> It might be a problem with a whole network configuration
> (If you are in domain, then chances are good
> that for some aspects all machines behave in the same way)
>
> Please provide the following information at your page with problem
> description:
> - source code of client application
> - dump from "ipconfig /all" command
> - content of HOSTS file
> - dump from "route print" command
> - dump from "ping localhost" and "tracert localhost" commands in
> disconnected state
> (but "telnet localhost 45326" works so disconnection it is not a
problem)
> - dump from "nslookup" utility
>
>
>
>
> HOSTS file is located in "%SystemRoot%\system32\drivers\etc" for WindowsNT
> family
>
> The following types of problems can occur because of errors related to the
> HOSTS file:
> - The HOSTS file or the DNS server does not contain the particular host
> name.
> - The host name in the HOSTS file or in the command is misspelled or uses
> different capitalization.
> (Note: Host names are case-sensitive.)
> - An invalid IP address is entered for the host name in the HOSTS file.
> - The HOSTS file contains multiple entries for the same host on separate
> lines; if so, the first entry is the one that is used.
> - A mapping for a computer name-to-IP-address was mistakenly added to the
> HOSTS file (rather than LMHOSTS).
> - Last line should ends with carriage return symbol (see KB105998)
>
> The correct format of the file is the following: "IP Address" "Friendly
> Name"
> For example:
> 127.0.0.1 localhost # Remarks are denoted with a #.
>
> "ipconfig /flushdns" can be used to clear client name resolution cache
>
>
>
>
>
>
> Next thing to check is packet routing (route print)
>
> The resolved IP address is passed to the IP routing component. The routing
> component returns either a routing error because a route was not found for
> the destination IP address or the forwarding IP address and interface over
> which the packet is to be forwarded cannot be found.
>
>
>
>
>
>
> About channels I have found following quotes from various sources:
>
> There are various considerations while writing a channel. They include a
> balance of performance, scalability and implementation complexity.
> Performance of a shared memory implementation would be certainly better
than
> named pipes. But issues when synchronizing between between reader/writers
> could lead to scalibility concerns, especially with multiple clients.
Named
> Pipes provide good mix of both perf and scalability as compared to the TCP
> channel.
>
> Remoting in v2.0 of the framework is introducing a new IPC Channel meant
for
> x-proc communication on the same machine. It is based on named pipes and
> works on win2k based platforms (win2k, winxp, win2k3). It will provide
> better performance characteristics than the current TCP channel. It will
> also provide a way to control access to the underlying pipe, so that the
> server can limit the access to a specific group. As with the new TCP
channel
> it also supports authentication and impersonation of client identities.
>
> For Framework 1.1 you can try
>
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=43a1ef11-c57c-45c7-a67f-ed68978f3d6d
> (I have not tried it myself)
>
>
>
>
>
> > Kakva pozivljajete?
>
> Horosho, spasibo. Zavtra moj 27-j denx rozhdeniya :)
> Fine, thanks. I am going to celebrate my 27-th birthday anniversary
tommorow
> :)
>
> > oh yes, I will learn russian some day :))
>
> I visited your homepage and was amused by number of languages which you
are
> learning :)
>
>
.
- References:
- remoting - nasty bug?
- From: David Krmpotic
- Re: remoting - nasty bug?
- From: Sergey Radkevich
- Re: remoting - nasty bug?
- From: David Krmpotic
- Re: remoting - nasty bug?
- From: Sergey Radkevich
- Re: remoting - nasty bug?
- From: David Krmpotic
- Re: remoting - nasty bug?
- From: Sergey Radkevich
- remoting - nasty bug?
- Prev by Date: How to share a single assembly (DLL) with multiple apps?
- Next by Date: Re: remoting - nasty bug?
- Previous by thread: Re: remoting - nasty bug?
- Next by thread: Re: remoting - nasty bug?
- Index(es):
Relevant Pages
|