500 errors serving static content from ASP .Net Framework 4.5 sites using custom account in app pool

I have a few older ASP .Net Framework (web forms and mvc) sites on an IIS server which run in an app pool which uses a custom AD account. Serving any static files (images, js, css) from the Content folder of the site has always worked fine – but this began failing a few weeks ago. All requests for static content return a 500 error. The dynamic content still runs fine. When I switch the app pool to use the built-in ApplicationPoolIdentity, then the static content is returned fine. I verified that the custom AD account has read access to the static files on file system. There are no messages in the event log and the IIS logs only show the 500 response with no details. As this works fine using the built-in account, I am assuming the static file handler is still installed and running as expected.

ASP.NET forum app: obtaining the answer with most likes

We are building a forum type web application, and we are tring to make the answers with most likes (and most dislikes) look different. The Answer entity has a Reactions property (list of reactions) that include likes and dislikes (those are differentiated with a boolean property, true for like, false for dislike). Is there a way to obtain the answer with most likes, and the answer with most dislikes, with a LINQ query directly? or we have to make a method that solves it?

Get value from selected option and pass it to the function

Hi im making a reservation page in razor pages asp.net. On my page I have two drop downlist. One for the location other for the rooms of that specific location. I want to pass the value of that selected location to the function which shows the rooms (function is named showRoom()), so that the rooms will be shown depending on which location you selected. How do i do that with html? I tried something but didnt really work. Here is the html code