473,322 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

File Locking

Hi all,

Anyone have a "File Locking" experience?

I want to ask if the application can prevent 2 user access (concurrently) to
file for content editing...

any lock and unlock mechanism dotnet buildin?

Thanks in advanced.
steambun
Oct 26 '05 #1
2 1344
have you checked out the FileShare enumeration in the System.IO namespace

http://msdn.microsoft.com/library/de...classtopic.asp
HTH

Ollie Riches
"Stanley Cheung" <st*****@starlabz.com> wrote in message
news:OD**************@tk2msftngp13.phx.gbl...
Hi all,

Anyone have a "File Locking" experience?

I want to ask if the application can prevent 2 user access (concurrently)
to
file for content editing...

any lock and unlock mechanism dotnet buildin?

Thanks in advanced.
steambun

Oct 26 '05 #2
Hi all,
i think my description is wrong,

Actually, i want to do the following requirement as below:

Admin A login and go to edit Page A, Admin B login and attempts to edit Page
A, system will report that Page A is using by another person, and Page A
will release to public until Admin A click "OK" or "Cancel".

I think i got the big problem when Admin A close the browser un-normally,
e.g: if edit is popup window, Admin A can close the popup window by
top-right corner button. So we can't release Page A and then no one can
access Page A anymore.

Please advise if you have any ideas........ Thanks.
steambun
"Ollie Riches" <ol**********@phoneanalyser.net> ¦b¶l¥ó
news:OD**************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
have you checked out the FileShare enumeration in the System.IO namespace

http://msdn.microsoft.com/library/de...classtopic.asp

HTH

Ollie Riches
"Stanley Cheung" <st*****@starlabz.com> wrote in message
news:OD**************@tk2msftngp13.phx.gbl...
Hi all,

Anyone have a "File Locking" experience?

I want to ask if the application can prevent 2 user access (concurrently) to
file for content editing...

any lock and unlock mechanism dotnet buildin?

Thanks in advanced.
steambun


Oct 27 '05 #3

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

Similar topics

18
by: Dino | last post by:
dear all, i've created an application for a customer where the customer can upload ..csv-files into a specified ftp-directory. on the server, a php-script, triggered by a cronjob, reads all the...
2
by: Kamus of Kadizhar | last post by:
Thanks to Robert Brewer, I got enough insight into logging to make it work.... Now I have another issue: file locking. Sorry if this is a very basic question, but I can't find a handy reference...
2
by: Corne' Cornelius | last post by:
Hi, When you open a file for writing/appending with open() or fopen(), and you have multiple applications that might want to write to the same file at the same time, could that cause weirdness...
8
by: Stephen Corey | last post by:
I'm writing an app that basically just appends text to a text file on a Win2K Server. They fill out a form, click a button, and 1 line is appended to the file. Multiple people will run this app at...
4
by: darrel | last post by:
I've been dealing with a file locking issue for a while. Our CMS spits out a new XML file each time an item in the DB is updated. This XML file is basically our site menu, and is what we use on...
1
by: ABCL | last post by:
Hi All, I am working on the situation where 2 different Process/Application(.net) tries to open file at the same time....Or one process is updating the file and another process tries to access...
13
by: George | last post by:
Hi, I am re-writing part of my application using C#. This application starts another process which execute a "legacy" program. This legacy program writes to a log file and before it ends, it...
17
by: shineofleo | last post by:
Here is the situation: I wrote a VB programm, which stores all the information in a single Access database file using jet engine. It worked well, however one of my customs reported that there was...
15
by: Amir Michail | last post by:
Hi, Trying to open a file for writing that is already open for writing should result in an exception. It's all too easy to accidentally open a shelve for writing twice and this can lead to...
15
by: Matt Brandt | last post by:
I am trying to get multiple threads to lock specific regions of a file. However, since each thread has the same PID, it appears that a lock by one thread does not block another thread from the same...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.