NLogConfigurationException - Invalid selection from 'System.String' to 'System.Uri'

Nlog now throws an exception, which I updated from 1.0 -> 2.0.

When NLog.Config.XmlLoggingConfiguration.Initialize is called, the following exception is thrown:

"Error setting the 'Url' property in WebService Target [Target_AuditLog_WebService_Global]"
with an internal Exception from:
"Invalid selection from" System.String "to" System.Uri ".

The goal is as follows:

<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> 

I found this, however it seems that they consider it fixed: http://nlog.codeplex.com/workitem/5352

+8
nlog
source share
1 answer

This is a bug and fixed, however, the version with the patch has not yet been officially released or through NuGet, if you encounter this problem, you will need to use the night version of the assembly:
http://nlog.codeplex.com/releases/view/64708 (which I confirmed works)

If an official release after 4/27/2011 was released, you should try to use it.
http://nlog.codeplex.com/releases

0
source share

All Articles