How to Host a .net application in AWS S3 - asp.net

I need to host a .net application on AWS S3 using static website hosting, is there any possibility to do so? Please help, Thanks in advance.

You can front your UI artifacts in S3, but the .Net part will have to be executed server side by a Web Server like IIS. S3 just serves files: doesn't execute them, so you'll need more than S3 to pull this off.
There are various AWS services you can look at to help you get started on hosting .Net solutions including EC2, ECS (.Net core) and Lambda (.Net runtime).

Related

Can we have an ASP.NET Core application alongside a WordPress sites?

I'm working for company which we have their own Virtual server for WordPress sites and It is running.
I don't know much about servers and hosts but I know that we run apache on server for WordPress sites and use cPanel for server management.
I create an application with ASP.NET Core 3.1 and Core is a cross-platform.
My question is ...
Can I run my application on this server without conflicting with other WordPress sites?
Thanks For Your Help!!
As long as you run your ASP.NET Core server on a port which is not used by another server, you should be fine.
Mahdi, Since you are using .NET Core you can host ASP.NET Core on Linux machines with Apache. For more details take a look at this article. To see how exactly to configure Apache reverse proxy take a look here.
Also bear in mind that you can run an entire WordPress Application over an ASP.NET Core Host seamlessly using PeachPie which is an open-source PHP language compiler and runtime for .NET and .NET Core frameworks. If you are interested in this take a look here.

How to deploy Azure Fabric service on IIS?

I have developed a Azure Service Fabric service .Net core 2.2 which contains a controller and some API methods inside it. I deployed the service on local cluster and its working fine. I am able to access the api endpoints.
But now I need to deploy it on local IIS too. I published the service project that contains my controller, and when I try to deploy it on local IIS as we usually do while deployment of other apps, I get an error "HTTP Error 500.0 - ANCM In-Process Handler Load Failure". I am googling for this and trying to find solution but no success yet.
Is there any particular setting or process that needs to be followed to deploy Azure Service Fabric service on IIS ? I am unable to figure out what I am missing.
Any suggestions or ideas?
When you create a Service Fabric service, the runtime need to talk to the Service Fabric System Services at startup. If you deploy it to IIS, it does not have a cluster to talk to.
If you want to make an API flexible to be hosted either on Service Fabric or IIS, you need to decouple the hosting logic from the API.
In this case, you can either create two different hosts, or:
in the host entry point, check if you are running inside SF, if yes you start the Service Fabric Service otherwise you start a self-hosted or IIS version.
There are quite a few questions in SO with examples like this, worth a search to check which one fits your needs.

Change Elastic Beanstalk application IIS bindings

I have a web application deployed under an Elastic Beanstalk environment. The EB environment platform is .NET/IIS.
I am looking for a way to change IIS web site bindings without using a remote desktop connection.
I think this should be possible through configuration files (ebextensions) or through the AWS CLI. However, I'm not able to find any documentation on this.
Is this possible at all and could somebody give the way to do it?
Thank you!

Can ASP.NET CORE app be deployed on windows shared hosting

I want to host a ASP.NET Core application on shared windows host. I read the documentation and as far as I understood it can depend directly on the .NET framework, but other tutorials says that it cannot be done without the .NET Core (also my windows hosting provider said that it cannot be done).
Does the ASP.NET Core application can be host on windows shared hosting machine or additional configurations need to be done ?
Thanks.
Yes, you can. But your host needs the .NET Core Windows Server Hosting. Once your host has this installed, you can run your .net core app (full .net or .net core).
You can find more info here.
Yes, I have deployed ASP.NET core web apps to two different Windows shared hosting services successfully. I've had success with both framework-dependent and self-contained deployments. You can my instructions for doing a self-contained deployment here: https://birdsbits.blog/2019/02/18/publishing-an-asp-net-core-web-app-to-a-cheap-windows-hosting-service/

Deploying ASP.net "website" (not application) to AWS beanstalk

I have a ASP.net 4.0 Web Site (not a Web Application). All the tutorials I have read discuss web applications. I was able to get it uploaded to Beanstalk through the VS 2013 AWS addin but it doesn't work (Elastic Load Balancer xxxx has zero healthy instances.). Is this because it's not a web application or is there something else I need to be looking in to?
Thanks!
Did you by chance forget to setup a healthcheck for ELB to use?
This blog post walks you thru it: http://blog.willbeattie.net/2010/09/load-balancing-with-amazon-ec2-and.html

Resources