Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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

Hi,

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 :)

vinod
__________________
Cheers :)

vinod


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





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