Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 258845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:12:52+00:00 2026-05-11T22:12:52+00:00

I developed a windows service to write PDF file in a directory. The service

  • 0

I developed a windows service to write PDF file in a directory. The service has no problem writing files to local drives. But when it tries to write to network mapped drives, it fails and writes the file in the application directory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:12:52+00:00Added an answer on May 11, 2026 at 10:12 pm

    Here are some experiences I had while creating the same service as you did (reading and saving PDF on a network drive). I had 2 drives: The first without the need of authentication and the second where you had to authenticate.

    Common faults with mapped network drives

    • UNC Path vs Drive Letter: Drive letter’s don’t work, you have to specify your path using the UNC notation. (e.g. \\10.17.194.1\RemoteDir\)

    • Authentication: If the network drive needs you to authenticate, the only way I found was to create the authentication user on the machine running the service. If you need to authenticate as “RemoteUser” with “RemotePassword” to access the network drive, you should create a RemoteUser/RemotePassword account on the server and let the service run as this user.

      If you don’t have the rights to access the directory you’ll be getting a exception telling you it could not find the directory/file or rather that it does not exist.

    • Service can’t establish connection by itself: Also, it is mandatory to access the network drive at least once manually from the explorer so you can browse it. My service was unable to establish a connection to the network drive by itself, it had to be established in the explorer before.

    I hope any of this points help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a windows service. This service runs another process I've developed through
I need to delete a temporary file from my C++ windows application (developed in
Usually I would look at writing a Windows Service to manage tasks that aren't
I have developed a windows service using .net . My service makes some calls
I have developed one windows service through which I am trying to open an
I have a .net Windows Service developed in C#. OnStart of the service I
I have a windows service application developed in C#. The same service needs to
I'd developed a WCF Service using netTCPBinding and embedded it in a Windows Service.
I have developed an app that runs as a windows service and regularly does
I've developed on Windows and .NET for my whole career so forgive my ignorance

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.