Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 18th, 2008, 02:29 PM
Friend of Wrox
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default Impersonate with windows service for Service A/C


Impersonate with windows service not work for Service Account..

Business Requirement:-WindowsService1 should fectch files on the client laptop as well as any Mapped drives related with Servers.

To access server,client/business provides service account mydomain\globalServiceAccount and globalserviceAccountPassword

Since this WindowsService1 should fetch Laptop files and any mapped server(service account).

While imporsonating the service it is not fectching any files on the Server
e.g. Z mapped drives is \\abcServer\sharedFolder <--to access this folder Service account is required.

Event after performing imporsonate , my service windowservice1 is not at all fectching any files,where as there
are files available on \\abcServer\SharedFolder.

Let me know if you have any inputs or pointer that will windowService1 to fetch files from the myLaptop where this Service is installed.

1>I logged into my Laptop with my usercredentials(mydomain\myuserId,mypassword)
2>WindowsService1 is runnning on MyLaptop.
3>I Mapped any other server with z drives 'abcServer\sharedFolder.(with service account-mydomain\globalServiceAccount and globalserviceAccountPassword)
4>my WindowsService1 should fetch files with imporsonation from 'abcServer\sharedfolder"
5>my WindowsService1 should also fetch files stored in mydesktop and C: drives files.

any inputs/code snippet/pointer would be a great help

Since i am new to Windows Service,let me know if your inputs help me to resolve this.

Cheers :)

Cheers :)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows service exarkuun General .NET 0 September 7th, 2007 10:19 AM
Windows Service everest C# 1 March 8th, 2007 01:10 PM
Accessing Windows service from a windows app sajid08 C# 1 October 6th, 2006 10:25 AM
Windows Service bmains Pro VB.NET 2002/2003 2 January 21st, 2005 03:21 PM
Windows Service hunghung General .NET 3 January 20th, 2005 01:43 PM

All times are GMT -4. The time now is 08:00 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.