Windows services

I developed a Windows service to write a PDF file to a directory. The service has no problems writing files to local drives. But when he tries to write to drives connected to the network, he fails and writes the file to the application directory.

+3
source share
5 answers

Here are some impressions that I had when creating the same service as you (reading and saving a PDF file on a network drive). I had 2 drives: the first without authentication, and the second for authentication.

Common errors with mapped network drives

  • UNC- : , , UNC. (,\\10.17.194.1\RemoteDir \)

  • : , , , , . "RemoteUser" "RemotePassword", RemoteUser/RemotePassword .

    , , , / , , .

  • : , , . , ​​ .

, .

+5

, , .

"Local System", , , . , , .

+2

, , ?

0

, Windows LocalService, . , NetworkService, .

0

:

  • , ?
  • , - GUI, ( ;-))?
  • .NET? , , (CAS)

Perhaps you have problems debugging the service: you can attach a debugger to it, and then tell us what error you are getting. It will help the people here to help you.

Cas

0
source

Source: https://habr.com/ru/post/1711574/


All Articles