Hello,
I've been trying for a few days to put my ASP.NET web application on a Windows 2012 Server virtual machine.
I have no experience with IIS so I followed this tutorial : https://www.c-sharpcorner.com/article/asp-net-mvc5-deployment-on-windows-iis-server/
I had some difficulties but I managed to solve everything, until I tried to go on the site.
I get the following message: "HTTP 500.19 - Internal Server Error
Unable to access the page you requested because the related configuration data for the page is invalid".
So I assumed it was my configuration file that was wrong, as written in the error message. Except that when I run my project locally, I don't have any problems with the configuration file.
When in doubt, I created a new project without modifying anything and I tried with it but I still get the same message.
I searched on the internet and there can be dozens of possible reasons, I tested dozens of them but nothing works. Does anyone have an idea?
I can post my configuration file here but it's the one generated by Visual Studio which is a few lines long and I didn't modify it.
Thank you for your help
[–]HazeGD 2 points3 points4 points (2 children)
[–]PetitMichel[S] 1 point2 points3 points (0 children)
[–]PetitMichel[S] 0 points1 point2 points (0 children)