Asp.net on linux VPS hosting - asp.net

I Have a VPS hosting on which I've installed Ubuntu 13.04.
I'm willing to host an ASP.NET app on it.
Is it possible to install a virual machine and set up a Windows envirement for hosting C# app ?
I'm trying to avoid mono plateform.

Better go for VPS with Windows platform. If you want to host asp.net application then opting for VPS with Windows platform is the ideal choice.

Almost all VPS providers won't let you add another level of visualization, I ended by picking up a VPS that runs on Windows platform.

Related

asp.net MVC 5 hosting setup

Note: because there is no windows hosting that satisfies me at the moment, I'm developing my application in PHP and host them on a linux VPS.
Since Windows Server 2016 supports Docker and you are able to create .net 4.5 images, I thought why not review my applications and hosting plans.
Because I'm not a fan of hosting websites directly on a VPS with IIS (setup and configuration seems clumsy), I thought this "infrastructure" seems ideal for me.
A Windows 2016 VPS
A Linux based VPS
For each asp.net application, create a docker image based on microsoft/iis. This means that for the application, there is nothing left to be configured, right? This application will run on the Windows 2016 server.
On the Linux VPS, I will have nginx configured to have all the configuration for SSL certificates and optimizations. Nginx will have proxies that point to the Windows 2016 VPS on specific ports for the different applications.
I think this architecture has scaling possibilities, less configuration on the Windows VPS, more room for improvement? It should even be possible to do this with Ansible if I'm not wrong.
I only need hosting, nothing related to email, ftp, ... That's why I'm not using shared and/or cloud hosting.
Does this architecture seem fine?
Am I missing something?
Would you still just use a Windows VPS for hosting asp.net applications, even if this architecture is possible?
Does this all seem possible with Ansible? I only have basic experience with it.
I don't see anything wrong in your proposal. Remember you can use ansible inside the Linux image's Dockerfile. Maybe you can find that it is an overkill but it should work.
Probably you will find some problems linking your Linux / Windows containers. But I don't see anything short stopping.
Go ahead and post your results. Also if you encounter some walls just ask here and we will try to help.
Regards
because there is no windows hosting that satisfies me at the moment, I'm developing my application in PHP and host them on a linux VPS.
Would you mind telling us a bit about your requirement of Windows Hosting?
For each asp.net http://asp.net/ application, create a docker image based on microsoft/iis. This means that for the application, there is nothing left to be configured, right?
Once fully functional pre-configured image is prepared, you don't have to perform any other changes to your main image. The main image is only modified when you want to update any application in the image or looking to make any changes or update Windows OS.
Does this architecture seem fine?
NGINX reverse proxy works with IIS backend, so, this proposed architecture is achievable. Initial setup of connecting Linux VPS NGINX web server to individual Windows docker image is slightly complex. If you are successful doing that, the next challenge will be adding subsequent dockers to Windows Hyper-V. Here, I don't see actual purpose of using Docker images to host ASP.Net http://asp.net/ applications, when you can easily deploy pre-installed VMs through Windows HyperVisor.
As far as Ansible is concerned, I don't have much idea about this product, but as seen on their website Ansible can automate the dockers.

How to deploy asp.net webapp in azure virtual machine

I am quite new to azure and need a quick pointer to how to host an asp.net website in Azure VM. Thanks for your help in advance.
A little background...
We were using a windows server 2012 R2 and were hosting the site in IIS 6. This was an intranet site. Now we are migrating to public cloud so that it is accessible over internet. For this we have acquired an Azure VM (Windows OS). We have installed Visual studio 2013 and SQL server 2012 here. I have installed azure core SDK too.
Here are my questions:
What do I use instead of IIS to host? (Because I am not able to find any related app in azure VM)
Do I need to buy any more licenses for the same?
Should I host it in IIS only and because it is in public cloud, will it be accessible over internet?
Appreciate your help!
Since you have chosen the Infrastructure as a service ( IaaS) route you have to simply replicate the setup that you have on premises.
if IIS component is not there you just have to enable it in windows features.
If you do not want to use IIS you can explore self hosted asp.net applications.
Since you have chosen the Windows server VM image and created the VM you do not need to pay for anything additional for windows license.
By default only 2 endpoints( ports) will be open in a Windows VM. 1 for remote desktop and other for powershell remoting.
refer this post for enabling endpoints for you hosted applications.
https://learn.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-classic-setup-endpoints
You have two options basically
Use Azure Paas - Here you would host your existing application as a Cloud service using a web role and a Azure SQL Database. This might mean some changes to the existing application but would need less management from you. You can find the migration steps here
Use Azure Iaas - This is pretty much what you are trying to do. Host your application to a VM and manage all the required software (IIS,Sql server etc) on your own. Although this option might be easier in terms of migrating your application it involves managing the infrastructure on your own. Here is a link on how to install IIS on a Azure VM.
You don't need any additional licenses since you are paying for the VM which includes all required licenses. In case you decide to use SQL Server as Iaas you can also use your existing SQL Server license when running SQL Server on an Azure VM.

Is it possible to ask for a Linux server when creating a Web App on Azure?

I've created an ASP.NET Core application on my Ubuntu machine. When I host it on an Azure Web App I noticed it was running on a Windows Server. Is it possible to host it on a Linux server instead?
You now can, without the need of a virtual machine or Docker image.
Create a web app with App Service on Linux.
See: https://azure.microsoft.com/en-us/documentation/articles/app-service-linux-how-to-create-a-web-app/
That is not possible at the moment, ran at the same problem last week while migrating some stuff from AWS. In order to keep running my apps in a Unix environment, I had to resort to Azure Container Service, but it in turn forced me to (learn and) run DC/OS.
Azure Web App is using Windows Server as operating system. You can always get our own computing machine, with Linux (Ubuntu or something else) and deploy whatever you need on it.
See here for details: https://azure.microsoft.com/en-us/services/virtual-machines/

Need help Porting windows service (asmx) from windows server to Linux (mono)

I am trying to port small part of my application ( activation server) a windows service (asmx) from Windows VPS to Linux platform
After searching on internet and reading in many post, i have decided to hack my way using Mono-Project
I was able to find the tutorial on how to run aspx files and other things on different posts..but i am not able to find any documentation on how to run or Port my already developed and running service from Windows server (ISS+ASMX+MSSQL) to Linux ( Ubuntu 14.04 + mono + Apache + MySQL)
can some one share their view on best-way-to-acheive the task or some documentation links somewhere
Also , i would like your opinion on whether i should stick with my decision to go on with Mono or i should consider other framework
Thanks,

deploying VB.net website with MySQL server database into portable device (pendrive)

I have developed a web application using VB.net with MySQL database,
now I need to deploy this application to a portable device such as pendrive/harddisk so user can use this application through the portable device in different computers.
Is there any possible way to do this?
I found this asp.net on apache but I am not sure will this work for me or not.
EDIT
Is Mod_MONO able to do what I wanted?
websites /web application can be deployed on web server only.
for asp.net it is IIS .
to make it portable you need Microsoft Virtual PC. create a virtual machine and install your app on that , then keep that in Portable Device

Resources