Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DEB20200BFE for ; Mon, 16 Jan 2017 17:53:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CF874160B41; Mon, 16 Jan 2017 16:53:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 253D3160B28 for ; Mon, 16 Jan 2017 17:53:31 +0100 (CET) Received: (qmail 61880 invoked by uid 500); 16 Jan 2017 16:53:30 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 61871 invoked by uid 99); 16 Jan 2017 16:53:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2017 16:53:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 35E7EC209E for ; Mon, 16 Jan 2017 16:53:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id UbCeYeKsSyoz for ; Mon, 16 Jan 2017 16:53:29 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7848E5FB43 for ; Mon, 16 Jan 2017 16:53:28 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A9D00E0294 for ; Mon, 16 Jan 2017 16:53:27 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5C9ED2527F for ; Mon, 16 Jan 2017 16:53:26 +0000 (UTC) Date: Mon, 16 Jan 2017 16:53:26 +0000 (UTC) From: "Joseph Piron (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4NET-548) Dependency missmatch .net 4.0 and 4.5 for System.Security.Claims.ClaimsIdentity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 16 Jan 2017 16:53:33 -0000 [ https://issues.apache.org/jira/browse/LOG4NET-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joseph Piron updated LOG4NET-548: --------------------------------- Description: I have a problem with a project using version 2.0.7 (from Nuget) compiled on a machine running windows 7 with VS2015 and .net 4.5, targeting framework 4.0 to get it to run on a windows xp machine: I cannot use a {{RemoteSystlogAppender}} and when log4net debug is activated, I get this in the log: {noformat} log4net:ERROR [RemoteSyslogAppender] ErrorCode: WriteFailure. Unable to send logging event to remote syslog 172.27.48.80 on port 514. System.TypeLoadException: Could not load type 'System.Security.Claims.ClaimsIdentity' from assembly 'mscorlib, Version=4 .0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at log4net.Core.LoggingEvent.get_UserName() at log4net.Core.LoggingEvent.CreateCompositeProperties() at log4net.Core.LoggingEvent.LookupProperty(String key) at log4net.Layout.Pattern.PropertyPatternConverter.Convert(TextWriter writer, LoggingEvent loggingEvent) at log4net.Layout.Pattern.PatternLayoutConverter.Convert(TextWriter writer, Object state) at log4net.Util.PatternConverter.Format(TextWriter writer, Object state) at log4net.Layout.PatternLayout.Format(TextWriter writer, LoggingEvent loggingEvent) at log4net.Layout.LayoutSkeleton.Format(LoggingEvent loggingEvent) at log4net.Appender.RemoteSyslogAppender.Append(LoggingEvent loggingEvent). {noformat} After some googling, seems related to: [http://stackoverflow.com/questions/13748055/could-not-load-type-system-runtime-compilerservices-extensionattribute-from-as] Is log4net merged using ILMerge ? Could this be the cause ? > Dependency missmatch .net 4.0 and 4.5 for System.Security.Claims.ClaimsIdentity > ------------------------------------------------------------------------------- > > Key: LOG4NET-548 > URL: https://issues.apache.org/jira/browse/LOG4NET-548 > Project: Log4net > Issue Type: Bug > Components: Core > Affects Versions: 2.0.7 > Environment: Windows XP > Reporter: Joseph Piron > Labels: claim, identity, xp > > I have a problem with a project using version 2.0.7 (from Nuget) compiled on a machine running windows 7 with VS2015 and .net 4.5, targeting framework 4.0 to get it to run on a windows xp machine: > I cannot use a {{RemoteSystlogAppender}} and when log4net debug is activated, I get this in the log: > {noformat} > log4net:ERROR [RemoteSyslogAppender] ErrorCode: WriteFailure. Unable to send logging event to remote syslog 172.27.48.80 > on port 514. > System.TypeLoadException: Could not load type 'System.Security.Claims.ClaimsIdentity' from assembly 'mscorlib, Version=4 > .0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. > at log4net.Core.LoggingEvent.get_UserName() > at log4net.Core.LoggingEvent.CreateCompositeProperties() > at log4net.Core.LoggingEvent.LookupProperty(String key) > at log4net.Layout.Pattern.PropertyPatternConverter.Convert(TextWriter writer, LoggingEvent loggingEvent) > at log4net.Layout.Pattern.PatternLayoutConverter.Convert(TextWriter writer, Object state) > at log4net.Util.PatternConverter.Format(TextWriter writer, Object state) > at log4net.Layout.PatternLayout.Format(TextWriter writer, LoggingEvent loggingEvent) > at log4net.Layout.LayoutSkeleton.Format(LoggingEvent loggingEvent) > at log4net.Appender.RemoteSyslogAppender.Append(LoggingEvent loggingEvent). > {noformat} > After some googling, seems related to: > [http://stackoverflow.com/questions/13748055/could-not-load-type-system-runtime-compilerservices-extensionattribute-from-as] > Is log4net merged using ILMerge ? Could this be the cause ? -- This message was sent by Atlassian JIRA (v6.3.4#6332)