cap5lut
cap5lut
CC#
Created by santiw01 on 4/29/2025 in #help
✅ Object reference not set to an instance of an object.
good call, been so long that i used databases, and if then usually efc that i dunno about how ... uuh i guess dapper(?) reacts
20 replies
CC#
Created by santiw01 on 4/29/2025 in #help
✅ Object reference not set to an instance of an object.
it has to be somewhere else, the only member access (which would cause a NRE) is connection.QueryAsync..., and its impossible that connection is null there
20 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
anyway, if ur problem is solved and u dont have any questions left, please mark this thread as that by $close ing it
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
that 404 might be a hint that u were still running an old version, where that endpoint simply didnt exist yet. because it doesnt make sense to respond with that status code
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
i dont have enough information to tell ya why it works 😂
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
did u close the process u started via dotnet run?
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
kk, ill take a quick ciggy break
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
test it like that first with a GET request that doesnt need a body, simply to test if it works
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
http://localhost:53415/Api/User/new was the old URI so the endpoint is /Api/User/new and the old base address was localhost:53415 for HTTP from the logs u showed earlier, u can see that the new base addresses are localhost:5001 for HTTPS and localhost:5000 for HTTP so the new URI for that endpoint should be: http://localhost:5000/Api/User/new
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
the important point is that the port changed
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
so does what SleepWellPupper mentioned work?
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
the weird thing is actually that u get a 404 after all, from various online resources (cant test it right now locally), it should be either a 400 response code (bad request), or ur model binding simply wouldnt work
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
(quick afk for ~4-5min)
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
can u show me the url of an endpoint that worked previously?
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
if it now works, the problem was the iis express for sure
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
so first of all check now, if u can get it to work with either https://localhost:5001/<your-endpoint> or http://localhost:5000/<your-endpoint>
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
these logs look fine
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
yeah thats the normal logging ur application does
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
you probably will have to set up HTTP logging
84 replies
CC#
Created by b on 4/22/2025 in #help
✅ Sending an HTTP GET request with a JSON body and then reading it in the .NET Core Web Server
i assume u r using visual studio and i cant check there how to start it that way, because i am using jetbrains rider. but essentially u could open the terminal, go to the project folder and execute dotnet run and it should start as standalone process without iis express
84 replies