Could not load file or assembly 'C1.WPF.FlexGridFilter.4.6.2

Posted by: magalotti.mirko.1b2014.mm on 29 June 2023, 6:56 pm EST

  • Posted 29 June 2023, 6:56 pm EST - Updated 29 June 2023, 7:02 pm EST

    Hello.

    I use .NET framework 4.8, has anyone ever had this error?

    This is xaml code:

    <c1:C1FlexGrid x:Name="grid">
        <c1:C1FlexGridFilterService.FlexGridFilter>
            <c1:C1FlexGridFilter />
        </c1:C1FlexGridFilterService.FlexGridFilter>
    </c1:C1FlexGrid>

    These are linked libraries: (all found in the output folder)

    -C1.WPF.4.6.2

    -C1.WPF.FlexGrid.4.6.2

    -C1.WPF.FlexGridFilter.4.6.2

    When i open the form i get: Could not load file or assembly C1.WPF.FlexGridFilter.4.6.2

  • Posted 2 July 2023, 6:19 pm EST

    Hi,

    Thanks for reaching out to us with your query.

    You have missed a dependency of C1FlexGridFilter. Please refer here for the dependencies of C1FlexGridFilter: https://www.nuget.org/packages/C1.Xaml.WPF.FlexGridFilter#dependencies-body-tab

    You need to add all dependencies including DateTimeEditors.

    If you are still getting errors after adding DateTimeEditors, then you can follow the below steps:

    1. Delete all references(C1.WPF, C1.WPF.FlexGrid, C1.WPF.FlexGridFilter and C1.WPF.DateTimeEditors) from project.
    2. Right Click on your Project(in Solution Explorer)
    3. Click on “Manage NuGet Packages”.
    4. Search C1FlexGridFilter in search bar of Nuget package manager.
    5. Select C1.Xaml.WPF.FlexGridFilter and install it.

    Now The FlexGridFilter installs on your projects with all dependencies.

    If you are facing any issues then you can get back to us.

    Regards,

    Nitin

  • Posted 3 July 2023, 7:57 pm EST - Updated 3 July 2023, 8:03 pm EST

    Hi,

    I followed your steps and did everything with Nuget.

    Same error:

  • Posted 4 July 2023, 7:57 pm EST - Updated 4 July 2023, 8:02 pm EST

    Hi,

    Apologize for any inconvenience.

    But we are still unable to replicate this issue at our end.

    Please refer to the attached video for the full process that we followed at our end: FlexGridFilterNuget.zip

    Also, please share the screenshot of the files under bin/debug folder of your project.

    Please refer the sample that we tested this scenario : FlexGridFilter.zip

    And please update it to replicate this behavior, if possible. So, that we can assist you better.

    Regards,

    Nitin

  • Posted 5 July 2023, 1:56 am EST

    Hi,

    Same Problem.

    I uploaded the solution but you need Inventor to test it.

    Possible some conflict with Inventor?

    Thanks.

  • Posted 5 July 2023, 1:57 am EST

  • Posted 5 July 2023, 9:02 pm EST

    Hi,

    That’s useful information. We were unsure about your Use-case and how you are actually building the application with FlexGrid and FlexGridFilter.

    We tested your application after installing the Inventor. And faced the same issue that you are getting. The application couldn’t find the dll which is referenced in the project.

    In this case, and external .exe is running while building the application(Path=C:\Program Files\Autodesk\Inventor 2022\Bin\Inventor.exe). And there are no dlls available on this path which is used in the project like FlexGrid and FlexGridFilter. In order to resolve this issue, you can copy all C1 dlls from bin/debug folder and paste to Path(along with Inventor.exe): C:\Program Files\Autodesk\Inventor 2022\Bin.

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels