Open lucavgobbi opened 4 years ago
Are you running an older version of dotnet-try
?
Try this:
> dotnet tool uninstall -g dotnet-try
> dotnet tool install -g Microsoft.dotnet-try
Hi @jonsequitur. I followed the steps and made sure that I was running the latest version.
After reinstalling, whenever I try to run dotnet try
or dotnet try demo
the server runs fine but I can't get past certificate errors.
Firefox provides the following error: An error occurred during a connection to localhost:51557. PR_END_OF_FILE_ERROR
I've already tried using removing and adding again the localhost cert using dotnet dev-certs
with no success.
I have other dotnet core projects running on localhost and the certificate is accepted by all browsers.
Console output
Hosting environment: Production Content root path: /Users/lucavgobbi/.dotnet/tools/.store/microsoft.dotnet-try/1.0.20268.1/microsoft.dotnet-try/1.0.20268.1/tools/netcoreapp3.1/any Now listening on: https://localhost:51557 Application started. Press Ctrl+C to shut down.
hey @lucavgobbi afaik those issues with firefox and errors like yours may be caused by your security software or even by the security settings of your ISP
Describe the bug
When running any code blocks using dotnet-try, UI displays "Internal Server Error" and Network Console return HTTP 500 with the following payload:gAwaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"}`
{"message":"An unhandled exception occurred.","exception":"System.InvalidOperationException: No design time or full build available\n at WorkspaceServer.Packaging.Package.CreateRoslynWorkspace()\n at WorkspaceServer.Packaging.Package.ProcessFullBuildRequest(Budget budget)\n at WorkspaceServer.Packaging.Package.<SetupWorkspaceCreationFromBuildChannel>b__54_0(Budget budget)\n at WorkspaceServer.Servers.Roslyn.PackageExtensions.GetCompilation(IPackage package, IReadOnlyCollection
1 sources, SourceCodeKind sourceCodeKind, IEnumerable1 defaultUsings, Func
1 workspaceFactory, Budget budget)\n at WorkspaceServer.Servers.Roslyn.RoslynWorkspaceServer.GetDiagnostics(WorkspaceRequest request, Budget budget)\n at WorkspaceServer.Servers.WorkspaceServerMultiplexer.GetDiagnostics(WorkspaceRequest request, Budget budget)\n at MLS.Agent.Controllers.LanguageServicesController.Diagnostics(WorkspaceRequest request, String timeoutInMilliseconds) in F:\workspace\_work\1\s\MLS.Agent\Controllers\LanguageServicesController.cs:line 131\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.No error is shown on the console running the server.
❯ dotnet --info .NET Core SDK (reflecting any global.json): Version: 3.1.401 Commit: 39d17847db
Runtime Environment: OS Name: Mac OS X OS Version: 10.15 OS Platform: Darwin RID: osx.10.15-x64 Base Path: /usr/local/share/dotnet/sdk/3.1.401/
Host (useful for support): Version: 3.1.7 Commit: fcfdef8d6b
.NET Core SDKs installed: 3.1.401 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Did this error occur while using
dotnet try
or online?dotnet-try
What kind of error was it?
Screenshots
Please complete the following: