Gen*_*ent 8 asp.net nlog nlog-configuration
现在我已经从1.0 - > 2.0更新了Nlog.
当调用NLog.Config.XmlLoggingConfiguration.Initialize时,会发生以下异常:
"在WebService Target [Target_AuditLog_WebService_Global]上设置属性'Url'时
出现
错误
,其内部异常为:
"从'System.String'到'System.Uri'的无效转换.
目标看起来像这样:
<target name="Target_AuditLog_WebService_Global" xsi:type="WebService" namespace="http://ourLoggingServer.corp/" protocol="Soap12" methodName="AddLog" url="http://ourLoggingServer.corp/Logger.asmx">
<parameter /> <!-- Several params, none of type system.uri -->
</target>
Run Code Online (Sandbox Code Playgroud)
我发现这似乎他们认为它是固定的:http: //nlog.codeplex.com/workitem/5352
这是一个错误,已得到修复,但是,修复后的版本尚未正式发布或通过 NuGet 发布,如果您遇到此问题,则需要使用夜间构建版本:
http://nlog.codeplex。 com/releases/view/64708(我已确认其有效)
如果在 2011 年 4 月 27 日之后有正式版本,您应该尝试使用它。
http://nlog.codeplex.com/releases
| 归档时间: |
|
| 查看次数: |
600 次 |
| 最近记录: |