473,569 Members | 2,790 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET Remoting DNS Caching problem?

Ok guys here's a tough one... I have a client/server application that
uses remoting for communication. I am using Activator.GetOb ject to create
a remoting instance with an URL that specifies the client machine by name.

The *application* server in this case is the *remoting* client. In other
words, the "applicatio n server" needs to talk to the "applicatio n client"
to tell it that there is a new configuration available for it, and that it
should communicate back to the "applicatio n server" to download this new
configuration. From this point on, I will refer to each machine's
*application* role, not the *remoting* role. OK?

Each client (application-wise) is configured to use DHCP, as you would
expect client machines to be. Apparently, it does occasionally change IP
addresses. OK fine - this is not unreasonable.

My problem is that when this change occurs, it appears that my server
application is caching the old DNS information, and thus the remoting call
from the server to client fails. I know that its trying to communicate to
the wrong IP address because I sniffed the IP packets. This is *NOT* an
operating-system level caching issue, because from the server's CMD prompt,
I can ping the client machine and I get the correct IP address. This
effect persists until I restart the server application.

Even after I have pinged the client, the server application still tries to
communicate with the machine using the old DNS info.

So to summarize:

- Server connects to client using tcp://clientPC:48000/MyRemotingApp - ok

- After a while (days/weeks/whatever), Client IP address changes by DHCP

- Server fails to connect using tcp://clientPC:48000/MyRemotingApp because
it is trying to communicate to the OLD IP Address

- I 'ping clientPC' and everything works fine

- I re-issue command to connect and it still fails because it communicates
to the old IP address.

- I restart the server application

- I reissue the connect command again and everything works great.
Its almost as if the .NET framework, specifically the remoting portion, is
caching the DNS information.

Has anyone seen anything like this? Is this a known bug? Is there a fix?
If not then I can probably just connect by IP address, but I'd prefer not
to have to do that if possible?

-mdb
Jan 19 '06 #1
1 2824

Not to sound silly, but when you ping the client, is it by unqualified
name I assume? Then when you ping <NetBIOS name>, check to see whether
the ping resolves the name to FQDN before you start seeing the ping
replies. If not, then we can trust that the server is doing a NBT
lookup on the client and not using DNS.

Jan 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1217
by: Maurice | last post by:
Our product is build using the .NET framework 1.1. We have WinForm application that communicates a server via Remoting (tcp channel). We have two ways communication: From application to server using a singleton remoting connection (using Activator) From server to application using delegate (using delegate wrapper – a simple
1
2136
by: CJM | last post by:
I'm working on an ASP application on my XP m/c. I've uploaded a copy of the ASP code and accompanying DB onto another server that is running both IIS5 & SQL Server. This is so that the development can be demonstrated to key users at particular points. However, when I access the application from my machine, I'm getting to odd caching...
0
1097
by: Jill | last post by:
I found out that one of my other windows with asp enabled hosting companies does not have this problem. I talked with the tech and they said they do have the asp pages caching enabled. I walked him through finding it and it is checked!! Yet no problems on the server, ftping files is a breeze with changes made instantaenously!! THey are...
2
6944
by: Mike Sobeiski | last post by:
Hi There! I'm developing a web project that requires to produce charts off the database and output it as image and presented to the user in a HTML document. (NOTE: Image is not directly streamed, but just linked in HTML output). The problem is, when user want to see the graph by changing parameters, they always have to click refresh to...
1
1086
by: big DWK | last post by:
Hi- We're having a strange caching problem with an ASP.Net app written in VB.Net on Windows 2003 with all the updates. We have two websevers that use a common sql backend and a session server to preserve state. Everything is working on one server, on the second one we have one page that is giving us problems. Basically we changed the ip of...
0
807
by: Vikram | last post by:
I m working on a example using whidbey virtual image. Example is about using post cache substitution. I am facing a sporadic issue. SOme time caching works and some time it doesnt , is this may be the problem as i m using image. Also same sporadic issue is faced when i use sql dependency pull method for caching. Polling works for say 1 min...
1
2074
by: Thomee Wright | last post by:
I'm having a problem with a pair of applications I'm developing. I have a server application which interacts with several instruments, and a client app which connects to the server and provides a UI for interacting with the instruments. Readings from the instruments are periodically sent to the clients, and clients will send commands to the...
3
1332
by: jlotmar | last post by:
I am currently experiencing a problem whereby browser caching seems to be causing my page to be invalid. I am using a standard DataGrid WebControl which is bound to a DataView object. I use a link in the DataGrid control to go to a details page for the record to edit a number of different fields for the record. After updating the dataset...
2
7405
by: Jigar.Patel | last post by:
Hi, I have following enum definition. public enum OperationTypes { All = 1, New = 2, View = 4,
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.