Hi,
the mapped drive works fine when i try to access from my windows application
developed in C#, however the same does not work when i try it from windows
service developed in C#.
The main purpose for doing this is becuase the service will be running on 2
different machine & will be accessing different shared folders on different
servers. So in order to avoid hard coding the network share I intend to use
a mapped network drive. Here again we do not have the option of reading the
network share from a file or database.
thanks
Niloday.
"Jan Tielens" <ja*@no.spam.please.leadit.be> wrote in message
news:eg**************@tk2msftngp13.phx.gbl...
Probably the account that you are using does not has the N: drive mapped
to \\FS1NS\SharedDir\. I suggest you try in your code to use the UNC
(\\FS1NS\SharedDir\) instead of N:\Storage.
--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"Niloday" <ni******@rheal.com> schreef in bericht
news:uF*************@tk2msftngp13.phx.gbl... Hi All,
I am trying to access a mapped network drive from a service that I have
created.
The service needs to create/delete folders/files on a network drive.
When I tried to connect to a folder on mapped network drive (eg. N:\Storage
that corresponds to \\FS1NS\SharedDir\), I get an error as "Could not find
part of path N:\".
I tried running the service in the Administrators account but the same
problem. The thing works if I directly access the network share
\\FS1NS\SharedDir\.
Can anybody please throw some light on whats happening here? Is there
anykind of restriction on access to the mapped drives when tried from a
service (it did work from a C# windows application).
Many thanks in advance
Regds,
Niloday