Click here to Skip to main content
15,881,172 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get outlook password Pin
Manfred Rudolf Bihy13-Nov-12 22:39
professionalManfred Rudolf Bihy13-Nov-12 22:39 
GeneralRe: Get outlook password Pin
OriginalGriff14-Nov-12 4:38
mveOriginalGriff14-Nov-12 4:38 
GeneralRe: Get outlook password Pin
Dave Kreskowiak14-Nov-12 1:49
mveDave Kreskowiak14-Nov-12 1:49 
GeneralRe: Get outlook password Pin
Pete O'Hanlon14-Nov-12 2:05
mvePete O'Hanlon14-Nov-12 2:05 
GeneralRe: Get outlook password Pin
Dave Kreskowiak14-Nov-12 4:36
mveDave Kreskowiak14-Nov-12 4:36 
AnswerRe: Get outlook password Pin
Abhinav S13-Nov-12 21:07
Abhinav S13-Nov-12 21:07 
GeneralRe: Get outlook password Pin
Pete O'Hanlon13-Nov-12 22:06
mvePete O'Hanlon13-Nov-12 22:06 
QuestionError 19 'LogManager' is an ambiguous reference between Pin
classy_dog13-Nov-12 16:09
classy_dog13-Nov-12 16:09 
I am getting the error message,"Error 19 'LogManager' is an ambiguous reference between 'Common.Logging.LogManager' and 'NLog.LogManager'".

In a C# 2008 application I am trying to add nlog open source logging tool to an application that is already using common.logging that was obtained from the following location: http://netcommon.sourceforge.net.

I have added a reference to the NLog file and I have added the Nlog to the using statement.

The problem is both tools use an object called 'LogManager'.

Thus can you tell me how to solve my problem so I can use both Logmanagers.

The following is my code listed below:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="common">
      <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
    </sectionGroup>
  </configSections>
  <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <targets>
     </targets>
    <rules>
    </rules>
  </nlog>


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common.Logging;
using sample;
using System.Configuration;
using System.Xml.Linq;  
using NLog;

namespace sample
{
    public class Etest
    {
        private static Logger logger = LogManager.GetCurrentClassLogger(); 
        private static ILog log = LogManager.GetCurrentClassLogger();
}
}

AnswerRe: Error 19 'LogManager' is an ambiguous reference between Pin
Dave Kreskowiak13-Nov-12 18:38
mveDave Kreskowiak13-Nov-12 18:38 
QuestionC# use connection string in app.config Pin
rachel_m13-Nov-12 11:46
rachel_m13-Nov-12 11:46 
AnswerRe: C# use connection string in app.config Pin
Clifford Nelson13-Nov-12 11:55
Clifford Nelson13-Nov-12 11:55 
GeneralRe: C# use connection string in app.config Pin
rachel_m13-Nov-12 17:45
rachel_m13-Nov-12 17:45 
GeneralRe: C# use connection string in app.config Pin
Pete O'Hanlon13-Nov-12 19:39
mvePete O'Hanlon13-Nov-12 19:39 
AnswerRe: C# use connection string in app.config Pin
Clifford Nelson14-Nov-12 5:08
Clifford Nelson14-Nov-12 5:08 
AnswerRe: C# use connection string in app.config Pin
n.podbielski13-Nov-12 20:24
n.podbielski13-Nov-12 20:24 
QuestionC# GoF Design pattern usage Pin
David Combrinck13-Nov-12 8:15
professionalDavid Combrinck13-Nov-12 8:15 
AnswerCross posted from the lounge and Q and A. Pin
Pete O'Hanlon13-Nov-12 9:13
mvePete O'Hanlon13-Nov-12 9:13 
AnswerRe: C# GoF Design pattern usage Pin
Eddy Vluggen13-Nov-12 11:32
professionalEddy Vluggen13-Nov-12 11:32 
AnswerRe: C# GoF Design pattern usage Pin
Abhinav S13-Nov-12 21:15
Abhinav S13-Nov-12 21:15 
AnswerRe: C# GoF Design pattern usage Pin
Pete O'Hanlon13-Nov-12 22:28
mvePete O'Hanlon13-Nov-12 22:28 
QuestionMethod, Class, Object Reference Pin
C-P-User-312-Nov-12 10:31
C-P-User-312-Nov-12 10:31 
AnswerRe: Method, Class, Object Reference Pin
Pete O'Hanlon12-Nov-12 10:49
mvePete O'Hanlon12-Nov-12 10:49 
GeneralRe: Method, Class, Object Reference Pin
C-P-User-312-Nov-12 13:19
C-P-User-312-Nov-12 13:19 
GeneralRe: Method, Class, Object Reference Pin
Pete O'Hanlon12-Nov-12 20:15
mvePete O'Hanlon12-Nov-12 20:15 
GeneralRe: Method, Class, Object Reference Pin
J4amieC12-Nov-12 21:36
J4amieC12-Nov-12 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.