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 the following target in my nlog.config : <target name=n1 xsi:type=Network address=tcp://localhost:4001/> but
I have used following config of NLog to add the log text to control
I have the following NLog.config in my web application but how/when does the dialog
I have multiple applications that share a config file that sets up NLog partially
I added NLog to my project. Following the instructions I created NLog.config. <?xml version=1.0
I have a Visual Studio extension (CustomTool) that depends on NLog for logging. I'd
here is my nlog.config file. I have turned on the throwsException. <nlog xmlns=http://www.nlog-project.org/schemas/NLog.xsd xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
I am getting the error Exception occurred in NLog ---> System.Data.SqlClient.SqlException: Conversion failed when
I have a windows service and use nlog for logging. Everything works fine when
For an ASP.Net environment what permissions should the logging file created by NLog have

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.