Legacy .net framework web application file access #241
oysterbay73
started this conversation in
General
Replies: 2 comments 9 replies
-
|
It's not a problem I am aware of, but one I would like to resolve. Would you be able to produce a GitHub repository with a sample application, and detailed instructions on how to run the application on IIS or IIS Express. Preferably some kind of script also that I can run to trigger the behavior. Thanks! |
Beta Was this translation helpful? Give feedback.
9 replies
-
|
That's great news, thank you for looking into it
…On Sat, 5 Mar 2022, 00:18 Mattias Kindborg @FantasticFiasco, < ***@***.***> wrote:
Regarding the invalid character, it has been fixed in v8.0.0-beta.4
<https://github.com/FantasticFiasco/serilog-sinks-http/releases/tag/v8.0.0-beta.4>.
The pre-releases are of no lesser quality than the officially released
v7.2.0, but we are in the process of stabilizing the API, thus the
pre-release versions.
—
Reply to this email directly, view it on GitHub
<#241 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWWFAW3VCADF2FBMNCLEEQLU6KR6TANCNFSM5MYXLTOA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
<FantasticFiasco/serilog-sinks-http/repo-discussions/241/comments/2298505@
github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi - Does anybody have experience of using this successfully with a legacy .net framework website. I cannot get it to work properly, it logs a few events and then (with self log on) I see:
Serilog.Sinks.Http.Private.Network.HttpLogShipper: System.IO.IOException: The process cannot access the file '<myfilename>.bookmark' because it is being used by another process.The in memory sink works fine (as it uses no buffer file), but I have the same issue with both the file by time and file size sinks. I have tried using with/without the bufferFileShared option. With it switched on, I also see that the last logged event before other events get blocked is sometimes logged many times (same event, same timestamp) to the http target (it is only present once in the buffer file). I've tried using an absolute path outside of the site in case some other process was causing the issue (and just to eliminate for testing granted everyone access), but that made no difference. The site is using framework 4.7.2 but I also tried downgrading it to no avail. I get the same issue using both IIS express and IIS, although it seems to take a little longer to go wrong in IIS express.
It works absolutely fine in a Core (.NET 6.0) web app, and also using a .net framework console app, although the latter wouldn't be multi threaded which is, I assume, where the problem lies.
Beta Was this translation helpful? Give feedback.
All reactions