user5326354
user5326354

Reputation:

Error 500.21 when running site on IISExpress using visual studio

I know this question was asked before but I couldn't find a solution that helped me anywhere and feel hopeless.

I'm developing asp.net web sites using iis express.

Recently after accidently messing with visual studio installations I started getting error 500.21 when running any web application through visual studio (I tried running it from all three I have installed - 2013, 2015, 2017). When doing so I get:

error 500.21 - 'Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list.'

All the projects web.config file has not been changed, it is working for my other team members and has worked for me before, therefore I don't think the problem is there.

Things I've tried to track the issue:

Upvotes: 0

Views: 531

Answers (1)

user5326354
user5326354

Reputation:

It took me a while to figure out that the applicationhost.config that visual studio references to when running sites on IISExpress was in the .vs folder and not in the IISExpress folder itself.

The file in the .vs folder was corrupted and after replacing it with the applicationhost.config from the IISExpress folder things started working out

Upvotes: 1

Related Questions