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

0

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.

已提问 1 年前524 查看次数
2 回答
1

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
已回答 1 年前
profile picture
专家
iwasa
已审核 1 年前
  • 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: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_NET.html

  • 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: 127.0.0.1, referer: http://www.vinaypal.com/"

    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.

0

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

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则