question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled Exception when loading nuget package from jupyter c-sharp notebook

See original GitHub issue

Describe the bug

When installing any nuget package using for example: #r “nuget:Microsoft.Data.Analysis” using VS 2019 16.7.0 preview2.0

Did this error occur while using dotnet try or online?

  • dotnet-try
  • online

What kind of error was it?

  • User Interface (UI): For example the output never displayed
  • Service Error: For example “The service is temporarily unavailable. We are working on it”
  • Other:

Screenshots

Installing package Microsoft.Data.Analysis…done! Unhandled Exception No design time or full build available at WorkspaceServer.Packaging.Package.CreateRoslynWorkspace() at WorkspaceServer.Packaging.Package.ProcessFullBuildRequest(Budget budget) at WorkspaceServer.Packaging.Package.<SetupWorkspaceCreationFromBuildChannel>b__54_0(Budget budget) at WorkspaceServer.Packaging.PackageRestoreContext.CreatePackage(String name) at WorkspaceServer.Packaging.PackageRestoreContext.AddPackage(String packageName, String packageVersion) at WorkspaceServer.Kernel.CSharpKernelExtensions.<>c__DisplayClass2_1.<<UseNugetDirective>b__2>d.MoveNext() — End of stack trace from previous location where exception was thrown — at Microsoft.DotNet.Interactive.Commands.KernelCommandBase.InvokeAsync(KernelInvocationContext context) at Microsoft.DotNet.Interactive.KernelBase.HandleInternalAsync(IKernelCommand command, KernelInvocationContext context) at Microsoft.DotNet.Interactive.KernelCommandPipeline.<BuildPipeline>b__6_0(IKernelCommand command, KernelInvocationContext context, KernelPipelineContinuation _) at Microsoft.DotNet.Interactive.KernelBase.<AddSetKernelMiddleware>b__8_0(IKernelCommand command, KernelInvocationContext context, KernelPipelineContinuation next) at Microsoft.DotNet.Interactive.KernelCommandPipeline.SendAsync(IKernelCommand command, KernelInvocationContext context)

Please complete the following:

  • OS
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Safari

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
yduitcommented, Jun 16, 2020

Works great after uninstalled dotnet-try and then installed dotnet-interactive: jupyter kernelspec uninstall .net-fsharp jupyter kernelspec uninstall .net-csharp dotnet tool uninstall -g dotnet-try

3reactions
jonsequiturcommented, Jun 16, 2020

Jupyter support has moved from dotnet-try to dotnet-interactive. Please uninstall dotnet-try and follow the install instructions here, and let us know if this resolves the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't open Jupyter Notebook files - Unhandled error
I've been having an issue with Jupyter Notebook where I keep getting error. File Load Error for FILENAME.ipynb Unhandled error.
Read more >
Using Nuget packages with .NET Interactive
I test how I can use Nuget packages when fooling around with Jupyter notebooks using C#.
Read more >
Configuring C# debugging
The flags in the logging field are: 'exceptions', 'moduleLoad', 'programOutput', 'engineLogging', and 'browserStdOut'. Availability. launch.json ...
Read more >
Where is my .json file? : r/csharp
Hello, I made a nuget package and created a not optional .json file ... saying that my .json file was not located: Unhandled...
Read more >
Error Handling
Throwing C# Exceptions. In most cases you won't need to be concerned with ServiceStack's error handling since it provides native support for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found