dotnet / try

Try .NET provides developers and content authors with tools to create interactive experiences.
MIT License
2.87k stars 520 forks source link

System.IO.FileNotFoundException when open C# notebook in Jupyter #498

Closed bhrnjica closed 4 years ago

bhrnjica commented 4 years ago

I have started to test C# Jupyter Notebook after I followed the instruction how to install Jupyter .NET Kernel on my local machine. I have successfully installed the latest version of Anaconda with Python 3.7. Once the Anaconda installed , I opened Anacoda CMD prompt and installed 'dotnet try’ tool from the instruction document.

Everything was installed without any errors. I have opened Jupyter Notebook and tried to open MLNET-Jupyter-Demo.ipynb predefined sample. As soon I run the first cell in the notebook, the .NET kernel throws the exception in the cmd:

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Components.Prerendering
, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

Before and after the bug appeared, I could successfully run Python Notebook.

I attached the full exception in the bug report.

Did this error occur while using dotnet try or online?

What kind of error was it?

Screenshots

If applicable, add screenshots to help explain your problem.

Please complete the following:

NETKernel Exception.txt

jonsequitur commented 4 years ago

Thanks, @bhrnjica. Can you also provide the output of the following two command lines:

> dotnet --info
> dotnet-try --version
bhrnjica commented 4 years ago

Sure, here are screenshots with the commands: 2019-10-05_9-14-43 2019-10-05_9-15-38

bhrnjica commented 4 years ago

After update to the latest version of ‘dotnet try’ tool (1.0.19507.38+911bbcb1cbe963268623f95b76cad450006be78b), everything works perfectly.