SoftwareAteliers/asp-net-core-vue-starter

Cannot GET /

DaveSweeton opened this issue · 2 comments

I cloned the repo, built the app, and executed "dotnet run". When a browse to http://localhost:5000/, I just get an error page that says: Cannot GET /.

I get the same results when running from visual studio.

Hi, can you confirm you have both ASP.NET Core and Node.js installed with correct versions?
My versions installed:

dotnet --version
3.1.101
node --version
v12.13.0

Visual Studio 2019 v16.4.3
Can you please share more info what happens when you run dotnet run command? Standard working output is:

info: VueCliMiddleware[0]
      Starting server on port 8080...
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\Libor\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Hosting environment: Development
Content root path: C:\Users\Libor\Source\Repos\asp-net-core-vue-starter
Now listening on: http://localhost:5000
Now listening on: https://localhost:5001
Application started. Press Ctrl+C to shut down.
> asp-net-core-vue-starter@0.1.0 serve C:\Users\Libor\Source\Repos\asp-net-core-vue-starter\ClientApp
> vue-cli-service serve "--port" "8080"
 INFO  Starting development server...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
<s> [webpack.Progress] 0% compiling
<s> [webpack.Progress] 10% building 0/0 modules 0 active
<s> [webpack.Progress] 10% building 0/1 modules 1 active multi C:\Users\Libor\Source\Repos\asp-net-core-vue-starter\ClientApp\node_modules\webpack-dev-server\client\index.js?http://192.168.1.90:8080/sockjs-node C:\Users\Libor\Source\Repos\asp-net-core-vue-starter\ClientApp\node_modules\webpack\hot\dev-server.js ./src/main.ts
<s> [webpack.Progress] 10% building 1/1 modules 0 active
<s> [webpack.Progress] 10% building 1/1 modules 0 active
...

...
<s> [webpack.Progress] 98% after emitting CopyPlugin
 DONE  Compiled successfully in 18711ms06:07:32
<s> [webpack.Progress] 100%
No type errors found
No lint errors found
Version: typescript 3.7.4, tslint 5.20.1
Time: 8672ms
  App running at:
  - Local:   http://localhost:8080/
  - Network: http://192.168.1.90:8080/
  Note that the development build is not optimized.
  To create a production build, run npm run build.
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/c29b78ebc6051d9f8352.hot-update.json
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
      Executing endpoint 'Fallback {*path}'
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
      Executed endpoint 'Fallback {*path}'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 108.7101ms 200 text/html; charset=UTF-8

My current .net version is 3.1.100 and node is v10.16.3.

I'm not sure what's different today, but I'm now able to run both from VS and from dotnet run! I didn't change any code, just rebooted my computer.

Thanks for your help, and sorry for the strange report.