Configuration could not be found

Topics: Enterprise Library Core, General discussion
Mar 25, 2008 at 9:22 PM
We are using the Ent lib vesion 3.1. We have a custom configuration set up to point to some web services. This configuration is in a seperate file which is referenced with the tag
<enterpriseLibrary.ConfigurationSource selectedSource="Centralised Configuration Source">
<sources>
<add name="Centralised Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=74b557d649416726"
filePath="D:\Webs\PRERS\Applications\PRERS Central Configuration 3.0\Configuration\PRERSAppSettings3.0.config" />
</sources>

When we open the web config in the Enterprise library Configuration tool it opens and the custom configurations can be seen - modified etc. When we hit the web site we are getting the error.

The configuration could not be found for name 'PRERS.Web.Services.Proxy.AuthorizationServiceProxy.AuthorizationService, PRERS.Web.Services.Proxy, Version=3.0.10318.0, Culture=neutral, PublicKeyToken=a7e6cac5423f9ea9' in factory PRERS.Web.Services.Proxy.Config.ProviderBaseCustomFactory

The error message seems to indicate that the configuration section is missing, but it is not. This is working in other environments.

Thanks in advance
Noel Anderton
Mar 27, 2008 at 6:31 PM
Found the issue. We are using a msbuild task to update the config file with the correct version. One of the version numbers was 3.0.1.318.00 instead of 3.0.1.318.0. For some reason this fix was masked from us early on in trouble shooting, most likly we failed to dump the cache while testing.