Writing to a Mapped Drive From Windows Service running on Windows

G

Guest

Hi,
I have my Windows Service running on Windows XP professional with
local system account,the service developed using C# ,on .Net Framwork 1.1 and
i have a mapped drive to windows 2000 professional machine on my Windows XP
machine when i am trying to create a new file through the windows service i
am getting error message as "could not find part of the path" .When the same
service running on the Windows 2000 professional i am able to create a file
in the mapped drive through the service .problem only persist when i run my
service in the windows xp machine please let any one help can help me
 
L

Lanwench [MVP - Exchange]

Sen said:
Hi,
I have my Windows Service running on Windows XP
professional with local system account,the service developed using C#
,on .Net Framwork 1.1 and i have a mapped drive to windows 2000
professional machine on my Windows XP machine when i am trying to
create a new file through the windows service i am getting error
message as "could not find part of the path" .When the same service
running on the Windows 2000 professional i am able to create a file
in the mapped drive through the service .problem only persist when i
run my service in the windows xp machine please let any one help
can help me

You can't use localsystem to run a service that requires access to another
computer. Use a local account/password that exists identically on the W2k
computer and has the appropriate permissions there.
 
G

Guest

Hi Lan,
I am using the Local Sytem account/password it did nt worked ...
i searched in the web and i found some solution , the service will be running
under the Local Sytem account/password and inside the code i impersonate the
current logged userid and password and i am able to create text,csv files in
the mapped drive but i am not able to create files like excel and access ,i
am getting error messages like "Could not find part of the path" . could you
help me to solve the issue

Senthil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top