From c5f12b116ad3b3ecfc4ee2c24c74dd61f3a21acd Mon Sep 17 00:00:00 2001 From: John Date: Tue, 25 Apr 2017 16:49:19 +0000 Subject: [PATCH] B2017-078 Open the RO FST file for reading and with file sharing of read/write --- PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs index 2825fdfc..ea36fa7a 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs @@ -248,7 +248,9 @@ namespace VEPROMS.CSLA.Library ROFstInfoList fstList = ROFstInfoList.GetBySize(rdi.RODbID, (int)fiRofst.Length); if (fstList.Count > 0) { - FileStream fsIn = new FileStream(rofstPath, FileMode.Open, FileAccess.Read, FileShare.Read); + // B2017-078 WCN users with Read only access to the RO FST file where not able to open the file for reading when + // another user was accessing the file. Changed FileShare from Read to ReadWrite + FileStream fsIn = new FileStream(rofstPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); // Create an instance of StreamReader that can read characters from the FileStream. BinaryReader r = new BinaryReader(fsIn); byte[] ab = r.ReadBytes((int)fsIn.Length);