Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky missing files in single FDD exe temp dir #35392

Closed
dedale opened this issue Apr 24, 2020 · 3 comments
Closed

Flaky missing files in single FDD exe temp dir #35392

dedale opened this issue Apr 24, 2020 · 3 comments

Comments

@dedale
Copy link

dedale commented Apr 24, 2020

Hello,

We have a .NET Core App 3.1 console application (AKA ysh) deployed as a single framework dependent executable. Based on our ELK metrics, this application is used hundreds of times a day.
But everyday, we have a few users facing failures like:

A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in '<C:\Program Files\dotnet>'.

-- Invoked apphost [version: 3.1.2, commit hash: ... main = { %AppData%\Local\Temp\ysh.exe compile debug }
Redirecting errors to custom writer:
The managed DLL bound to this executable is: 'Ard.Ying.Shell.dll'
[...] --- Resolving hostpolicy.dll version from deps json

An assemby specified in the application dependencies manifest (Ard.Ying.Shell.deps.json) was not found:
Package: 'JetBrains.Annotations', version: '2019.1.3'
path: 'lib/netstandard2.0/JetBrains.Annotations.dll'

We currently advise these users to remove all %TEMP%/.net/ysh directories.

Unfortunately, even if I am the top user of this application, I am unable to reproduce the problem under normal conditions (of course, removing files in temp folder would trigger the failures).

Thanks in advance for your help.
Vianney

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Meta untriaged New issue has not been triaged by the area owner labels Apr 24, 2020
@dedale dedale changed the title Flaky missing Flaky missing files in single FDD exe temp dir Apr 24, 2020
@janvorli
Copy link
Member

cc: @vitek-karas

@ghost
Copy link

ghost commented Apr 24, 2020

Tagging subscribers to this area: @swaroop-sridhar
Notify danmosemsft if you want to be subscribed.

@jkotas jkotas removed the area-Meta label Apr 24, 2020
@swaroop-sridhar swaroop-sridhar removed the untriaged New issue has not been triaged by the area owner label Apr 24, 2020
@swaroop-sridhar
Copy link
Contributor

This is a dup of #3778

The bug will be fixed in this month's servicing release.
In the meantime, as a workaround, you can set the DOTNET_BUNDLE_EXTRACT_BASE_DIR environment variable to a non-temp directory when running the app, so that the extracted files are not cleaned up.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants