c# - Why does a zero byte app.config file cause a very strange error? -
c# - Why does a zero byte app.config file cause a very strange error? -
the volume file has been externally altered opened file no longer valid.
this caused when have app.config 0 bytes. error appears come windows - windbg won't launch it.
i know it's invalid have 0 byte app.config, causes error, come , why happen?
// // messageid: error_file_invalid // // messagetext: // // volume file has been externally altered opened file no longer valid. // #define error_file_invalid 1006l
copied winerror.h windows sdk header file. symbolic error code here much more pertinent boilerplate error message text. not quite unusual. can see beingness used within sscli20 source code (the open source version of clr) in code checks if executable has proper pe32 file header , .net header nowadays in managed assembly. doesn't apply here.
nevertheless, clr interested in app.exe.config file @ moment in bootstrapping stage. elements <supportedruntime>
must parsed before clr can started. code not happy empty .config file. clr code awesome that, never 'let's stumble on anyway' cop-out.
c# app-config console-application
Comments
Post a Comment