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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:58:25+00:00 2026-05-31T22:58:25+00:00

Strange problem occurs on the production platform (64 bit win 2008 server). It is

  • 0

Strange problem occurs on the production platform (64 bit win 2008 server).
It is connected with File.Exists and File.Delete methods…

On test platform in debug (win xp), etc it works fine. On Server 2008 for the first few times
File.Exists reported true for the file which didn’t exist …

When I Was doing further tests File.Exists finally reported false for the file which didn’t exist.
But File.Delete hadn’t thrown any error when attempting to delete the file which didn’t exists …

What is happening … ?

I read somewhere that system virtualation could mess the things up … but hasn’t found any file in: %userprofile%\AppData\Local\VirtualStore

  • 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-31T22:58:27+00:00Added an answer on May 31, 2026 at 10:58 pm

    File.Delete on MSDN:

    public static void Delete(string path)
    

    If the file to be deleted does not exist, no exception is thrown.

    So. it’s deliberated…. no true \ false and no exceptions, just delete the file if it exist.

    Note about File.Exist:

    public static bool Exists(string path)
    

    Return Value Type: System.Boolean

    true if the caller has the required permissions and path contains the name of an existing file; otherwise, false. This method also returns false if path is Nothing, an invalid path, or a zero-length string. If the caller does not have sufficient permissions to read the specified file, no exception is thrown and the method returns false regardless of the existence of path.

    MSDN

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

Sidebar

Related Questions

I'm having a strange problem in Visual Studio 2008 where my Pending Checkins window
I've got a strange problem with SQL Server 2000, and I just can't think
I've got a strange problem with indexing PDF files in SQL Server 2005, and
We have very strange problem, one of our applications is continually querying server by
I am seeing a very strange problem on one of my production boxes. We
strange problem occurs with json_encode(). I have some text in mysql database in russian.
I have a strange problem with css file in google app engine. If i
We are seeing a MySQL connection problem on our server. The strange thing is
I am experiencing a strange problem with asp.net forms authentication. This problem only occurs
Strange problem. My Query looks like SELECT DISTINCT ID, `etcetc`, `if/elses over muliple joined

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.