Skip to content

Crash on startup: Windows 2016 Server #4

Open
@user2222222222

Description

I copied files from here: JDMallen.IPMITempMonitor-win64-v1.1.0.zip
To here: C:\git\R620TempMonitor\

Then do this to start from command prompt:
CD /D "C:\git\R620TempMonitor"
SET DOTNET_ENVIRONMENT=Production
setx DOTNET_ENVIRONMENT Production
JDMallen.IPMITempMonitor.exe

But the program crashes starting with this error:
Unhandled exception. System.IO.FileNotFoundException: Could not find file 'C:\testdata.txt'.
File name: 'C:\testdata.txt'

If I manually create that file, the non production build functions. If I could compile this on my own, I'd just remove the if (_environment.IsDevelopment()) test on line 277 of Worker.cs.

What am I doing wrong? May I request an updated build where the if (_environment.IsDevelopment()) condition also checks for the existance of the testdata.txt file? That way, production would still run even if environment isn't setup correctly because testdata.txt doesn't exist.

Thank you for posting your work, I'm looking forward to trying it out.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions