Windows Service Access Denied to Path

Posted on 2014-07-14
Last Modified: 2014-07-16
I am trying to test an update to a Windows Service and I need for it to read a file on my local drive e.g. C:\testfolder\Schema

I have done everything I can think of to grant rights to this folder for everyone and I continue to get this error.  Error Message -- Access to the path C:\testfolder\Schema.  The service is running as LocalSystem.  My login has Administrator rights.  

Does anyone know what could be wrong.

thanks in advance.
Question by:sherbug1015
    LVL 5

    Accepted Solution

    Have you gone through the "advanced" file permissions of the file, parent folders(s) and root of C:\? Checking specifically for inheritance, "applies onto" settings, and "deny access" permissions?

    You can always take ownership of the top level folder, and apply to all children/objects so you don't have to check everything under C:\testfolder individually.
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    Is that a file or a directory? Files in Windows normally have extensions.

    Author Comment

    I have gone through the "advanced" settings and have taken ownership of the top level folder.  Still getting an access denied.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now