gothinkster / aspnetcore-realworld-example-app

ASP.NET Core backend implementation for RealWorld
https://realworld.io
MIT License
1.94k stars 549 forks source link

can't connect to localhost:5000 #70

Closed mdelgadov closed 5 years ago

mdelgadov commented 5 years ago

Don't know if this is a bug or a configuration: To reproduce: git clone ... open vs and then the sln file In the startup file, change default to connect to local database

public const string DEFAULT_DATABASE_CONNECTIONSTRING = "Data Source=*****;Initial Catalog=Conduit;Persist Security Info=True;User ID=conduit;Password=*";

and public const string DEFAULT_DATABASE_PROVIDER = "sqlserver";

start debugging (hitting f5): In the browser: Receive 404, also when calling 127.0.0.0:44460: host rejected connection.

In the output it says: Conduit> Now listening on: http://127.0.0.1:44460 and later, after calling anything: Conduit> 14:39:36 [Information] Microsoft.AspNetCore.Hosting.Internal.WebHost Request starting HTTP/1.1 GET http://localhost:56055/api/tags
Conduit> 14:39:36 [Information] Microsoft.AspNetCore.Hosting.Internal.WebHost Request finished in 0.467ms 404

Thanks in advance, I love this project

mdelgadov commented 5 years ago

Ok, I hacked this one like this:

commented the url configuration used the localhost:pornum/tags (not api/tags as usua)