SharpLab icon indicating copy to clipboard operation
SharpLab copied to clipboard

Help with first steps

Open m-carrasco opened this issue 5 years ago • 28 comments

Hi.

Sharplab has been really useful to me and I'd like to extend its functionality. Although, I'm having some issues getting started with local development.

I read the instructions and executed sl setup. It successfully builds everything. However, when I run Server and try to locally connect, I get 404 on my browser.

  1. sl setup outputs Server -> D:\dev\sharplab-vanilla\source\Server\bin\Debug\netcoreapp3.1\publish\
  2. From my cmd I do D:\dev\sharplab-vanilla\source\Server\bin\Debug\netcoreapp3.1\SharpLab.Server.exe which outputs:
info: Microsoft.Hosting.Lifetime[0]
      Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
      Now listening on: https://localhost:5001
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: D:\dev\sharplab-vanilla
  1. I connect from my browser to: http://localhost:5000, https://localhost:5001 and http://localhost:49891/. Everytime I try, I get 404. The first URL outputs in the Server.exe console:
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 24.7209ms 404

Alternatively, I also run Server with IIS Express from Visual Studio (green play button). The browser pops up and I get 404.

I'm pretty sure I must be forgetting something stupid. The truth is that it is my very first time regarding C# web development.


I work on a three address code representation of CIL bytecode. I'd really like to integrate it into your website!

Best, Manuel.

m-carrasco avatar Jul 11 '20 02:07 m-carrasco