-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add strongname to assembly #76
Comments
Currently we are blocked on this by Perhaps after TCP/UDP is addressed in #65 |
Initial |
@merbla Are there any plans for further follow-up on this? I'm seeing this error when I try to reference
|
Sorry @jgbright I have dropped the ball on this one. Staged a PR to get |
Outstanding! Thank you. |
@merbla I am still seeing this error with the 3.0.0 nuget. Could not load file or assembly 'Serilog.Sinks.Splunk' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. |
@jwcurnalia can you provide a reference sample app illustrating the issue. Thanks! |
@merbla I am also getting this error when accessing from a web service running .net 4.6.2. I don't have a ready made example or fix, but what I'm noticing is that the version number of the assembly that is loaded shows up as version 0.0.0.0. I am able to replicate this in a simple console app (also targeting .Net 4.6.2) referencing the latest stable version of the splunk sink.... using Serilog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Serilog.Sinks.Splunk;
namespace SplunkSinkTest
{
class Program
{
static void Main(string[] args)
{
var myLog = new LoggerConfiguration().WriteTo.EventCollector("example.com","token").CreateLogger();
Serilog.Log.Logger = myLog;
Log.Error("Test splunk load");
Log.CloseAndFlush();
var test = 1;
}
}
} Here is what the reference looks like with v2.5 of the nuget pacakge: ETA: I just replicated with a .Net Core console app and did not get the same issue. So it may just be an individual framework version of the .dll is not signed correctly. |
Pretty sure this is because of the missing
This doesn't seem to effect my library that extends serilog-sinks-splunk because I'm not signing it, but I'm guessing it would be a problem if I was. Looks like @merbla removed the |
Re-opening this issue.Along with that changes was this update. My assumption was that Feel free to add a PR. |
Hi, I was attempting to use the 3.2 version of the Splunk sink in a project and ran into an issue inside IIS where I get the following message on startup:
I checked the assembly with the verification option in sn.exe and got the following:
|
@cxt240 @mk-mrshll can you confirm if this behavior also exists in |
@merbla I pulled down 3.1.0 and ran |
@merbla It looks like the failure is explicitly because there's no signature. Snooping around with
Oh man that looks suspicious ... Let's see what Serilog.dll itself says:
For laughs, here's the other dependency,
Both of these pass the dreaded For what it's worth, I'm only encountering this when I'm forced into a full framework 461 project. In Core and NetStandard, things work great. Hope this helps! |
If I remove the @merbla do you think we are safe to remove the The core Serilog library conditionally applies this attribute like so
|
I'm seeing the same thing that @BrettJaner is seeing. Removing the PublicSign from the csproj does cause it to pass the |
Dev package now available at https://www.nuget.org/packages/Serilog.Sinks.Splunk
|
@merbla I can confirm that the latest dev package (3.3.0-dev-00258) is properly signed ( |
@cxt240 @magico13 @BrettJaner @mk-mrshll @msmeby a new release 3.3 is up on NuGet from this PR. Apologies for the delay. |
Closing as a part of larger Serilog contrib reorg Checkout serilog/serilog#1627 |
Can we add a strong name signing key to this assembly. I can't include it in my project that has a strong name.
The text was updated successfully, but these errors were encountered: