Reputation: 2981
I have a running server (Windows Server 2008) with some ASP.NET services hosted on IIS. Now I have a new server (Windows Server 2019) with IIS 10. I try to move all services to the new server. All services written with .net core 3.x are running without problems. Some older services written in .NET 4.6 are not running correctly. When I try to access them I am always getting HTTP-Error 500, but without details. I have already changed the web.config files, but I still get no more details.
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
The event viewer in Windows is also empty. In the Server Manager .NET is correctly installed. Firewall ports are open.
Has someone some hints what I maybe have missed to configure? And is there another place where I can find more detailed errors?
best regards
Upvotes: 0
Views: 1344
Reputation: 12749
Try to install the asp.net 4.6 feature from the add role and feature wizard as shown below:
Upvotes: 2