I opened a existing website and tried to run that website. The website was using ASP.NET framework 4.0. However, the website has no errors and working fine in previous version of Visual Studio. But when I started with debugging (F5), this produced following error.
I can not understand the problem in a single view, as it suggest to change some configuration different methods in things you can try section. While there is not handler configured in web.config system for Web Server. Instead there was no system.webServer node.
So I searched in Internet and found some suggestion to make changes in Application Pool setting in IIS Manager. I tried that too but that was also a failed trial. Then suddenly I got a click in my mind and tried a setting which worked immediately.
How can the change done in Internet Information Service (IIS) Manager reflect in Development server. When we run the website from Visual Studio it loads in development server instead of IIS. So we have to make change in Development server which will automatically solve all the problems.
I thought, some time you might have same situation and solution must be there before problem.
Step 1: Open visual studio and click in the name of Website Project currently opened. Click on Property pane
Step 2: Double click on Managed Pipeline Mode. This will toggle between Classic and Integrated Mode. You have to switch to Classic mode because the error was “An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode”
Now hit the F5 button, here goes output as usual.
You have solved the problem. If you find this post helpful, do not forget to share with friends or simply say thanks in comment below or you can share your feedback by leaving comment below.
+Prithvi Raj Bhatt
Xiaomi has released Software Update for POCO F1 as MIUI V12.0.3 Stable (V184.108.40.206.QEJMIXM). Read More
Nokia 6.1 (Nokia 6 2018) has received new update with Build 00WW_4_15C_SP03 with new features,… Read More
Microsoft owned LinkedIn has recently announced it is selling SlideShare to Scribd which is similar… Read More