Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 935855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:13:19+00:00 2026-05-15T21:13:19+00:00

I have a windows service which is installed to C:\Windows\System32. It has a usual

  • 0

I have a windows service which is installed to C:\Windows\System32. It has a usual .config file, where some app settings are stored. I have another app that writes some values to this config. When i run this app it throws an exception at this line


var config = ConfigurationManager.OpenExeConfiguration(serviceExePath);

The exception says: An error occurred loading a configuration file: The parameter ‘exePath’ is invalid. Parameter name: exePath

When I put my windows service to another folder everything is ok! Is it due to some access violation rules or smth like that? Is there any way to use System32 folder for my service and open its config?

OS: Windows 7 x64

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:13:19+00:00Added an answer on May 15, 2026 at 9:13 pm

    It is a poor choice for a file location. That directory belongs to Windows, it isn’t suitable for your own apps. For one, you’ll need admin privileges to open files in that directory. You don’t get that without a manifest to trigger the UAC prompt.

    For another, that directory is virtualized on the x64 version of Windows. A 32-bit app trying to access files there will be redirected to c:\windows\syswow64.

    I could have been more accurate if you posted the stack trace. But, just don’t do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a application written in C#, installed as a [WCF] windows service, which
I have created a windows service which allows communications via namedpipes. This code worked
I have created one windows service which send an email notifications to users (list
I have a system which includes an installer, a windows service and a configuration
I have a .NET 3.5 Windows Service that comes in several different configurations/flavours ie.
I have a C++ Windows service, and I would like to access an executable
My Question: I cannot navigate to the base address once the service is installed
Here's my current scenario which is specifically what i'd like to discuss as a
I just managed to get py2exe work on a Windows Virtual Machine but stumbled
Reposting my unanswered in technet.microsoft question ? MSDN ASP.NET Delegation article tells: 1) When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.