Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4558710
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:41:10+00:00 2026-05-21T17:41:10+00:00

Nlog is throwing an exception now that I have updated from 1.0 -> 2.0.

  • 0

Nlog is throwing an exception now that I have updated from 1.0 -> 2.0.

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

“Error when setting property ‘Url’ on WebService Target[Target_AuditLog_WebService_Global]”

with an innerException of:
“Invalid cast from ‘System.String’ to ‘System.Uri’.

the target looks like this:

<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 they think its fixed:
http://nlog.codeplex.com/workitem/5352

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T17:41:11+00:00Added an answer on May 21, 2026 at 5:41 pm

    This is a bug and has been fixed, however, a version with the fix has not yet been released officially or via NuGet, if you run across this issue you will need to use a nightly build version:
    http://nlog.codeplex.com/releases/view/64708 (which I have confirmed works)

    If there has been an official release after 4/27/2011 you should try using it.

    http://nlog.codeplex.com/releases

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently integrated the .NET NLog logging component into one of our applications
How do I write a layout for NLog that outputs time with milliseconds like
We have a WPF application that we've deployed to the customer. However, the application
This I think is related to my use of the nlog C++ API (and
My NLog targets is like this: <targets> <target xsi:type=Console name=console layout=${longdate}|${level}|${message} /> <target xsi:type=File
I am using nLog in a large financial application, but frequently need to bring
I am using NLog for the first time on a project. I want to
I am using NLog to provide all my logging, do you know if it
I'm using NLog as my logger, however I cant seem to find an Ilogger
Taking a look at NLog , it's unclear what version works with VS2010. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.