Click here to Skip to main content
15,885,985 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: File delete permission problem Pin
primem0ver13-Jul-18 9:32
primem0ver13-Jul-18 9:32 
GeneralRe: File delete permission problem Pin
Gerry Schmitz13-Jul-18 10:18
mveGerry Schmitz13-Jul-18 10:18 
GeneralRe: File delete permission problem Pin
primem0ver13-Jul-18 13:41
primem0ver13-Jul-18 13:41 
GeneralRe: File delete permission problem Pin
Gerry Schmitz14-Jul-18 4:48
mveGerry Schmitz14-Jul-18 4:48 
AnswerRe: File delete permission problem Pin
Dave Kreskowiak13-Jul-18 9:53
mveDave Kreskowiak13-Jul-18 9:53 
GeneralRe: File delete permission problem Pin
primem0ver13-Jul-18 10:35
primem0ver13-Jul-18 10:35 
GeneralRe: File delete permission problem Pin
Dave Kreskowiak13-Jul-18 11:07
mveDave Kreskowiak13-Jul-18 11:07 
GeneralRe: File delete permission problem Pin
primem0ver13-Jul-18 14:05
primem0ver13-Jul-18 14:05 
Ok. I am following you. I realize that permissions inherited from the user make sense. However, having an application run with fewer permissions than the user is not a safety hazard in terms of security and my experience is that this can happen.

Another example (which is incidentally timely, and appropriate for this thread) is that permissions are an issue with certain virtual system accounts on which older versions of this program run. (The creation and deleting of jpgs is a new, unreleased, feature). I have isolated the old issue to something in the way permissions are granted to newer versus older users. The following code causes the application to crash for newer users only. The folder being searched (directoryInfo) is the Downloads folder for the user:

FileInfo[] fileInfos = directoryInfo.GetFiles("GeniusExport*.*", SearchOption.TopDirectoryOnly); // CAUSES CRASH ON VM

For all users, the user profile directory is a mapped drive. Perhaps directoryInfo resolves to something non-existent for newer users and perhaps I should test that; however this is a Windows 10 environment. I know for a fact that the people I have worked with who have this problem have a Downloads folder that is being used.
GeneralRe: File delete permission problem Pin
Dave Kreskowiak13-Jul-18 17:23
mveDave Kreskowiak13-Jul-18 17:23 
GeneralRe: File delete permission problem Pin
Gerry Schmitz14-Jul-18 5:01
mveGerry Schmitz14-Jul-18 5:01 
GeneralRe: File delete permission problem Pin
primem0ver16-Jul-18 5:36
primem0ver16-Jul-18 5:36 
GeneralRe: File delete permission problem Pin
Dave Kreskowiak16-Jul-18 5:49
mveDave Kreskowiak16-Jul-18 5:49 
QuestionError in list saved in user settings: strings doesn't save Pin
SebGM20186-Jul-18 20:03
SebGM20186-Jul-18 20:03 
AnswerRe: Error in list saved in user settings: strings doesn't save Pin
Richard MacCutchan6-Jul-18 20:58
mveRichard MacCutchan6-Jul-18 20:58 
AnswerRe: Error in list saved in user settings: strings doesn't save Pin
Dave Kreskowiak7-Jul-18 6:02
mveDave Kreskowiak7-Jul-18 6:02 
QuestionC# Student Programming Pin
Member 1388662825-Jun-18 10:36
Member 1388662825-Jun-18 10:36 
AnswerRe: C# Student Programming PinPopular
Dave Kreskowiak25-Jun-18 11:18
mveDave Kreskowiak25-Jun-18 11:18 
AnswerRe: C# Student Programming Pin
Maciej Los25-Jun-18 20:01
mveMaciej Los25-Jun-18 20:01 
GeneralRe: C# Student Programming Pin
Mycroft Holmes25-Jun-18 20:16
professionalMycroft Holmes25-Jun-18 20:16 
PraiseRe: C# Student Programming Pin
Maciej Los25-Jun-18 20:49
mveMaciej Los25-Jun-18 20:49 
AnswerRe: C# Student Programming Pin
Gerry Schmitz26-Jun-18 5:53
mveGerry Schmitz26-Jun-18 5:53 
RantRe: C# Student Programming Pin
Eddy Vluggen2-Jul-18 23:53
professionalEddy Vluggen2-Jul-18 23:53 
QuestionAccess to and capture NMEA GPS sentences Pin
Member 1352644624-Jun-18 4:26
Member 1352644624-Jun-18 4:26 
AnswerRe: Access to and capture NMEA GPS sentences Pin
Richard MacCutchan24-Jun-18 4:40
mveRichard MacCutchan24-Jun-18 4:40 
AnswerRe: Access to and capture NMEA GPS sentences Pin
Gerry Schmitz24-Jun-18 10:07
mveGerry Schmitz24-Jun-18 10:07 

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.