Click here to Skip to main content
15,892,927 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I have lost my favourite metaphor Pin
PIEBALDconsult14-Sep-19 2:04
mvePIEBALDconsult14-Sep-19 2:04 
GeneralRe: I have lost my favourite metaphor Pin
Rick York14-Sep-19 6:05
mveRick York14-Sep-19 6:05 
GeneralRe: I have lost my favourite metaphor Pin
BillWoodruff14-Sep-19 21:37
professionalBillWoodruff14-Sep-19 21:37 
GeneralRe: I have lost my favourite metaphor Pin
Duncan Edwards Jones15-Sep-19 11:48
professionalDuncan Edwards Jones15-Sep-19 11:48 
RantStupid settings Pin
lopatir13-Sep-19 20:36
lopatir13-Sep-19 20:36 
GeneralRe: Stupid settings Pin
Nelek13-Sep-19 23:29
protectorNelek13-Sep-19 23:29 
GeneralRe: Stupid settings Pin
honey the codewitch14-Sep-19 1:50
mvahoney the codewitch14-Sep-19 1:50 
Generalwin 10 update ... all your base are us readonly Pin
BillWoodruff13-Sep-19 17:47
professionalBillWoodruff13-Sep-19 17:47 
in sum: a Win 10 update has, evidently, made all my user folders readonly, and permissions can't be changed.

note: i post this here because i think the issue goes beyond specific code used here to illustrate the issue.

Lo and behold, some serialization code using DataContractSerializer (worked fine two months ago) that creates a file on the desktop throws a "file not found exception" when creating a new FileStream.
using (var writer = 

//File.Create(filename1)) 

new FileStream(filename1, FileMode.Create, FileAccess.Write)) // or ... FileShare.ReadWrite, FileIOPermissionAccess.AllAccess))
{
     dcs.WriteObject(writer, instance);
}
So:

1 verify the directory exists. i know the File does not exist because i delete it if it does exist.

2 try using File.Create to create the Stream, experiment with all the various params to 'new FileStream'

3 scratch my head

4 a suspicion dawns that permissions on the Directory have changed. yep: iit's readonly: i change permissions on the Directory: they immediately revert back to readonly.

5 Turns out that a Win update has made everything on my primary drive readonly.

6 go google and find ... yep ... other people are having the same problem after an update: [^]

7 try the various remedies suggested in the above link: they don't work.

8 post on Lounge

9 scratch head
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali


modified 14-Sep-19 0:11am.

AnswerRe: win 10 update ... all your base are us readonly Pin
Randor 13-Sep-19 18:33
professional Randor 13-Sep-19 18:33 
GeneralRe: win 10 update ... all your base are us readonly Pin
BillWoodruff13-Sep-19 19:27
professionalBillWoodruff13-Sep-19 19:27 
JokeRe: win 10 update ... all your base are us readonly Pin
Randor 13-Sep-19 20:42
professional Randor 13-Sep-19 20:42 
GeneralRe: win 10 update ... all your base are us readonly Pin
Nelek13-Sep-19 23:25
protectorNelek13-Sep-19 23:25 
GeneralMini CCCs 125 Pin
Tim Deveaux13-Sep-19 16:34
Tim Deveaux13-Sep-19 16:34 
GeneralRe: Mini CCCs 125 Pin
OriginalGriff13-Sep-19 21:51
mveOriginalGriff13-Sep-19 21:51 
GeneralRe: Mini CCCs 125 Pin
Tim Deveaux14-Sep-19 0:34
Tim Deveaux14-Sep-19 0:34 
GeneralRe: Mini CCCs 125 Pin
Chris C-B14-Sep-19 1:17
Chris C-B14-Sep-19 1:17 
GeneralRe: Mini CCCs 125 - Done Pin
Tim Deveaux14-Sep-19 1:21
Tim Deveaux14-Sep-19 1:21 
QuestionDoes anyone here remember BTrieve? (old DOS one and its variants) Pin
honey the codewitch13-Sep-19 10:27
mvahoney the codewitch13-Sep-19 10:27 
AnswerRe: Does anyone here remember BTrieve? Pin
User 1106097913-Sep-19 10:40
User 1106097913-Sep-19 10:40 
PraiseRe: Does anyone here remember BTrieve? Pin
honey the codewitch13-Sep-19 10:40
mvahoney the codewitch13-Sep-19 10:40 
GeneralRe: Does anyone here remember BTrieve? Pin
User 1106097913-Sep-19 10:44
User 1106097913-Sep-19 10:44 
GeneralRe: Does anyone here remember BTrieve? Pin
honey the codewitch13-Sep-19 10:45
mvahoney the codewitch13-Sep-19 10:45 
GeneralRe: Does anyone here remember BTrieve? Pin
k505413-Sep-19 15:06
mvek505413-Sep-19 15:06 
GeneralRe: Does anyone here remember BTrieve? Pin
honey the codewitch13-Sep-19 15:13
mvahoney the codewitch13-Sep-19 15:13 
GeneralRe: Does anyone here remember BTrieve? Pin
Randor 13-Sep-19 18:19
professional Randor 13-Sep-19 18:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.