Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enterprise Library Exception: The configuration section for Logging cannot be found in the configuration source.

1,433 views
Skip to first unread message

Jess Chadwick

unread,
Sep 28, 2006, 2:07:06 PM9/28/06
to
Hi,

I am getting the following exception when attempting to open a site with
using the Enterprise Library Logging block:
The configuration section for Logging cannot be found in the configuration
source.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Configuration.ConfigurationErrorsException: The
configuration section for Logging cannot be found in the configuration
source.

This happens in my test environment that is using the same exact
configuration as my development environment, where it works great... Any
ideas?

Thanks,
Jess


Steven Cheng[MSFT]

unread,
Sep 29, 2006, 1:21:27 AM9/29/06
to
Hello Jess,

From your description, I understand you're receiving an "The onfiguration
section for Logging cannot be found in the configuration source" exception
when try starting an ASP.NET application which use the enterprise library,
correct?

As for the enterprise library component, are you using the entlib 2005(.net
1.1) or entlib 2006(.net 2.0) version? For the 2005 version, it will use
separate configuration file for each application blocks in it while for
2006(.net 2.0) version, the enterprise library has centralized most
settings in the application's configuration file(app.config file or
web.config file for ASP.NET application). If you're using 1.1 version, you
need to check whether the main configuration sections in
app.config(web.config) and those separate configuration files(for each
application block) is correctly copied to the target place(or whether the
content is identical to the orignial one). If you're using 2.0 version,
normally you just need to check the main app.config(web.config) for the
enterprise library specific configuration settings.

As for the host appliation, is it a normal .net desktop(winform or console)
application or ASP.NET web aplication. If it is an ASP.NET web application
and hosted in IIS virtual directory, you also need to take care of the
virtual directory hierarchy of your application. This is because ASP.NET's
configuration section is hierarchyically inherited. Sub virtual directory
will inherit web.config setting super level directory. You can compare the
directory structure between the development server and test server to see
whether there is any difference on this also.

In addition, if convenient, I would suggest you try creating a simplified
project (exclude some non-related code and content) which can reproduct the
same error so that we can concentrate our troubleshooting on tha simplified
one. You can also send such a test project to me so that I can also help
perform some test on my side.

Please feel free to let me know if there is anything we can help.


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

troyfruetel

unread,
Nov 9, 2006, 1:07:45 PM11/9/06
to
I'm having the same problem with a C# 2005 Class Library project. I will send a simple test project with unit test as an example.

Malek@discussions.microsoft.com Arash Malek

unread,
Feb 24, 2007, 8:54:07 AM2/24/07
to
Hi Steven,

I have the same exception when VS form designer try to load my form.

I have a Windows application with a user control. I put an instance of my
user control on main form(form1).
my user control has a public property wich use Logger class in its Setter
method.

when I run my application every thing is OK.(i prove my App.config is ok).
but when i try to open form1 in design time, I get the following exception
and designer is not able to show my form!!!

"The onfiguration section for Logging cannot be found in the configuration
source"

I make a simple application which shows this bug and i can send it for you
if it could be useful.

regards,
Arash Malek

swathi vaka

unread,
Jun 13, 2007, 1:32:40 AM6/13/07
to

Hi Arash,
I am also facing the same problem...
If u get the answer could please let me know

Thnaks in advance,
Swathi

*** Sent via Developersdex http://www.developersdex.com ***

Vijay Modi

unread,
May 12, 2008, 11:55:15 AM5/12/08
to

Hi,

You can find the solution on the followng path:

http://vijaymodi.wordpress.com/2008/05/12/biztalk-the-configuration-sect
ion-for-logging-cannot-be-found-in-the-configuration-source/


Regards,
Vijay Modi

0 new messages