0

We have migrated an application from Net version 3.5 to 4.8. The truth is that we are encountering many problems. Everything seems right, but it doesn't seem to work returns a 500 error without any more information. My approach is that it is not running with the correct version of Net. Therefore, install version 4.8 of the following link: Net 4.8 Framework for Windows Server 2016. It still don´t working. I still have my doubts, how can I know which version of Net 4.8 is using my application, considering that I do not have access to Windows Features?

Could you check this information from here?

Configuration APP

Kenzo_Gilead
  • 105
  • 6

1 Answers1

1

No, you cannot verify it from there. That is the Common Language Runtime (CLR) version. All versions of .NET 4 have the same CLR version, 4.0.30319. Note that the CLR version is separate from the .NET release version. A system can have only one version of .NET 4.

To control if your application uses .NET 3 or .NET 4, you may use the supportedRuntime element of the startup element of the app.config file, AKA .config. Example:

<?xml version="1.0"?>
<configuration>
  <startup>
    <!--supportedRuntime version="v2.0.50727"/-->
    <supportedRuntime version="v4.0.30319"/>
  </startup>
</configuration>
Greg Askew
  • 35,880
  • 5
  • 54
  • 82
  • Thanks for your response. Where is allocated this file? I only can see a web.config in my application. Thanks again. – Kenzo_Gilead Apr 05 '23 at 10:41
  • @Kenzo_Gilead: web.config is another name for the file. – Greg Askew Apr 05 '23 at 10:45
  • My application has different web.config. I choose the first one, in parent folder. It doesnt have startup section so I added under configuration but the issue still happens... Any other idea to try? :) – Kenzo_Gilead Apr 05 '23 at 10:53
  • @Kenzo_Gilead: Idea for what? That is the one and only way to specify the runtime vesion. – Greg Askew Apr 05 '23 at 10:59
  • Ah, ok. I meant if you have any random idea to try to resolve the issue itlsef. Sorry again. I rate your answer. – Kenzo_Gilead Apr 05 '23 at 11:02