Last post Dec 14, 2006 08:38 AM by DivyaS
May 04, 2006 05:02 PM|eshneken|LINK
I am trying to use webdeploy with the replacement of web.config sections. Everything works fine with connectionString replacement but when I try to do a replacement for loggingConfiguration, I get the following error:
Error 102 An error occurred creating the configuration section handler for loggingConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Logging, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified. (C:\builds\rsg\ucdev\web.config line 4) C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets 513 9 WebDeploy_RSG
Has anyone seen this? Do I need to let web deploy know where the Enterprise Block logging dll is?
thanks in advance,
May 08, 2006 06:48 PM|BradleyB|LINK
This release of Web Deployment config replacement task only works with sections that support the ConfigSource attribute. That's because it's using this attribute to facilitate the replacement.
Hope this helps,
Dec 14, 2006 08:38 AM|DivyaS|LINK
I also faced the same problem recently and it was because one of the dll's was missing in the deployment scenario.
Just check if you have all the dependencied in place...
In my case I had missed "Microsoft.Practices.EnterpriseLibrary.Logging.dll".-- which is ofcourse required to log the exception.
So whenever system was throwing an exception and the application wanted to log it ...it was not able to load the corresponding dll to do the same.
Hope this helps.