Unable to add nuget packages - or open Workbook with nuget package

DepechieDepechie BEInsider, Developer Group Leader ✭✭

Running Xamarin Workbooks v1.3.1 and when I try to create a new workbook for Xamarin forms, the spinner keeps turning saying "Adding nuget package" when I try to add Xamarin Forms nuget package.

When I try one of the Xamarin forms workbooks examples from Xamarin GitHub, the workbook opens en Loading Packages keeps spinning on top without any result.

Tips on how to get this working?

Answers

  • SandyArmstrongSandyArmstrong USXamarin Team, Insider Xamurai

    Hi @Depechie,

    This could indicate that you have some extra nuget repositories configured that are slow on the server side. Could you attach your log file? I believe it will have information about what nuget repositories are being searched. See https://developer.xamarin.com/guides/cross-platform/workbooks/install/#Reporting_Bugs for log file information.

    Also, are you on Mac or Windows?

  • DepechieDepechie BEInsider, Developer Group Leader ✭✭
    Running on Mac.
    Will see about the log files... and post them later!
  • DepechieDepechie BEInsider, Developer Group Leader ✭✭

    Opened the log file and seems I keep getting this:

    [Info][00:03:58.8818030] NuGet (Log): Executing nuget actions took 89.12 ms @ /Users/builder/vsts/_work/1/s/Clients/Xamarin.Interactive.Client/NuGet/InteractivePackageLogger.cs:41
    Xamarin Workbook App (:61677) => [Warning][00:00:51.1284790] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
    Xamarin Workbook App (:61677) => [Warning][00:00:51.1287540] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
    Xamarin Workbook App (:61677) => [Warning][00:00:51.1307700] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
    Xamarin Workbook App (:61677) => [Error][00:00:51.1389580] AssemblyLoadRequest (HandleAsync): Could not load sent assembly Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName: Could not load assembly Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location did not exist and PEImage was not sent.: System.Exception: Could not load assembly Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location did not exist and PEImage was not sent.
    at Xamarin.Interactive.Compilation.CompilationAssemblyContext.HandleAssemblyResolve (System.Object sender, System.ResolveEventArgs args) [0x0020e] in :0
    at System.AppDomain.DoAssemblyResolve (System.String name, System.Reflection.Assembly requestingAssembly, System.Boolean refonly) [0x00075] in :0
    at Xamarin.Interactive.Repl.ReplExecutionContext.CheckLoadedAssemblyForAgentIntegration (System.Reflection.Assembly assembly) [0x000e3] in :0
    at Xamarin.Interactive.Repl.AssemblyLoadRequest.HandleAsync (Xamarin.Interactive.Core.Agent agent) [0x000f6] in :0 @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:60

  • SandyArmstrongSandyArmstrong USXamarin Team, Insider Xamurai

    If you could post the full log on gist.github.com that could help as well.

  • DepechieDepechie BEInsider, Developer Group Leader ✭✭
  • DepechieDepechie BEInsider, Developer Group Leader ✭✭

    @SandyArmstrong any thoughts? Something that can be solved?

  • SandyArmstrongSandyArmstrong USXamarin Team, Insider Xamurai

    I'll have to look into this next week, sorry for the delay.

  • DepechieDepechie BEInsider, Developer Group Leader ✭✭

    No worries... thx for the update!

  • janvdpjanvdp BEInsider, Beta, University, Developer Group Leader

    I'm running into the same problem on Workbooks, was unable to restore the packages...

    This is the log generated by Workbooks:

    Xamarin Workbook App (:49700) => [Info][00:00:00.1781420] iOSAgent (Start): iOS 'Xamarin Workbook App' is available for interaction: xamarin-interactive://127.0.0.1:49700/v1?agentType=iOS&sessionKind=Workbook @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Core/Agent.cs:267
    Xamarin Workbook App (:49700) => [Info][00:00:00.3212030] iOSAgent (ChangeDirectory): /Users/janvdp/Library/Developer/CoreSimulator/Devices/9C5F848C-5767-4E5D-87E3-2A8F7B1C0FED/data/Containers/Bundle/Application/923390A6-C0AC-42E3-BF48-C0D564CD8760/Xamarin.Workbooks.iOS.app → /private/var/folders/kb/jxbcvsw90rg90g5mq895jv7w0000gp/T/iUnarchive-Temp/2/Workbooks-master/xamarin-forms/application-fundamentals/hierarchical-navigation/hierarchical-navigation.workbook @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Core/Agent.cs:315
    Xamarin Workbook App (:49700) => [Warning][00:00:02.4440250] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
    Xamarin Workbook App (:49700) => [Warning][00:00:02.4442410] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
    Xamarin Workbook App (:49700) => [Warning][00:00:02.4447240] AssemblyLoadRequest (HandleAsync): Could not load assembly name Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName, location didn't exist and PE image wasn't sent. @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:50
    Xamarin Workbook App (:49700) => [Error][00:00:02.4516230] AssemblyLoadRequest (HandleAsync): Could not load sent assembly Xamarin.Interactive.Representations.Reflection.RepresentedAssemblyName: Could not load assembly Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location did not exist and PEImage was not sent.: System.Exception: Could not load assembly Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null, location did not exist and PEImage was not sent.
    at Xamarin.Interactive.Compilation.CompilationAssemblyContext.HandleAssemblyResolve (System.Object sender, System.ResolveEventArgs args) [0x0020e] in :0
    at System.AppDomain.DoAssemblyResolve (System.String name, System.Reflection.Assembly requestingAssembly, System.Boolean refonly) [0x00075] in :0
    at Xamarin.Interactive.Repl.ReplExecutionContext.CheckLoadedAssemblyForAgentIntegration (System.Reflection.Assembly assembly) [0x000e3] in :0
    at Xamarin.Interactive.Repl.AssemblyLoadRequest.HandleAsync (Xamarin.Interactive.Core.Agent agent) [0x000f6] in :0 @ /Users/builder/vsts/_work/1/s/Agents/Xamarin.Interactive/Repl/AssemblyLoadRequest.cs:60

Sign In or Register to comment.