Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-7473

.NET: "Could not load file or assembly ConfigurationManager" error on Linux

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: platforms
    • Labels:

      Description

      Steps to reproduce:

      dotnet new console
      dotnet add package Apache.Ignite
      nano Program.cs  # Add Ignition.Start() line and a namespace import
      dotnet run
      

      Error:

      Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
      

      Works on Windows, does not work on Linux.
      <PackageReference Include="System.Configuration.ConfigurationManager" Version="4.4.0" /> is required to fix the issue.

      However, ConfigurationManager is not necessary for code configuration, we should be able to start without it.

        Attachments

          Activity

            People

            • Assignee:
              ptupitsyn Pavel Tupitsyn
              Reporter:
              ptupitsyn Pavel Tupitsyn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: