Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6550095
  • 博文数量: 915
  • 博客积分: 17977
  • 博客等级: 上将
  • 技术积分: 8846
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-26 09:59
个人简介

一个好老好老的老程序员了。

文章分类

全部博文(915)

文章存档

2022年(9)

2021年(13)

2020年(10)

2019年(40)

2018年(88)

2017年(130)

2015年(5)

2014年(12)

2013年(41)

2012年(36)

2011年(272)

2010年(1)

2009年(53)

2008年(65)

2007年(47)

2006年(81)

2005年(12)

分类: C#/.net

2013-09-10 22:09:54

今天在配置一个项目的时候,花了挺长时间配置完成,然后一启动项目,懵了,启动报错:错误显示

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Only one element allowed per config file and if present must be the first child of the root element.

Unrecognized configuration section loggingProvider

最后纠结了半天,查了很多错误原因,因为没有直接搜索configSections错误,而是直接查询的错误,导致很长时间没有查出真正的原因,最后拿了别的web.config进行对比发现的位置是靠在最前面的。调整好了,再运行,成功了。后来在网上查询说,节点前不允许有其它节点。所以当我把它放在中间的时候则报上面的错误。

阅读(4028) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~