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

  • Home
  • SEARCH
  • 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 8722989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:31:39+00:00 2026-06-13T07:31:39+00:00

I have a simple C# app (it is WPF), and I am polling a

  • 0

I have a simple C# app (it is WPF), and I am polling a network location for any new *.pdf. The app runs elevated.

The network location has been mapped to the local PC as P:\ so it is quite simple to just monitor P:\ by just doing a Directory.GetFiles(“p:\”, “*.pdf”). This technique works great.

However, the other day I ran into an exception: “Could not find part of the path ‘P:\'” (DirectoryNotFoundException).

I noticed the drive was mapped to the PC, but when the IT guy clicked on the drive in windows explorer, it required a login and password. We were then able to view the P:\ in explorer, but my app still could not access the p:.

I had the IT guy remove the login/password and then it worked (but it could have been due to a restart too, I am not sure).

What is confusing me is that I am not aware of any moment where they ‘enabled’ password protection for the mapped location, so I am not sure when, why, or how it stopped working. I didn’t even know it was password protected.

That leads to my very simple yes/no question: If a mapped drive is password protected in windows explorer, and a user types in the login/password so that they can get to it in explorer, is that enough such that my app does not need to login with user/pass information?

If the answer is no, then I will google the proper technique for accessing p:\ using a user/pass. But any explanation about my problem is surely appreciated.

Thanks

  • 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-06-13T07:31:41+00:00Added an answer on June 13, 2026 at 7:31 am

    The reason it ask for password as the current used logon into windows do not have access to that network path, so did the program run with your logon.

    What you need to do is get IT guys give the account which run your App the permission to access directly so that the password protection will be transparent for you

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

Sidebar

Related Questions

I am totally new to WPF, I have created a simple WPF app that
I have a simple wpf app which has a button that increments a value
I have a simple wpf application WIA .My app has an image control... I
I have an app which runs fine as a simple WPF app having an
I have a simple app that will allow a user to tag a location.
I have a small c# wpf app for doing some simple calculations running off
I have developed a simple DB-editing app using Xceed's excellent DataGrid for WPF (UX
Dear Guys I have a simple wpf app with some local videos , my
I have created a very simple wpf app with mvvm light. I have rows
I have a simple app, that has media element in it, and it plays

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.