[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 476
  • Last Modified:

Hosting a WCF Service and Impersonating another user

I have a Windows Form application that hosts a WCF service.   Everything works great for me.

However, when end users run the application, it won't start this service.   Looking into this, it's because they don't have Admin rights to host a WCF Service using Http protocol.

Is it possible for me to host a WCF Service inside of a Windows Form Application and have that WCF impersonate a user with Admin rights?   We do not want to give the end user Admin rights for several reasons but if we could just impersonate the service that this application hosts, that would be great.

Thoughts?
0
amb1313
Asked:
amb1313
1 Solution
 
Miguel OzSoftware EngineerCommented:
Check:
http://mikehadlow.blogspot.com/2007/01/easy-impersonation.html
for impersonation.

It is possible, but you need to provide the Admin user details.

Thoughts? A better alternative for you is to install the WCF service as a service to avoid impersonating
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now