Log4net
  1. Log4net
  2. LOG4NET-113

[PATCH] SystemInfo.GetTypeFromString() raises NotSupportedException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.11
    • Fix Version/s: 1.2.11
    • Component/s: Other
    • Labels:
      None
    • Environment:
      .NET CF 2.0 SP1 on Windows CE 4.2, tested on Psion Teklogix Workabout Pro (ARM processor)

      Description

      BUG:
      Calling the GetTypeFromString(string, bool, bool) method in .NET CF 2.0 SP1 on Windows CE 4.2 raises a NotSupportedException if the supplied typeName parameter contains a comma (",") and both boolean values are "true", i.e. when specifying a type and the including assembly in the log4net XML configuration.
      The exception stems from the overloaded Type.GetType method that takes three parameters. When using the two parameter Type.GetType method, everything works fine.

      Steps to reproduce:
      On the described environment configure e.g. an Appender and supply the assembly name in the "type" attribute.

      PATCH:
      The patch simply uses the two parameter GetType overload for all NETCF frameworks instead of only for NETCF_1_0.

      1. patch-file
        0.5 kB
        Alexander Hoisl

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Nicko Cadell
            Reporter:
            Alexander Hoisl
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development