Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-143

Invalid Repository Config Uri composition from "log4net.Config" application setting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.2.10
    • 1.2.11
    • Core
    • None

    Description

      In DefaultRepositorySelector class in method ConfigureRepository(Assembly assembly, ILoggerRepository repository) (DefaultRepositorySelector.cs, line 706) code perform config uri composition from applicationBaseDirectory path and specified in "log4net.Config" settings file name. Because SystemInfo.ApplicationBaseDirectory property return path not ended with slash '\' at line 706 during "new Uri(applicationBaseDirectory)" operation executed trimmed last folder, so config uri made invalid.

      Attachments

        1. Fix.jpg
          29 kB
          Olivier Oswald

        Activity

          People

            Unassigned Unassigned
            edy Eduard Gomolyako
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: