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 7795235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:00:59+00:00 2026-06-01T23:00:59+00:00

Occasionally some users of our software report issues that are caused by wired DirectoryNotFoundException

  • 0

Occasionally some users of our software report issues that are caused by wired DirectoryNotFoundException exceptions. This happens only to some users running Vista. Not all users running Vista have this problem. There were no reports of this issue from users running Win7 or XP (however that does not prove that this issue does not happen on these systems – we just don’t have such reports).

Our software stores some graphics data inside ProgramData folder. When program tries to read those files the following exception is thrown:

Message: Could not find a part of the path 'C:\ProgramData\My App Name\Subfolder\Subfolder'.
mscorlib
   in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   in System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
   in System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   in System.IO.Directory.GetFiles(String path)

The path is C:\ProgramData\My App Name\Subfolder\Subfolder. Folder exists – I’m 100% sure. It was created by NSIS installer. It’s writeable to all users (or at least it should be as that’s how we set it with NSIS script). User confirms that the folder exists – he is able to navigate to that location using Windows Explorer.

At first I thought it was the UAC issue, but the exception says Could not find a part of the path. This drives me crazy as we are unable to reproduce the issue on our test systems. No matter the configuration. XP, Vista, Win7 – on our machines it just works.

  • 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-01T23:01:00+00:00Added an answer on June 1, 2026 at 11:01 pm

    Finally we found a user that had the same issue and was willing to help with testing. The root cause of this error seems to be the NSIS installer which creates folder with one wrong character. No one noticed that because that char looks almost identical to the one that was supposed to be created. So DirectoryNotFoundException was indeed right.

    The NSIS was supposed to create a folder with ń char

    // U+0144   ń   c5 84   LATIN SMALL LETTER N WITH ACUTE
    

    but instead created a folder with ñ char

    // U+00F1   ñ   c3 b1   LATIN SMALL LETTER N WITH TILDE
    

    The wired part is that happens only on some machines and we could not reproduce that.

    Lesson for today: never fully trust your users when it comes to debugging. Even screenshot provided by the user was misleading as it displayed only contents of the folder in question.

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

Sidebar

Related Questions

I occasionally get some issues with Visual Studio and ReSharper that causes me to
Some of the users of our Ruby on Rails app have complained that page
I'm using jQuery UI Select Menu and occasionally have some issues. This is located
Context: We have some users reporting issues with a file upload feature in our
I occasionally have some long running AJAX requests in my Wicket application. When this
I want to store the average values of some data that is occasionally generated
Occasionally while attempting to save a Crystal Report that I'm working on in VS2008,
I have an Excel 2003 add-in deployed in one of our departments that occasionally
I have some ad-hoc reporting users hitting some SQL Server views. Occasionally the read
I have a program that occasionally needs to scan some directories recursively (an improvement

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.