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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.11
    • Component/s: Core
    • Labels:
      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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              edy Eduard Gomolyako

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment