Click here to Skip to main content
12,079,202 members (27,369 online)
   

C#

 
QuestionGet outlook password Pin
Sanjeev991813-Nov-12 21:32
memberSanjeev991813-Nov-12 21:32 
AnswerRe: Get outlook password Pin
Pete O'Hanlon13-Nov-12 21:46
protectorPete O'Hanlon13-Nov-12 21:46 
GeneralRe: Get outlook password Pin
Sanjeev991813-Nov-12 21:49
memberSanjeev991813-Nov-12 21:49 
GeneralRe: Get outlook password Pin
n.podbielski13-Nov-12 22:04
membern.podbielski13-Nov-12 22:04 
GeneralRe: Get outlook password Pin
Pete O'Hanlon13-Nov-12 23:04
protectorPete O'Hanlon13-Nov-12 23:04 
GeneralRe: Get outlook password Pin
J4amieC13-Nov-12 23:38
memberJ4amieC13-Nov-12 23:38 
GeneralRe: Get outlook password Pin
Manfred R. Bihy13-Nov-12 23:39
mvpManfred R. Bihy13-Nov-12 23:39 
GeneralRe: Get outlook password Pin
OriginalGriff14-Nov-12 5:38
mvpOriginalGriff14-Nov-12 5:38 
GeneralRe: Get outlook password Pin
Dave Kreskowiak14-Nov-12 2:49
mvpDave Kreskowiak14-Nov-12 2:49 
GeneralRe: Get outlook password Pin
Pete O'Hanlon14-Nov-12 3:05
protectorPete O'Hanlon14-Nov-12 3:05 
GeneralRe: Get outlook password Pin
Dave Kreskowiak14-Nov-12 5:36
mvpDave Kreskowiak14-Nov-12 5:36 
AnswerRe: Get outlook password Pin
Abhinav S13-Nov-12 22:07
mvpAbhinav S13-Nov-12 22:07 
GeneralRe: Get outlook password Pin
Pete O'Hanlon13-Nov-12 23:06
protectorPete O'Hanlon13-Nov-12 23:06 
QuestionError 19 'LogManager' is an ambiguous reference between Pin
classy_dog13-Nov-12 17:09
memberclassy_dog13-Nov-12 17: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 19:38
mvpDave Kreskowiak13-Nov-12 19:38 
QuestionC# use connection string in app.config Pin
rachel_m13-Nov-12 12:46
memberrachel_m13-Nov-12 12:46 
AnswerRe: C# use connection string in app.config Pin
Clifford Nelson13-Nov-12 12:55
memberClifford Nelson13-Nov-12 12:55 
GeneralRe: C# use connection string in app.config Pin
rachel_m13-Nov-12 18:45
memberrachel_m13-Nov-12 18:45 
GeneralRe: C# use connection string in app.config Pin
Pete O'Hanlon13-Nov-12 20:39
protectorPete O'Hanlon13-Nov-12 20:39 
AnswerRe: C# use connection string in app.config Pin
Clifford Nelson14-Nov-12 6:08
memberClifford Nelson14-Nov-12 6:08 
AnswerRe: C# use connection string in app.config Pin
n.podbielski13-Nov-12 21:24
membern.podbielski13-Nov-12 21:24 
QuestionC# GoF Design pattern usage Pin
Gohan_Coder13-Nov-12 9:15
memberGohan_Coder13-Nov-12 9:15 
AnswerCross posted from the lounge and Q and A. Pin
Pete O'Hanlon13-Nov-12 10:13
protectorPete O'Hanlon13-Nov-12 10:13 
AnswerRe: C# GoF Design pattern usage Pin
Eddy Vluggen13-Nov-12 12:32
memberEddy Vluggen13-Nov-12 12:32 
AnswerRe: C# GoF Design pattern usage Pin
Abhinav S13-Nov-12 22:15
mvpAbhinav S13-Nov-12 22:15 
AnswerRe: C# GoF Design pattern usage Pin
Pete O'Hanlon13-Nov-12 23:28
protectorPete O'Hanlon13-Nov-12 23:28 
QuestionMethod, Class, Object Reference Pin
C-P-User-312-Nov-12 11:31
memberC-P-User-312-Nov-12 11:31 
AnswerRe: Method, Class, Object Reference Pin
Pete O'Hanlon12-Nov-12 11:49
protectorPete O'Hanlon12-Nov-12 11:49 
GeneralRe: Method, Class, Object Reference Pin
C-P-User-312-Nov-12 14:19
memberC-P-User-312-Nov-12 14:19 
GeneralRe: Method, Class, Object Reference Pin
Pete O'Hanlon12-Nov-12 21:15
protectorPete O'Hanlon12-Nov-12 21:15 
GeneralRe: Method, Class, Object Reference Pin
J4amieC12-Nov-12 22:36
memberJ4amieC12-Nov-12 22:36 
GeneralRe: Method, Class, Object Reference Pin
Pete O'Hanlon12-Nov-12 23:11
protectorPete O'Hanlon12-Nov-12 23:11 
GeneralRe: Method, Class, Object Reference Pin
Simon_Whale12-Nov-12 23:06
memberSimon_Whale12-Nov-12 23:06 
GeneralRe: Method, Class, Object Reference Pin
Marcus Kramer13-Nov-12 4:49
memberMarcus Kramer13-Nov-12 4:49 
GeneralRe: Method, Class, Object Reference Pin
C-P-User-313-Nov-12 9:06
memberC-P-User-313-Nov-12 9:06 
QuestionAdd a Menu Item to the operating system contextmenu Pin
benzarabel12-Nov-12 10:48
memberbenzarabel12-Nov-12 10:48 
AnswerRe: Add a Menu Item to the operating system contextmenu Pin
Eddy Vluggen12-Nov-12 11:44
memberEddy Vluggen12-Nov-12 11:44 
GeneralRe: Add a Menu Item to the operating system contextmenu Pin
benzarabel12-Nov-12 11:51
memberbenzarabel12-Nov-12 11:51 
GeneralRe: Add a Menu Item to the operating system contextmenu Pin
Eddy Vluggen12-Nov-12 12:18
memberEddy Vluggen12-Nov-12 12:18 
QuestionTips for a new C# designer... Pin
Maurice Lantier12-Nov-12 10:28
memberMaurice Lantier12-Nov-12 10:28 
AnswerRe: Tips for a new C# designer... Pin
Eddy Vluggen12-Nov-12 11:40
memberEddy Vluggen12-Nov-12 11:40 
GeneralRe: Tips for a new C# designer... Pin
Maurice Lantier12-Nov-12 11:54
memberMaurice Lantier12-Nov-12 11:54 
GeneralRe: Tips for a new C# designer... Pin
Eddy Vluggen12-Nov-12 12:18
memberEddy Vluggen12-Nov-12 12:18 
AnswerRe: Tips for a new C# designer... Pin
BobJanova12-Nov-12 23:23
memberBobJanova12-Nov-12 23:23 
GeneralRe: Tips for a new C# designer... Pin
Maurice Lantier14-Nov-12 11:19
memberMaurice Lantier14-Nov-12 11:19 
AnswerRe: Tips for a new C# designer... Pin
S Godrich13-Nov-12 0:48
memberS Godrich13-Nov-12 0:48 
GeneralRe: Tips for a new C# designer... Pin
Maurice Lantier14-Nov-12 11:15
memberMaurice Lantier14-Nov-12 11:15 
Questionwindows form design Pin
Rajeevhyd12-Nov-12 8:09
memberRajeevhyd12-Nov-12 8:09 
AnswerRe: windows form design Pin
Eddy Vluggen12-Nov-12 11:34
memberEddy Vluggen12-Nov-12 11:34 
GeneralNamed Pipes app lifetime pipe. Pin
Nemo196612-Nov-12 7:51
memberNemo196612-Nov-12 7:51 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160212.1 | Last Updated 14 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid