Home > Net >  C # to write the Windows desktop software,. Exe. Always puzzling empty config the configuration file
C # to write the Windows desktop software,. Exe. Always puzzling empty config the configuration file

Time:10-08

C # to write the Windows desktop software, * * *. Exe. Config the configuration file is always puzzling became empty, all the content all have no, cause the program to start the error, could you tell me what do you have any friends met problem?

CodePudding user response:

This file if there is no special configuration is don't have to keep,

CodePudding user response:

reference 1 floor XBodhi. Response:
this file if there is no special configuration is actually don't have to keep,

And how can read and write file don't run as an administrator, my program file operation, display without permission

CodePudding user response:

File right-click properties, have the administrator Settings,

CodePudding user response:

reference 3 floor XBodhi. Response:
file right attribute, administrator,

It is to set up, many users won't set,

CodePudding user response:

You add a file called manifest file

Or can also use your code, reference

https://www.cnblogs.com/s0611163/p/4128379.html

CodePudding user response:

Every time to regenerate the project (every time compilation, press F5 to run time, for example), the configuration file will synchronize the configuration files in the project data, so empty data, run directly *. EXE won't have this problem

CodePudding user response:

refer to 6th floor to touch a blind response:
every time to regenerate the project (every time compilation, press F5 to run time, for example), the configuration file will synchronize the configuration files in the project data, so empty data, there would be no this problem directly run *. EXE

The problem is the software release out, customer normal use of the installation, use for a period of time will occasionally appear this error, exe. Config file is empty, cause the software cannot be started

CodePudding user response:

This configuration file has experienced
  •  Tags:  
  • C#
  • Related