Click here to Skip to main content
14,363,089 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 3:04
protectorPIEBALDconsult14-Sep-19 3:04 
GeneralRe: I have lost my favourite metaphor Pin
Rick York14-Sep-19 7:05
mveRick York14-Sep-19 7:05 
GeneralRe: I have lost my favourite metaphor Pin
BillWoodruff14-Sep-19 22:37
mveBillWoodruff14-Sep-19 22:37 
GeneralRe: I have lost my favourite metaphor Pin
Duncan Edwards Jones15-Sep-19 12:48
professionalDuncan Edwards Jones15-Sep-19 12:48 
RantStupid settings Pin
lopatir13-Sep-19 21:36
memberlopatir13-Sep-19 21:36 
GeneralRe: Stupid settings Pin
Nelek14-Sep-19 0:29
protectorNelek14-Sep-19 0:29 
GeneralRe: Stupid settings Pin
honey the codewitch14-Sep-19 2:50
memberhoney the codewitch14-Sep-19 2:50 
Generalwin 10 update ... all your base are us readonly Pin
BillWoodruff13-Sep-19 18:47
mveBillWoodruff13-Sep-19 18: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 19:33
professional Randor 13-Sep-19 19:33 
GeneralRe: win 10 update ... all your base are us readonly Pin
BillWoodruff13-Sep-19 20:27
mveBillWoodruff13-Sep-19 20:27 
JokeRe: win 10 update ... all your base are us readonly Pin
Randor 13-Sep-19 21:42
professional Randor 13-Sep-19 21:42 
GeneralRe: win 10 update ... all your base are us readonly Pin
Nelek14-Sep-19 0:25
protectorNelek14-Sep-19 0:25 
GeneralMini CCCs 125 Pin
Tim Deveaux13-Sep-19 17:34
memberTim Deveaux13-Sep-19 17:34 
GeneralRe: Mini CCCs 125 Pin
OriginalGriff13-Sep-19 22:51
protectorOriginalGriff13-Sep-19 22:51 
GeneralRe: Mini CCCs 125 Pin
Tim Deveaux14-Sep-19 1:34
memberTim Deveaux14-Sep-19 1:34 
GeneralRe: Mini CCCs 125 Pin
Chris C-B14-Sep-19 2:17
memberChris C-B14-Sep-19 2:17 
GeneralRe: Mini CCCs 125 - Done Pin
Tim Deveaux14-Sep-19 2:21
memberTim Deveaux14-Sep-19 2:21 
QuestionDoes anyone here remember BTrieve? (old DOS one and its variants) Pin
honey the codewitch13-Sep-19 11:27
memberhoney the codewitch13-Sep-19 11:27 
AnswerRe: Does anyone here remember BTrieve? Pin
0x01AA13-Sep-19 11:40
professional0x01AA13-Sep-19 11:40 
PraiseRe: Does anyone here remember BTrieve? Pin
honey the codewitch13-Sep-19 11:40
memberhoney the codewitch13-Sep-19 11:40 
GeneralRe: Does anyone here remember BTrieve? Pin
0x01AA13-Sep-19 11:44
professional0x01AA13-Sep-19 11:44 
GeneralRe: Does anyone here remember BTrieve? Pin
honey the codewitch13-Sep-19 11:45
memberhoney the codewitch13-Sep-19 11:45 
GeneralRe: Does anyone here remember BTrieve? Pin
k505413-Sep-19 16:06
memberk505413-Sep-19 16:06 
GeneralRe: Does anyone here remember BTrieve? Pin
honey the codewitch13-Sep-19 16:13
memberhoney the codewitch13-Sep-19 16:13 
GeneralRe: Does anyone here remember BTrieve? Pin
Randor 13-Sep-19 19:19
professional Randor 13-Sep-19 19: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.