0

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

2
  • Have you checked under event viewer logs unders Application and System categories? Also, can you share you application pool settings? Ensure the user which is set as AppPool identity has minimum read permissions on your application folder Commented Aug 10, 2020 at 16:37
  • Modify the web apps to handle exceptions, learn.microsoft.com/en-us/aspnet/web-forms/overview/…. Commented Aug 10, 2020 at 21:34

1 Answer 1

2

Try to install the asp.net 4.6 feature from the add role and feature wizard as shown below:

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

The frameworks are correctly installed, this is not the problem.
@BHuelse you could check the iis log which sub status code it is showing. check the iis application pool which version it is using? if possible share the whole web.config file code. enable failed request tracing learn.microsoft.com/en-us/archive/blogs/benjaminperkins/…. try to browse any page in a browser
This suggestion definitely helped me. The only difference was that in my list of features it was ASP.NET 4.7.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.