Share XML file within local network to read/update

Kran2022 406 Reputation points
2023-02-21T08:32:51.62+00:00

Hi All: I need your advice thanks in advance.

I need to develop a app to record/store number of enquiry emails, this app will be used by a few users within the company network.

No database & i cant have a server either, so i'm thinking about saving into xml file using WPF.

How can i share the xml file within the network among a few users to read, update & save data?

  • Contact Person: ( textbox)
  • Shop Name: ( textbox)
  • Adresse : ( textbox)
  • Product Type : ( textbox)
  • Nature of call: ( textbox)
  • Status : (Combobox)
Developer technologies Windows Presentation Foundation
Developer technologies C#
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-02-21T16:33:54.19+00:00

    you have two issues to solve.

    1. file sharing. read and close file. to write open read/write not shared, so only one process can access at a time.
    2. conflict resolution. user one read file and makes changes. user two reads files, makes a change and saves. user one saves file. before the user one save it needs to re-read the file and make any changes made by user two. then apply the user one changes and save.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.