现在我已经从1.0更新了一个例外 – >> 2.0.
调用NLog.Config.XmlLoggingConfiguration.Initialize时,会发生以下异常:
“在WebService目标[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>
我发现这似乎他们认为它固定:
http://nlog.codeplex.com/workitem/5352