system.configuration.dll中出现'system.configuration.configurationerrorsexception'类型的例外,但未在用户代码中处理 [英] An exception of type 'system.configuration.configurationerrorsexception' occured in system.configuration.dll but was not handled in user code

查看:454
本文介绍了system.configuration.dll中出现'system.configuration.configurationerrorsexception'类型的例外,但未在用户代码中处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为loggingConfiguration创建配置节处理程序时出错:无法加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Logging,version = 6.0.1304.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'



我尝试了什么:



我在MVC中为Web.Config创建了一个loggingConfiguration部分项目和WCF服务应用程序。



An error occurred creating the configuration section handler for loggingConfiguration: could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Logging, version=6.0.1304.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

What I have tried:

I have created a section for loggingConfiguration in Web.Config in MVC Project and WCF Service Application as well.

<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.1304.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />





我为loggingConfiguration创建了块

< loggingconfiguration>



我做错了请告诉我



for which i created block for loggingConfiguration
<loggingconfiguration>

What i am doing wrong please let me know

推荐答案

我被初始化了configurat离子工具,最后按照描述输出。
I was initialized the configuration tool and finally the output occurs as described.


这篇关于system.configuration.dll中出现'system.configuration.configurationerrorsexception'类型的例外,但未在用户代码中处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆