.NET 2.0 App.Config connection strings includes unwanted SQLExpress default

后端 未结 1 1856
春和景丽
春和景丽 2021-01-14 06:32

I\'m using a connectionStrings section within an app.config file in a .NET 2.0 project. The config section contains two connection strings I have defined.

1条回答
  •  囚心锁ツ
    2021-01-14 07:20

    It's defined in machine.config. To get rid of it, use:

    
        
        
    
    

    As a general rule, sections that have and elements (e.g. appSettings, connectionStrings and the provider configuration sections) also have a element, which you can use if you don't want to inherit elements from a higher level web.config or machine.config file.

    0 讨论(0)
提交回复
热议问题