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.

CSProj Error : ASP.NET Core

See original GitHub issue

Hello, I got error for not having sln on the project, does this extension doesn’t support .csproj file and ASP.NET?

[Error  - 15:05:51] Starting client failed 
  Message: Internal Error - System.ArgumentException: OmniSharp only supports being launched with a directory path or a path to a solution (.sln) file.

Parameter name: path

   at OmniSharp.Services.OmniSharpEnvironment..ctor(String path, Int32 hostPid, LogLevel logLevel, String[] additionalArguments) in D:\a\1\s\src\OmniSharp.Host\Services\OmniSharpEnvironment.cs:line 38

   at OmniSharp.LanguageServerProtocol.LanguageServerHost.CreateCompositionHost(InitializeParams initializeParams) in D:\a\1\s\src\OmniSharp.LanguageServerProtocol\LanguageServerHost.cs:line 84

   at OmniSharp.LanguageServerProtocol.LanguageServerHost.Initialize(ILanguageServer server, InitializeParams initializeParams) in D:\a\1\s\src\OmniSharp.LanguageServerProtocol\LanguageServerHost.cs:line 157

   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()

   at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)

   at OmniSharp.Extensions.LanguageServer.Server.LanguageServer.<MediatR-IRequestHandler<OmniSharp-Extensions-LanguageServer-Protocol-Models-InitializeParams\,OmniSharp-Extensions-LanguageServer-Protocol-Models-InitializeResult>-Handle>d__55.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2.<Handle>d__5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at MediatR.Pipeline.RequestPostProcessorBehavior`2.<Handle>d__2.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at MediatR.Pipeline.RequestPreProcessorBehavior`2.<Handle>d__2.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1.<RouteRequest>d__6.MoveNext()
  Code: -32602 

Thank you

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
eruizc-devcommented, Nov 5, 2020

As far as I’m concerned this was fixed in the last commit.

At least in Manjaro (linux). Did not test in Windows.

1reaction
yatlicommented, Nov 5, 2020

will be fixed in 0.27

Read more comments on GitHub >

github_iconTop Results From Across the Web

csproj error · Issue #6445 · dotnet/core - GitHub
Problem encountered on https://dotnet.microsoft.com/learn/aspnet/hello-world-tutorial/modify. Operating System: windows.
Read more >
How to fix build error on ASP.NET Core + ServiceStack?
ServiceInterface\Pizza.Service Interface.csproj (in 2.71 sec). Restored C:\Users\noliveros\Desktop\Pizza\Pizza\Pizza.csproj (in 2.71 sec).
Read more >
NET Core project using .csproj fails using VS2017 Host
I am trying to use the VS2017 Host to build a .NET core 1.1 project that uses the new .csproj file. I created...
Read more >
Troubleshooting .NET Framework Targeting Errors - MSBuild
To resolve the error, make sure that your application targets a .NET version that's compatible with the version that's targeted by the projects...
Read more >
Deploying an ASP.NET core application with Elastic Beanstalk
NET Core or MSBuild applications on a single server. To deploy a .NET Core application to a Windows Server environment, you add a...
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