473,836 Members | 2,156 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need ideas - how to determine when another machine has persisted a file

Basically, I keep the state of some objects serialized in an xml file
through the use of a data set. The xml file serialized is persisted
onto a shared network drive. However, the file is only deserialized
upon startup.

I'd like to automatically refresh the state of my objects when other
users have changed their state through this same persisted file. What
is the best way to determine when this has happened ? Continually run
a timer and check if the persisted file has changed and once it has
changed, deserialize the file again ? Run a background thread and
constantly check ? I'm looking for any ideas on how to accomplish

I guess I envision this working similar to the way explorer works in
windows. For example, if you have a directory open and someone else on
the network deletes/adds a file, your directory view is automatically

Any ideas ?

Nov 21 '05 #1
0 948

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

Similar topics

by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into the URL, in the format http://yourapplicationpath/(Session.SessionID)/... which saves numerous headaches when it comes to storing state across page requests and sessions.
by: David Hearn | last post by:
I have a webform that I am creating. I need for the user to be able to pass it the path and name of a file on his/her local machine without any interaction. I don't want to have to use the file upload control. This will be an automated process on their end. They should only have to type the url with a path/file name and let it upload the file that they specify (example: They type http://www.mysite.com?FileName=C:\Test\Test.txt and it will...
by: Ezra | last post by:
Our company's web server is trying to access graphics files on another server. When I run the app from Visual Studio (1.0) on my localhost, the server in question is available (which is accessed a virtual directory) and I'm able to display the files. However, when we logon to the intranet through a browser, and click the link which will display the files, we get the "Enter Network Password" logon box. We set the proper permissions on...
by: Ben Fidge | last post by:
What is the correct way to determine when your app is running on my development machine and when it is running on the live server? In the web.config file you can specify how errors are displayed according to whether the app is running on live server or not. How does the system know? Kind regards Ben
by: David | last post by:
I want to develop a single web app that will be run in three environments: development, test, and production. The test and prodc. will be on the same machine under different directories. I wish to have same type of file, configuration string, etc. in the root directory of each environment to tell the program where it is running. I will use this to determine what connection string, sql, etc. to use. Currently, I am using 3 different...
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup purposes). Now, the drive is defective and can't read the tapes anymore. Server is AIX 4.3.2 and database is IBM DB2 Server (DB2 for AIX Version 2.1.2)
by: Jules Winfield | last post by:
I've developed a WinForms application that allows users to create a number of child forms within a larger parent form. The child forms can be dragged around within the bounds of the parent. They can also be resized. When the user closes the application, I want the size and position of the child forms to be persisted. I've figured out how to do this. The only thing I'm lacking is the z-order. How do I determine the z-order of each child...
by: Karina | last post by:
Hello: I am taking over someone else's code and my users are experiencing tons of problems but when I try to go into the source code to edit and try to fix these problems, I realize that all the old programmer's code is in DLLs so I cannot access the source from anywhere. It's really becoming a problem. So..my question is twofold, is there a way to extract the code from the DLL (probably not), if not, what are some other options I...
by: weird0 | last post by:
Hi! I need answers to these questions that were given to me in a job test. 1. What is IDisposable in .NET? 2.What is the base class of all the controls in .NET? 3.What is the difference betweeen HAVING and WHERE ? Never used HAVing clauuse or seen it. 4.What is pre-emptive multitasking? 5.What is object serialization? 6.What is the difference between web.config and machine.config? Never
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 usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 most users, this new feature is actually very convenient. If you want to control the update process,...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.