configsource

share connectionstrings with multiple projects in same solution

狂风中的少年 提交于 2019-12-23 09:10:59
问题 I have multiple projects in the same solution. I would like them to share the same connectionStrings so that I don't have to change the this in multiple places. In my web configs I have <connectionStrings configSource="bin/connectionStrings.config" /> and then I have added a file as a link to my "connectionsStrings.config" which sits at the solution level. I have changed the properties so that the "Copy to Output Directory" is "Copy always" and the "Build Action" is "Content" But I get the

External Config Files with elmah

≡放荡痞女 提交于 2019-12-04 15:21:14
问题 I am using elmah (v1.1.11517.0) and am trying to move the config to an external source. My config currently looks like this: <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/> <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /> <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"

External Config Files with elmah

坚强是说给别人听的谎言 提交于 2019-12-03 09:34:29
I am using elmah (v1.1.11517.0) and am trying to move the config to an external source. My config currently looks like this: <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/> <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /> <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" /> <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/

ASP.NET web.config: configSource vs. file attributes

放肆的年华 提交于 2019-11-26 03:36:52
问题 Within an web.config -file in an ASP.NET-application some sections of config, like appSettings and connectionStrings , supports the attributes file and configSource . What is the difference between using the file -attribute and the configSource -attribute? When should you use which attribute and can you use both? <?xml version=\"1.0\"?> <configuration> <appSettings file=\"AppSettings.config\"> </appSettings> <connectionStrings configSource=\"ConnectionStrings.config\"> </connectionStrings> <!