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

[PATCH] NotSupportedException is thrown in SystemInfo.AssemblyLocationInfo for dynamic assemblies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.11
    • 1.2.12
    • Core

    Description

      For dynamic assemblies "Location" property shouldn't be used (http://msdn.microsoft.com/en-us/library/system.reflection.assembly.location.aspx).
      Therefore in log4net.Util.SystemInfo we can test if assembly is dynamic and in result avoid exception.

      Exception is very annoying and popular with NHibernate 3.3.3.4001.

      I have added both fix and test.

      Attachments

        1. NotSupportedExceptionInSystemInfo.patch
          2 kB
          Piotr Westfalewicz
        2. NotSupportedExceptionInSystemInfo2.patch
          3 kB
          Piotr Westfalewicz

        Activity

          People

            nachbarslumpi Dominik Psenner
            piotrwest Piotr Westfalewicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: