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.

demandé il y a un an524 vues
2 réponses
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
répondu il y a un an
profile picture
EXPERT
iwasa
vérifié il y a un an
  • 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.

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions