❔ Trying to run operations off of a MVC API
Everything is loading properly, however this solution is very primitive because it uses a list instead of a context for now (MVP). I would like to do a simple Get, that returns everything in this list, and it will be attached as a screenshot at the end of this message. The only problem (and it is a big one), is that every time I try to run this (IIS), it thinks for about 5 seconds, and then crashes without throwing any error. What should I do?
28 Replies
Yeah,
.ToString()
ing a list does not work like you think it would
Just return Ok(theList)
I tried that, also didnt work @ZZZZZZZZZZZZZZZZZZZZZZZZZ
And, of course, the return type should not be a string
Ill double check it though
Right, List<Store> should do ti.
it.
Still nothing @ZZZZZZZZZZZZZZZZZZZZZZZZZ
What's your updated code?
Maybe it's something with IIS, dunno. I've never used IIS in my life
neither have I 😭
Do you have to use IIS?
well its a local project, and using Http/https wont work because the certificate is bunz.
so
im guessing so
Kestrel is a thing
with VS?
The IDE has nothing to do with anything
I run it off of the IDE though
Uh, maybe you can change the run setup? Dunno, been years since I used VS
Also, did you try debugging?
Placing a breakpoint here and there
i did, nothing worked.
it didn't even hit the breakpoints (yes I was in debug mode)
In that case, no idea
Everything about this endpoint seems perfectly fine
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Same thing happens.
But I found this error.
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Like I dont know
thats why I asked
I dont have any idea to what that is telling me but I didn't know if it would help
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.still did not work.
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.