asp.net – 找不到元素’elmah’的架构信息
|
我读了这里已经发布的所有答案但似乎没有解决.
web.config中的配置部分很简单,所以我真的不知道如何解决它: <configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler,Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler,Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler,Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler,Elmah" />
</sectionGroup>
</configSections>
<elmah>
<security allowRemoteAccess="1" />
<errorLog type="Elmah.SqlErrorLog,Elmah" connectionStringName="EvaConnection" />
<!--<errorLog type="Elmah.XmlFileErrorLog,Elmah" logPath="~/App_Data/ErrorLogs" />-->
<!-- ELMAH class ErrorMailModule.cs has been modified to read config from AppSettings -->
<errorMail from="dummy@dummy.com" to="dummy@dummy.com" subject="dummy" priority="High" async="true" smtpPort="25" smtpServer="dummy" useSsl="false" userName="dummy@dummy.com" password="dummy" noYsod="false" />
</elmah>
解决方法我认为这个错误与您选择SqlErrorLog作为errorLog类型的事实有关.您是否在数据库中运行了为您的EvaConnection connectionString配置的 Elmah SQL Server DB Script?如果没有,则需要执行此操作,以便为Elamh创建正确的表和存储过程,以便在将错误写入数据库时使用.如果您使用的是SQL Server的更高版本而不是2005,请参阅ErrorLog Implementation – Enterprise-Level Relational Databases wiki页面中的注释,以获取有关ntext字段类型的说明. 更新: 在更加关注这个问题之后.在ELMAH Google Group – Could not find schema information上找到相关帖子这是Visual Studio报告有关ELMAH配置部分的问题,因为它没有支持的.xsd文件.有一个可用的文件可用于在Visual Studio中禁止此错误/警告消息.只需按照Issue 239: Intellisense for web.config and external config files的说明操作即可 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net-mvc – 异步使用ASP.NET MVC中的WebClient?
- 有关ASP.NET中会话的要点
- asp.net-mvc – 实体类型没有键定义 – 代码优先
- asp.net – 升级到WebAPI 2.1时出错XmlDocumentationProvid
- asp.net-mvc – 为什么ASP.NET MVC上的控制器基于名称?
- 无法从ASP.NET登录页面访问CSS文件
- asp.net – 为什么当StateProvider不是InProc时,不会引发Se
- 如何在asp.net中检测服务器端的浏览器关闭?
- asp.net-mvc – TempData keep()vs peek()
- System.Net.ServicePointManager.DefaultConnectionLimit =
- ASP.NET UserControl类库
- asp.net-mvc – Web API和ASP MVC之间的主要区别
- asp.net-mvc-3 – 另一个数据库实例RavenDB MVC3
- asp.net-mvc-2 – 使用ASP.NET MVC 2时更好地保留
- asp.net – 如何从HTML到ASPX页面POST FOR FORM
- asp.net – 如何从Javascript调用控制器方法
- asp.net – ConfigurationManager.AppSettings缓
- asp.net – 如何从Controller设置@ Html.ActionL
- asp.net – 使用HTML’readonly =“readonly”’
- asp.net-mvc – 如何更改ASP.NET MVC中的默认验证
