Cruel
Cruel
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
Yeah it's a big and old system that needs replacing for sure 😂
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
But it is not complex, mostly just getting data from a database and returning it
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
Maybe 100 endpoints and is a dependency for many other systems
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
Yeah no worries, thankyou for your suggestions I really appreciate it!
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
But there is no unique dependency here that would fail and cause one of the endpoints to work and one wouldn't, they all share the same ones so I think that most likely isn't the problem
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
I don't fully understand how that works
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
Actually maybe not, we are using Unity for DI and PerResolveLifetimeManager so maybe it isn't scoped per request.....
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
I checked and all dependencies are scoped for the request no singletons
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
We have a filter that is used for auth before that actual endpoint method is called but I am certain that wasnt even being hit from sending the unauth'd requests so for sure the error is being returned before that point
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
and no owin references but there is system.web reference
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
No middlewares no
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
No startup but yes to global.asax and that has reference to system.web.http and controllers inherit from ApiController
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
I can see references to system.web.http etc but no owin
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
2min ill see if I can find it
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
It's a .net framework 4.6.x project I think
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
*Authorize
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
In that case it must be something "before" my controller endpoint was hit, because that code all has databse logging, would return a proper errror message etc. Before it hits that endpoint there is also an Auhorize attribute and it clearly didnt hit that either
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
I checked with postman and I think it return same via browser but didn't check exact status code
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
It returned Internal Server Error and JSON { "Message": "An error has occurred." }
95 replies
CC#
Created by Cruel on 9/4/2024 in #help
Question about IIS /API Issue
Yeah it definitely needs some work, but my thinking is that this error was happening outside of the code I had written, as if IIS was automatically returning a 500 or something on this specific endpoint
95 replies