Why aren't .NET “application settings” stored in the registry?

前端 未结 17 1803
醉话见心
醉话见心 2020-12-13 14:51

Some time back in the nineties, Microsoft introduced the Windows Registry. Applications could store settings in different hives. There were hives for application-wide and us

17条回答
  •  半阙折子戏
    2020-12-13 15:19

    I think there is a huge security issue about Application Setting (.config files) is that can be edited in any text editor and change every thing.

    Let's say that a connectionString is stored and some one deleted or changed all values in the config file then the application will have a lot of proplem so the config file should be protected.

    or store Setting in DLL file for example.

提交回复
热议问题