Thread View: borland.public.delphi.nativeapi.win32
7 messages
7 total messages
Started by Eugene V. Goldberg
Mon, 04 Aug 2008 14:28
Issue with service app
Author: Eugene V. Goldberg
Date: Mon, 04 Aug 2008 14:28
Date: Mon, 04 Aug 2008 14:28
12 lines
1205 bytes
1205 bytes
I have a service which writes to a text file. The problem is, it cant write to network mapped drive. No errors are registered, it just never writes...If i run the service under Administrator account which has all the priviledges, it doesnt help. Any ideas? Thanx, Eugene.
Re: Issue with service app
Author: Eugene V. Goldberg
Date: Mon, 04 Aug 2008 14:34
Date: Mon, 04 Aug 2008 14:34
6 lines
1276 bytes
1276 bytes
I have tested with Service running on Windows 2003 Server mapping to another Windows 2003 Server; and tested service running on Vista and trying to write to mapped drive on XP... "Eugene V. Goldberg" <egold@mts-nn.ru> wrote in message news:489711f7$1@newsgroups.borland.com...
Re: Issue with service app
Author: Peter Below (TeamB)
Date: Mon, 04 Aug 2008 14:44
Date: Mon, 04 Aug 2008 14:44
21 lines
1722 bytes
1722 bytes
Eugene V. Goldberg wrote: > I have a service which writes to a text file. > > The problem is, it cant write to network mapped drive. No errors are > registered, it just never writes...If i run the service under > Administrator account which has all the priviledges, it doesnt help. A service runs under a user account that usually has no mapped drives defined. Such definitions are account-specific. If your service has network access rights (System does not have that) you can access remote shares via UNC names or map them in code via WNetAddConnection2. You need to do that anyway if the share requires authentication and account used does not have direct access to it. -- Peter Below (TeamB) Don't be a vampire (http://slash7.com/pages/vampires), use the newsgroup archives : http://www.tamaracka.com/search.htm http://groups.google.com
Re: Issue with service app
Author: Marc Rohloff [TeamB]
Date: Mon, 04 Aug 2008 15:29
Date: Mon, 04 Aug 2008 15:29
11 lines
1496 bytes
1496 bytes
On Mon, 4 Aug 2008 18:28:11 +0400, Eugene V. Goldberg wrote: > The problem is, it cant write to network mapped drive. No errors are > registered, it just never writes... It might help if you sort out your error handling so that it does detect the errors. What does your writing code look like? -- Marc Rohloff [TeamB] marc -at- marc rohloff -dot- com
Re: Issue with service app
Author: Remy Lebeau (TeamB)
Date: Mon, 04 Aug 2008 18:24
Date: Mon, 04 Aug 2008 18:24
20 lines
1726 bytes
1726 bytes
"Eugene V. Goldberg" <egold@mts-nn.ru> wrote in message news:489711f7$1@newsgroups.borland.com... > The problem is, it cant write to network mapped drive. That problem is two-fold: First, drive letter assignments are user-specific. The service has to impersonate a particular user and load its Registry hive in order to access its drive letters. Or else it has to assign its own drive letters within its own account. Otherwise, you need to use UNC paths directly instead. Second, services do not have any access to the network by default. The service needs to run in a user account that has network access. Either one of the built-in accounts, such as "NetworkService", or else use a particular user account instead. Gambit
Re: Issue with service app
Author: Eugene V. Goldberg
Date: Tue, 05 Aug 2008 03:00
Date: Tue, 05 Aug 2008 03:00
4 lines
1049 bytes
1049 bytes
okay thanx alot i solved it. "Eugene V. Goldberg" <egold@mts-nn.ru> wrote in message news:48971377@newsgroups.borland.com...
Re: Issue with service app
Author: Donni Devito
Date: Tue, 05 Aug 2008 12:16
Date: Tue, 05 Aug 2008 12:16
22 lines
1522 bytes
1522 bytes
Hello everybody, How can I give user rights to write data to another PCs shared folder like "NetworkService". How can I do that? Regards. "Eugene V. Goldberg" <egold@mts-nn.ru> wrote in message news:489711f7$1@newsgroups.borland.com... >I have a service which writes to a text file. > > The problem is, it cant write to network mapped drive. No errors are > registered, > it just never writes...If i run the service under Administrator account > which has all > the priviledges, it doesnt help. > > Any ideas? > > Thanx, > Eugene. >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads