I'm using .NET Framework 4.8 and tried to deployed my web app to IIS but it showed the 403.14 error.
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
And then I enabled directory browsing. This time, it showed the directory listing instead. As I clicked the "Views" folder, it returned another error.
HTTP Error 500.21 - Internet Server Error
Handler "BlockViewHandler" has a bad module "ManagedPipelineHandler" in its module list
I have been finding solution for days but none of them worked...
EDIT: I started a new MVC project and tried to depoly it. It works perfectly. But it broke once I added new database using entity framework. Just guessing the problem comes from the database. Is there any configuration if I want to deploy a MVC app with db?