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 623653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:06:58+00:00 2026-05-13T19:06:58+00:00

I hosting a WCF service on Windows 7 IIS. When the service is trying

  • 0

I hosting a WCF service on Windows 7 IIS. When the service is trying to write to a config file and getting the error:

“Access to the path ‘C:\Program Files (x86)\MIMS\Master\ahug_uqt.tmp’ is denied.”

This is not the name of the config file although I assume ConfigurationManager is creating a temp file then updating this to the real config file.

Anyway, I have checked that neil-laptop (that’s my user), ASPNET, NETWORKSERVICE and LOCALSERVICE have full control over the programs folder and they do. When debugging into the service it shows the current thread principal as neil-laptop. This should not be the case as it is an IIS process.

So, how can I see which user the thread is running under so that I can give this the appropriate permissions. Bearing in mind also that the above worked on Win2003 and XP when I gave the users full control to the folder. Darn you Windows 7.

Hopefully,
Neil.

  • 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-13T19:06:58+00:00Added an answer on May 13, 2026 at 7:06 pm

    I modified the user that the IIS App Pool is running under to use the NETWORK SERVICE account and gave this account permissions to the appropriate folder.

    Simple really. Not sure about security implications for this but the NETWORK SERVICE account is very limited in it’s permissions so should be fine.

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

Sidebar

Related Questions

I am hosting a WCF service in IIS. Randomly lately I have been getting
I host my WCF Service with windows service hosting... now when I call my
I have a WCF service and am hosting it in a Windows Service. I
I have six wcf services that I'm hosting in a windows service. Everything works
I am trying to deploy a Silverlight with WCF Service to a hosting. Basically,
I'm hosting a WCF service in IIS7 on Windows Server 08, sp2. The service
Background: We are hosting a .NET 4.0 Windows Workflow activity inside a WCF service
Environment: Windows XP, Visual Studio 2010, IIS NOT installed. I've developed a WCF service
I am trying to host a WCF service, using NetTcpBinding in a Windows service.
WCF Service WCF service hosting in Windows Services WinService log on as Network Service

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.