配置文件标记为重复的异常包 [英] config file flagging as duplicate Exceptionless package
问题描述
不确定我的项目发生了什么,但是当我尝试运行它时,我收到错误消息 无法加载文件或程序集Exceptionless.Mvc"或其依赖项之一
Not sure what happened my project but when I tried to run it I got the error message Could not load file or assembly 'Exceptionless.Mvc' or one of its dependencies
Eceptionless.MVC 未在我的项目中的任何地方使用或引用,我什至找不到任何带有 Exceptionless 的文本......
Eceptionless.MVC is not used or referenced anywhere in my project I cant even find any text with Exceptionless......
所以我使用 Nuget Manager 来安装 exceptionless.MVC 包.
So I used Nuget Manager to install the exceptionless.MVC package.
现在我收到错误
`HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Config Error
There is a duplicate 'exceptionless' section defined `
exceptionless.Mvc 的安装在我的 web 配置中添加了以下内容
The install of exceptionless.Mvc added the following to my web config
<section name="exceptionless" type="Exceptionless.ExceptionlessSection, Exceptionless" />
<exceptionless apiKey="API_KEY_HERE" />
<modules runAllManagedModulesForAllRequests="true">
<add name="ExceptionlessModule" type="Exceptionless.Mvc.ExceptionlessModule, Exceptionless.Mvc" />
</modules>
并且包配置已更新
<package id="Exceptionless" version="4.2.1982" targetFramework="net45" />
这是我项目中唯一对 exceptionsless/exceptionlessMVC 的引用.
That is the only ref to exceptionsless/exceptionlessMVC in my project.
我不知道它在 mvc exceptionless 中寻找什么或重复部分在哪里??
I am at a loss to what its look for with mvc exceptionless or where the duplicate sections are??
有什么帮助吗?
推荐答案
问题与存储在 IIS 中的重复 Web 配置文件有关.重命名该 Web 配置允许原始配置优先删除任何重复的问题,无异常.
Issue was to do with a duplicate web config file stored in the IIS. Renaming that web config allowed the original to take priority removing any duplicate issues with exceptionless.
这篇关于配置文件标记为重复的异常包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!