I have configuration files in the base directory, they are always installed in Content / copy, in my asp.net web project, and when the application starts, it says that it cannot find the files.
<enterpriseLibrary.ConfigurationSource selectedSource="System Configuration Source"> <sources> <add name="System Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.SystemConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=null" /> <add name="Logging File Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=null" filePath="Logging Configs\AutomatorConsoleFileFullLogging.config" /> <add name="Exception Handling Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=null" filePath="ExceptionHandling.config" /> <add name="Policy Injection Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=null" filePath="PolicyInjection.config" /> </sources> <redirectSections> <add sourceName="Exception Handling Source" name="exceptionHandling" /> <add sourceName="Logging File Source" name="loggingConfiguration" /> <add sourceName="Policy Injection Configuration Source" name="Policy Injection Settings" /> </redirectSections>
source share