I tested the default MVC template that visual 2017 provides, and tested it on IIS 10,in my local machine, and works great.
When I test it on Windows server 2012 R2 (IIS 8.5) or in Windows server 2008 (IIS 7) I get a lot of errors and all I can do is see a list of the files in the root directory instead of the rendered website.
What I do to get the webste that IIS 10 is able to run is to Debug tth aplicationn in visual studio, then I find the path of that app, that IIS express is using, and then copy it to a folder that IIS has access to, in IIS 10 it works great, in IIS 7.0 and in IIS 8.5 and can't get it to work.
Pease help. What can I do?
Update:
I'm currently installing updates on the w2012r2 system, which includes updates in .net framework