I have written an application that is exposed via COM+. The application uses the Logging application block and the DAAB. When the application is run via VS2005 (e.g. unit tests), everything works fine. When I deploy it to COM+, I get the following error: "The configuration section for Logging cannot be found in the configuration source." The section does exist in the app.config. I removed the logging application block and then received the following error: "The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView' threw an exception. at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView..ctor(IConfigurationSource configurationSource)." I have also tried it just exposing an interface, not inheriting from ServicedComponent, and manually installing the package in COM+ with the same results. The config file is in the application directory along with the application DLL and the Enterprise Library DLLs. I've searched for an answer for 3 days and haven't see an answer anywhere. So, any insight or help would be greatly appreciated.
For anyone else that may run into this, here is what I did to solve the problem. I installed the enterprise library DLLs in the GAC, added the associated configuration entries into machine.config, and removed them from app.config. "Scott Merilatt" wrote: > I have written an application that is exposed via COM+. The application uses > the Logging application block and the DAAB. When the application is run via > VS2005 (e.g. unit tests), everything works fine. When I deploy it to COM+, I > get the following error: "The configuration section for Logging cannot be > found in the configuration source." The section does exist in the > app.config. I removed the logging application block and then received the > following error: "The type initializer for > 'Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView' threw > an exception. at > Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView..ctor(IConfigurationSource > configurationSource)." I have also tried it just exposing an interface, not > inheriting from ServicedComponent, and manually installing the package in > COM+ with the same results. The config file is in the application directory > along with the application DLL and the Enterprise Library DLLs. I've > searched for an answer for 3 days and haven't see an answer anywhere. So, > any insight or help would be greatly appreciated.