FileNotFoundException: Could not load file or assembly Syncfusion.sfpopuplayout.XForms

Peri Hartman 21 Reputation points
2021-01-06T16:21:38.26+00:00

I'm not sure how to resolve this. During runtime, I'm getting an initialization error

System.IO.FileNotFoundException: Could not load file or assembly 'Syncfusion.SfPopupLayout.XForms, Version=18.4451.0.33, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

The file (if this is the correct one) exists here:

C:\Users....nuget\packages\syncfusion.xamarin.sfpopuplayout\18.4.0.33\lib\netstandard2.0\Syncfusion.SfPopupLayout.XForms.dll

This is happening in the constructor of my ContentPage.

The Dependencies/Packages folder shows Syncfusion.Xamarin.SfPopupLayout(18.4.0.33). I see the error is reporting 18.4451.0.33. Is that a significant difference ? What do I do ?

Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,367 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 27,266 Reputation points Microsoft Vendor
    2021-01-07T08:22:25.927+00:00

    Hi @Peri Hartman ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    Please try to clear NuGet Cache from Tools > NuGet Package Manager > Package Manager Settings > Clear All NuGet Cache(s), after that go to your solution folder and delete the bin and obj folders then rebuild your solution to see if this issue disappear.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful