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年前549ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ