Giter Site home page Giter Site logo

Comments (9)

jmkelly avatar jmkelly commented on May 24, 2024 1

see #42

from classic.

nblumhardt avatar nblumhardt commented on May 24, 2024

Thanks for the report. It sounds like the NuGet package install process may not have created the required assembly binding redirects; do the instructions at: https://weblog.west-wind.com/posts/2014/Nov/29/Updating-Assembly-Redirects-with-NuGet help?

from classic.

igorskys avatar igorskys commented on May 24, 2024

Thanks for the reply. It helped. I was asked to downgrade Serilog to 2.3.0 and for somereason SerilogWeb.Classic returned be to the same issue. The hint doesn't help.

from classic.

nblumhardt avatar nblumhardt commented on May 24, 2024

Thanks for the follow-up, good to hear it's working.

from classic.

igorskys avatar igorskys commented on May 24, 2024

Actually it is not working in my specific case. We have sharepoint application. This application doesn't use app.config, it uses custom config path. I added assembly redirect to my custom config, but it didn't help.

Here is failure log.

=== Pre-bind state information === LOG: DisplayName = Serilog, Version=1.5.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10 (Fully-specified) LOG: Appbase = file:///C:/inetpub/wwwroot/wss/VirtualDirectories/80/ LOG: Initial PrivatePath = C:\inetpub\wwwroot\wss\VirtualDirectories\80\bin Calling assembly : SerilogWeb.Classic, Version=2.1.0.0, Culture=neutral, PublicKeyToken=9462ddd55fbc0e7f. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. LOG: Post-policy reference: Serilog, Version=1.5.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10 LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/16360c98/2517c5fc/Serilog.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/16360c98/2517c5fc/Serilog/Serilog.DLL. LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/wss/VirtualDirectories/80/bin/Serilog.DLL. WRN: Comparing the assembly name resulted in the mismatch: Major Version ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Thank you!

from classic.

nblumhardt avatar nblumhardt commented on May 24, 2024

Thanks for the update.

Serilog 2 has been out for a long time; I'd be happy if we updated this package to depend directly on Serilog 2.5, and bumped its major version.

Is anyone interested in PRing this? Cheers!

from classic.

igorskys avatar igorskys commented on May 24, 2024

It would be nice to have 👍

from classic.

nblumhardt avatar nblumhardt commented on May 24, 2024

Closed via #42.

from classic.

tsimbalar avatar tsimbalar commented on May 24, 2024

I'm not sure, but I believe there are still traces of older versions of Serilog :-/

I see

<dependencies>
      <dependency id="Serilog" version="1.5.7" />
</dependencies>

in file https://github.com/serilog-web/classic/blob/master/src/SerilogWeb.Classic/SerilogWeb.Classic.nuspec

And the last published NuGet package declares Serilog v1.5.7+ as a dependency : https://www.nuget.org/packages/SerilogWeb.Classic/3.0.19

image

I believe there should be no <dependencies> node in the .nuspec file, as nuget pack projectPath will already generate it for you, looking at the project's packages.config file.

from classic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.