I have a Windows application with a user control. I put an instance of my
user control on main form(form1).
when I run my application every thing is OK.(i prove my App.config is ok).
"Steven Cheng[MSFT]" wrote:
> 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.
>
>
>