-
Notifications
You must be signed in to change notification settings - Fork 165
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
${aspnet-request-posted-body} could throw 'Synchronous operations are disallowed' for ASP.NET Core 3 #548
Comments
For Kestrel use: |
@304NotModified ${aspnet-request-posted-body} is always empty in logs. I'm using asp.net core 3.1 |
@vlmironoff I think it depends when you're doing the logger call and if it's async. Please open a new issue for ths |
@vlmironoff
I also had to add the |
Thanks to @bakgerman now NLog.Web.AspNetCore v5.1 re-introduces ${aspnet-request-posted-body} with help from middleware: app.UseMiddleware<NLog.Web.NLogRequestPostedBodyMiddleware>(); It is no longer necessary to explicit call |
NLog 4.7.0
Nlog.Target.Http 1.0.1
Nlog.web.AspNet.Core 4.9.1
Aspnet.Core 3.1.201
internal logging first was indicating :
After googling I found that I must add
Originally posted by @husseinshaib1 in NLog/NLog#3906 (comment)
The text was updated successfully, but these errors were encountered: