Unable to load Kestrel solution on Linux
See original GitHub issueEnvironment data
dotnet --info
output:
.NET Command Line Tools (2.1.0-preview1-007026)
Product Information: Version: 2.1.0-preview1-007026 Commit SHA-1 hash: 6164c26938
Runtime Environment: OS Name: ubuntu OS Version: 16.04 OS Platform: Linux RID: ubuntu.16.04-x64 Base Path: /home/cesars/.dotnet/sdk/2.1.0-preview1-007026/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0 Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
VS Code version: 1.14.2 C# Extension version: 1.12.0 Mono version: 5.0.1.1
Steps to reproduce
- Clone https://github.com/aspnet/KestrelHttpServer
- Open VSCode
Expected behavior
Solution loads and Intellisense works, etc.
Actual behavior
All projects fail to load with the same error:
[fail]: OmniSharp.MSBuild.ProjectFile.ProjectFileInfo
The specified task executable location "/home/cesars/.vscode/extensions/ms-vscode.csharp-1.12.0/.omnisharp/omnisharp/msbuild/Roslyn/RunCsc" is invalid.
[warn]: OmniSharp.MSBuild.MSBuildProjectSystem
Failed to load project file '/home/cesars/src/aspnet/KestrelHttpServer/src/Kestrel.Core/Kestrel.Core.csproj'.
/home/cesars/src/aspnet/KestrelHttpServer/src/Kestrel.Core/Kestrel.Core.csproj
This is what I have under /home/cesars/.vscode/extensions/ms-vscode.csharp-1.12.0/.omnisharp/omnisharp/msbuild/Roslyn
csc.exe
csc.exe.config
csc.rsp
csi.exe
csi.exe.config
csi.rsp
Microsoft.Build.Tasks.CodeAnalysis.dll
Microsoft.CodeAnalysis.CSharp.dll
Microsoft.CodeAnalysis.CSharp.Scripting.dll
Microsoft.CodeAnalysis.dll
Microsoft.CodeAnalysis.Scripting.dll
Microsoft.CSharp.Core.targets
Microsoft.DiaSymReader.Native.amd64.dll
Microsoft.DiaSymReader.Native.x86.dll
Microsoft.Win32.Primitives.dll
System.AppContext.dll
System.Collections.Immutable.dll
System.Console.dll
System.Diagnostics.FileVersionInfo.dll
System.Diagnostics.Process.dll
System.Diagnostics.StackTrace.dll
System.IO.Compression.dll
System.IO.FileSystem.dll
System.IO.FileSystem.DriveInfo.dll
System.IO.FileSystem.Primitives.dll
System.IO.Pipes.dll
System.Reflection.Metadata.dll
System.Security.AccessControl.dll
System.Security.Claims.dll
System.Security.Cryptography.Algorithms.dll
System.Security.Cryptography.Encoding.dll
System.Security.Cryptography.Primitives.dll
System.Security.Cryptography.X509Certificates.dll
System.Security.Principal.Windows.dll
System.Text.Encoding.CodePages.dll
System.Threading.Thread.dll
System.ValueTuple.dll
System.Xml.ReaderWriter.dll
System.Xml.XmlDocument.dll
System.Xml.XPath.dll
System.Xml.XPath.XDocument.dll
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Unable to start Kestrel. System.IO.IOException: Failed to bind ...
I published code using Visual Studio 2017 on windows machine and copied code to Linux server. crit: Microsoft.AspNetCore.Server.Kestrel[0] ...
Read more >Kestrel web server implementation in ASP.NET Core
Kestrel is a cross-platform web server for ASP.NET Core. Kestrel is the web server that's included and enabled by default in ASP.
Read more >Publishing to IIS - ASP.NET Core Documentation
The module creates the reverse-proxy between IIS and the Kestrel server. ... BadImageFormatException: Could not load file or assembly 'teststandalone.dll' ...
Read more >Unable to start Kestrel. System.IO.IOException: Failed to bind ...
Startup.cs config ... The error message is clear: something on your machine is already listening on port 5000. 2 solutions: ... I just...
Read more >Running Web APIs on Kestrel - - PowerServer 2022 Help
PowerServer 2022 Help Tutorial 6: Hosting Web APIs in Kestrel (using reverse proxy server) ... To run the PowerServer Web APIs as a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should fix the issue: https://github.com/OmniSharp/omnisharp-roslyn/pull/939
Great! 👍