Link to home
Start Free TrialLog in
Avatar of gautam_reddyc
gautam_reddyc

asked on

Impersonation in C# Windows Service

Hey,
   I neeed to implement authorization and impersonation for my C# windows service..

  It is same as doing ASP.NET or do you have a different process..

  i tried the below code.. it does not work..
 
   neither does it give error...

   It allows every one to access the code..

 <authentication mode="Windows"/>
    <authorization>
     
      <deny users="*" />
    </authorization>

   <identity impersonate="true"
          userName="domain\user"
          password="password" />

ofcourse, i used the relevant domain and user for my application
ASKER CERTIFIED SOLUTION
Avatar of swapneel_d14
swapneel_d14

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Todd Gerbert
Todd Gerbert
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
gautam_reddyc:

Do you mean a Windows service, or a web service?