Comments (19)
@mikhail-barg any idea about this? I checked the NLog code and it looks well
from nlog.windows.forms.
NOTE: I only have the problem when I try to create and configured the target in the Nlog.config file. Adding the code was my workaround - and it is working ok. My target in the config file used to work in an old version of NLog.
from nlog.windows.forms.
@DerekSMorin what we're the previous versions before upgrading?
I think there is something going wrong with auto loading the NLog.Windows.Forms extension (for using in the xml config)
from nlog.windows.forms.
@DerekSMorin do you have <extensions
in your config (should not be needed)
from nlog.windows.forms.
It was NLOG 2.0
from nlog.windows.forms.
I do not have <extensions in my config.
from nlog.windows.forms.
Are there assemblyBindings in your app.config?
from nlog.windows.forms.
There are assemblyBindings, but nothing related to nlog.
from nlog.windows.forms.
I suppose someone could try a minimal app with a richtextbox and the nuget packages and try to duplicate.
from nlog.windows.forms.
The internal log should mention the NLog version and "auto loading" . Can you check for it?
from nlog.windows.forms.
Yeah now on mobile. Can check this weekend. But I think there is an old NLog binary stuck in your project /solution.
from nlog.windows.forms.
Can you check the version of NLog.dll in your bin folder? (all versions please)
from nlog.windows.forms.
In my bin folder it says 4.3.2551.0 I'm not sure what you mean by "bin map"
from nlog.windows.forms.
There is no rush for me, I am using the code for now.
from nlog.windows.forms.
I suppose someone could try a minimal app with a richtextbox and the nuget packages and try to duplicate.
@DerekSMorin We actually have something that would do as a "minimal" app — https://github.com/NLog/NLog.Windows.Forms/tree/master/TestApplication
I was checking it when making changes from 4.2.2 to 4.2.3, and it worked fine. Could you please try comparing your nlog.config with one from the TestApplication?
Or maybe just confirm that TestApplication is working for you and then add parts of your nlog.config there untill it stops working?
from nlog.windows.forms.
@DerekSMorin Could it be that you are also using the AsyncWarpper around the RTB target in your config file (as in the code sample)? If yes, than could it be that in your rule
<logger name="*" minlevel="Trace" writeTo="file,rtb" />
you are referring to the inner RTB target instead of outer AsyncWrapper target?
from nlog.windows.forms.
Here's a "minimal" project with RTB target wrapped in AsyncWrapper. "Works For Me" (tm).
See if you could find a meaningful difference.
from nlog.windows.forms.
I think this is working. If not, let us know!
Closing for now.
PS: it sound to me like a wrong updated package / or using two (compatible) versions in one solution
from nlog.windows.forms.
I believe the problem is the way the project is published.
I experience the same problem when publish the project with 'PublishSingleFile' property set to true. I will create a new Issue Thread for this.
#99
from nlog.windows.forms.
Related Issues (20)
- net6.0-windows
- Support Layoutable properties HOT 3
- Fix default layout comments
- Breaking changes version 5
- Change AssemblyVersion to 5.0.0.0
- Using Only NLog.config for RichTextBox Does Not Log HOT 3
- Add net6.0-windows since LTS
- Continuous Build not running on merge to master HOT 1
- NullReferenceException in RichTextBoxTarget SendTheMessageToRichTextBox
- NLog.LogManager.Configuration reload causes RichTextBoxTarget to create a new form HOT 6
- Question: Is it possible to write to winforms ListView? HOT 2
- Form hanging when RichTextBox target nonstop logging HOT 6
- Symbols package publishing failed. HOT 1
- System.NullReferenceException calling ReInitializeAllTextboxes() HOT 5
- Missing source package on NuGet HOT 4
- RichTextBoxTarget - An exception occurred under NET48 HOT 3
- Create a nuget package with net5.0-windows platform supporting HOT 3
- No RowColor for RichTextBoxTarget when LeftToRight.Yes set HOT 3
- When to support net6.0 platform? HOT 2
- PublishSingleFile causes Target symbol-name is unknown: 'RichTextBox' HOT 16
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 nlog.windows.forms.