Comments (9)
see #42
from classic.
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.
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.
Thanks for the follow-up, good to hear it's working.
from classic.
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.
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.
It would be nice to have 👍
from classic.
Closed via #42.
from classic.
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
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)
- Calling cfg.LogAtLevel to set the LogEventLevel seems to disable HTTP request logging? HOT 8
- UserName enricher shows (anonymous) in ApplicationLifecycleModule with Microsoft.AspNet.WebApi.* >= 5.2.5 HOT 5
- Applicationlifecycle module question HOT 7
- Using the EnvironmentUserName if none? HOT 2
- HttpModule stops working when stressed. HOT 6
- Exception with null key in form data HOT 3
- EnableFormDataLogging not logging anything with WebApi HOT 2
- .netStandard v2 version ? HOT 1
- HttpRequestUrlEnricher gives "Request is not available in this context" exception HOT 6
- Special cases when using `FilterKeywords()` with `EnableFormDataLogging()` HOT 5
- ASP .NET Core enrichers? HOT 2
- Add Http Data To All Logging Events HOT 1
- How to troubleshoot the ApplicationLifecycleModule HttpModule is loading and configured properly? HOT 6
- WithUserName Only Working With HttpModule Logging But Doesnt Log During Web Service/API Logs HOT 8
- HttpModule isn't extensible? HOT 2
- SerilogWeb.Classic IIS classic mode incompatibility HOT 1
- Customize HttpRequestEventMessageTemplate HOT 6
- Log CorrelationId with SerilogWeb.Classic's log entries HOT 2
- IIS Web application hang up after multiple requests stuck on "Begin request" HOT 1
- Multiple log messages for single Request with error 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classic.