Skip to content

File.Exists returns true for non existing file (Azure Windows Web App) #52753

@lampersky

Description

@lampersky

Description

I created few files (and directories) inside azure web app file system, with quite long names.
Then I deleted directories and files.

File.Exists still returns True for non existing files, when I tried to delete them again I'm getting an exception.
Other than that, I can't create files again this time getting Could not find a part of the path.

Here is a repro repo.

117718507-7348bb80-b1dc-11eb-8696-d16b453b1e9e.mp4

This issue was first observed within Orchard Core.

Configuration

  • Which version of .NET is the code running on?
    dotnetcore3.1
    net5.0
  • What OS and version, and what distro if applicable?
    azure web app (windows)
  • What is the architecture (x64, x86, ARM, ARM64)?
    I've only checked x64
  • Do you know whether it is specific to that configuration?
    this can't be reproduced locally inside my Windows 10 environment

Regression?

I tried with both dotnetcore3.1 and net5.0, on both same issue.

Other information

App was deployed to azure using WebDeploy.
After restarting webapp, files are not locked anymore, File.Exists returns relevant result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.IOneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions