Need help to deploy the dotnet 4.5 version application in amazon Linux


Our website is developed in dotnet 4.5 version. I am not able to launch this website on amazon Linux2. I am trying to launch it via nginx server.

asked a year ago561 views
2 Answers

The .NET Framework version 4.5 was designed to run on Windows environments only. It cannot run on Linux, including Amazon Linux 2.

You can launch Windows-based EC2 instances to host your .NET Framework 4.5 application. Alternatively, you can consider migrating your .NET Framework 4.5 application to the modern .NET platform like .NET 6 which supports Linux environments. Take a look at the Porting Assistant for .NET - an analysis tool that scans .NET Framework applications and generates a .NET Core compatibility assessment, helping you port your applications to Linux faster.

profile pictureAWS
answered a year ago
profile picture
reviewed a year ago
  • Additionally, if your website is built on ASP.NET, you can deploy it with Elastic Beanstalk, which will manage the deployment, scaling, load-balancing, and maintenance for you. See the docs for more information and guidance:

  • thank you! Followed the same steps to run it on Ubuntu it was helpful. Installed the same requirements and configured apache2. Now getting the error "HTTP: failed to make connection to backend:, referer:"

    and when we try to access it on the internet it is giving error: "Service Unavailable, The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later." Help me to solve this issue.

  • Vinay - in your original post, you said the application was "developed in dotnet 4.5 version". Are you referring to .NET Framework 4.5? If so, it won't run on Ubuntu or any other version of Linux. Microsoft's .NET Framework (including version 4.5) will only run on Microsoft Windows. Newer versions of .NET, often called ".NET Core", such as .NET 6 or .NET 7 can run on Linux, but you would need to port the application to the new version.


yes, I have developed the code in .net version 06.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions