[Solved] HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid

The issue “HTTP Error 500.19 – Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid” is the most common error, but there is a simple way to fix this issue in most cases.

In this article, I am going to give the simplest way to solve this error. But this solution may work in some cases and may not work in some cases. As its a most common issue in .Net and especially when running a project in Visual Studio.

Problem

When we try to run the ASP.NET web application project in Visual Studio, after building the application successfully, the application will open in the web browser with the error “HTTP Error 500.19 – Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid” as shown in below screenshot:



Solution

The solution for the above issue is very simple in my case, I had to close the visual studio once and re-open it. Then the error HTTP Error 500.19 was solved automatically. We don’t need to analyze more here as this issue is mostly related to visual studio and hopefully Microsoft will resolve this issue with the latest visual studio.

The above solution is like a first and easy way to fix the issue if nothing wrong in the application config file (web.config). If the above solution did not work for you, please try to resolve if there are any issues in web.config file.

There is one more solution for this kind of issue: https://techstrology.com/http-error-500-19-internal-server-error-in-asp-net-core-application/

Conclusion

The issue HTTP Error 500.19 looks so confusing and most common, but if there are no real problems with the application configuration file (web.config), then restarting visual studio should solve the issue. Otherwise, it must be configuration issue.

Sreenivasa Rangan

Software professional with 9+ years of experience in all phases of software development with robust problem-solving skills and proven experience in creating and designing software in a test-driven environment.

Post a Comment

Previous Post Next Post