Skip to content

Target cannot be found: 'AzureTableStorage' #39

@mrichman

Description

@mrichman

I get this error Target cannot be found: 'AzureTableStorage' when I enable the target in my NLog.config.

Here are the files I dropped into my application to try to get this working:

  • Microsoft.WindowsAzure.Configuration.dll (1.8.0.0)
  • Microsoft.WindowsAzure.Storage.dll (4.3.0.0)
  • NLog.config
  • NLog.dll (4.3.8)
  • NLog.Extensions.AzureTableStorage.dll (1.1.4.0)

My NLog.config looks like this:

<?xml version="1.0" encoding="utf-8"?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true" internalLogToConsole="true" internalLogLevel="Info">
  <extensions>
    <add assembly="NLog.Extensions.AzureTableStorage" />
  </extensions>
  <targets async="true">
    <target name="trace" xsi:type="Trace" layout="${longdate:universalTime=true} ${logger} ${message}" />
    <target name="azureTableStorage" xsi:type="AzureTableStorage" PartitionKey="${date}.${logger}" RowKey="${guid}" ConnectionString="DefaultEndpointsProtocol=https;AccountName=xxxxxxx;AccountKey=xxxxxxx;EndpointSuffix=core.windows.net" tableName="NLogAzureTest" />
  </targets>
  <rules>
    <logger name="*" minlevel="Trace" writeTo="trace" />
    <logger name="*" minlevel="Info" writeTo="azureTableStorage" />
  </rules>
</nlog>

What am I doing wrong here? Is there a dependency on a specific build of NLog.dll?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions