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

  • Home
  • SEARCH
  • 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 257163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:04:27+00:00 2026-05-11T22:04:27+00:00

We have a service using WCF and Impersonation. A user can log in to

  • 0

We have a service using WCF and Impersonation.

A user can log in to the client application with credentials that are part of an Active Directory system.

The users login is impersonated service side.

This works fine when the user who logged in is setup as a Local Admin on their host machine.

But a problem occurs when they are a non-privileged (standard) user. We get an exception stating Access Denied “One of our DLLs”. (It happens on all of our DLLs)

  • 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-11T22:04:27+00:00Added an answer on May 11, 2026 at 10:04 pm

    This was actually a simple issue of permissions on the deployment environment.

    Using the Code Access Security Policy Tool (Caspol.exe) it was just a matter of applying the correct permissions. There’s a how-to-use guide on msdn.

    The actual command line string was

    CasPol.exe -addgroup 1 -strong -file D:\deployment_location\WcfServiceHost.exe -noname -noversion FullTrust

    This was performed on a collection of services. Since our version numbers were changing frequently using the ‘noversion’ was helpful, the service also required FullTrust in our setting.

    To re-use the fix for various machines, create a PowerShell script (or batch file) and using the ‘polchgprompt’ parameter to turn off prompts so the script can execute without intervention.

    polchgprompt – “Enables or disables the prompt that is displayed whenever Caspol.exe is run using an option that would cause policy changes.”

    Script Structure:

    CasPol.exe -polchgprompt off
    
    --all the individual service calls--
    CasPol.exe -addgroup 1 -strong -file D:\deployment_location\WcfServiceHost.exe -noname -noversion FullTrust
    ...
    
    CasPol.exe -polchgprompt on
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF Service that is using Impersonation. I have verified that the
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have developed a Web service using WCF Service Application. This service application is
I have a .NET web service (using asmx...have not upgraded to WCF yet) that
I have a system that sends a object to another service via WCF using
I have a WCF client and service using HTTPS over the wsHttpBinding. One common
I have a wcf service that is secured using WIF. I'm implementing token caching
first, a little background. I am using VS2010 and have a WCF service that
I have created a WCF Data Service and using it in a web application
I have a WCF Service Library (implemented using NH) with one of the class

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.