Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 8 Jun 2006 11:46:02 -0700,    group: microsoft.public.dotnet.distributed_apps        back       


EntLib Jan 2006 - configuration section for Logging cannot be foun   
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.
date: Thu, 8 Jun 2006 11:46:02 -0700   author:   Scott Merilatt

RE: EntLib Jan 2006 - configuration section for Logging cannot be foun   
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.
date: Fri, 9 Jun 2006 12:20:02 -0700   author:   Scott Merilatt

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us