Giter Site home page Giter Site logo

Comments (19)

304NotModified avatar 304NotModified commented on July 21, 2024

@mikhail-barg any idea about this? I checked the NLog code and it looks well

from nlog.windows.forms.

DerekSMorin avatar DerekSMorin commented on July 21, 2024

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.

304NotModified avatar 304NotModified commented on July 21, 2024

@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.

304NotModified avatar 304NotModified commented on July 21, 2024

@DerekSMorin do you have <extensions in your config (should not be needed)

from nlog.windows.forms.

DerekSMorin avatar DerekSMorin commented on July 21, 2024

It was NLOG 2.0

from nlog.windows.forms.

DerekSMorin avatar DerekSMorin commented on July 21, 2024

I do not have <extensions in my config.

from nlog.windows.forms.

304NotModified avatar 304NotModified commented on July 21, 2024

Are there assemblyBindings in your app.config?

from nlog.windows.forms.

DerekSMorin avatar DerekSMorin commented on July 21, 2024

There are assemblyBindings, but nothing related to nlog.

from nlog.windows.forms.

DerekSMorin avatar DerekSMorin commented on July 21, 2024

I suppose someone could try a minimal app with a richtextbox and the nuget packages and try to duplicate.

from nlog.windows.forms.

304NotModified avatar 304NotModified commented on July 21, 2024

The internal log should mention the NLog version and "auto loading" . Can you check for it?

from nlog.windows.forms.

304NotModified avatar 304NotModified commented on July 21, 2024

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.

304NotModified avatar 304NotModified commented on July 21, 2024

Can you check the version of NLog.dll in your bin folder? (all versions please)

from nlog.windows.forms.

DerekSMorin avatar DerekSMorin commented on July 21, 2024

In my bin folder it says 4.3.2551.0 I'm not sure what you mean by "bin map"

from nlog.windows.forms.

DerekSMorin avatar DerekSMorin commented on July 21, 2024

There is no rush for me, I am using the code for now.

from nlog.windows.forms.

mikhail-barg avatar mikhail-barg commented on July 21, 2024

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.

mikhail-barg avatar mikhail-barg commented on July 21, 2024

@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.

mikhail-barg avatar mikhail-barg commented on July 21, 2024

TestNLogWinForms.zip

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.

304NotModified avatar 304NotModified commented on July 21, 2024

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.

lionengine123 avatar lionengine123 commented on July 21, 2024

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)

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.