locked
Can web form be hosted on Azure ? RRS feed

  • Question

  • User-775831949 posted

    Can web form be hosted on Azure ?
    If it is a very light weight one is there a free version on Azure ?

    I went to that site it is just 30 days free trial ...

    Thanks

    Friday, May 19, 2017 8:07 AM

Answers

All replies

  • User-1509636757 posted

    Can web form be hosted on Azure ?

    Same as MVC app, Here is a tutorial on Azure App Services : Quick start: Hosting your ASP.NET Website in Microsoft Azure - YouTube

    Also if you check here, they say "Host 10 ASP.NET websites for free with Azure": https://azure.microsoft.com/en-in/develop/net/aspnet/

    They actually were giving certain amount of website hosting for free if you rum them on a small machine with shared access.

    Friday, May 19, 2017 11:15 AM
  • User-271186128 posted

    Hi hkbeer,

    Can web form be hosted on Azure ?

    Yes, there are many methods to deploy web application to Azure, such as: using FTP or FTPS, local Git or Visual Studio.

    You could refer to the following articles:

    https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/deploying-to-production

    https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-deploy 

    If it is a very light weight one is there a free version on Azure ?

    I went to that site it is just 30 days free trial ...

    You get a free Azure account, plus a $200 credit to spend on Azure services for 30 days. You can use this $200 credit to try out any combination of Azure services, exploring our cloud for free.

    The $200 credit expires after 30 days, and you can either let any services you’ve deployed be decommissioned (and you won’t have access to them anymore) or transition to a Pay-As-You-Go Azure subscription, paying only for what you use moving forward.

    Best regards,
    Dillion

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 22, 2017 8:43 AM
  • User-775831949 posted

    Thanks all.

    I just registered.

    But I read it there is no way for me to put MsAccess mdb and connect to my sqldatasource control on the aspx ?

    Is it Azure only support SQL server ? Or I can actually upload mdb and connect as like I am using my own IIS web server ?

    Appreciate the help and advice in advance.

    Monday, May 22, 2017 11:27 PM
  • User-1509636757 posted

    But I read it there is no way for me to put MsAccess mdb and connect to my sqldatasource control on the aspx ?

    I do not have practical experience over this scenario, but I guess if you keep access mdb in App_Data folder and then try to connect to database with somewhat below like connection string, and see if that works?:

    String connection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\Tables.accdb;Persist Security Info=True";
    string sql  = "SELECT * FROM Tables";
    using(OleDbConnection conn = new OleDbConnection(connection))
    {
         conn.Open();
         DataSet ds = new DataSet();
         using(OleDbDataAdapter adapter = new OleDbDataAdapter(sql,conn))
         {
             adapter.Fill(ds);
         }
         conn.Close();
    }

    Tuesday, May 23, 2017 6:13 AM
  • User-271186128 posted

    Hi hkbeer,

    But I read it there is no way for me to put MsAccess mdb and connect to my sqldatasource control on the aspx ?

    If you want to use MS Access database, I suppose you need to install the Access database in the Azure Virtual Machines. You could choose the Azure Virtual Machines or Cloud Services computer.

    Also, you could directly use Azure SQL Server database, you could refer to the following articles to migrate Access Databases to SQL Server.

    https://docs.microsoft.com/en-us/sql/ssma/access/migrating-access-databases-to-sql-server-azure-sql-db-accesstosql

    https://docs.microsoft.com/en-us/azure/app-service-web/app-service-web-tutorial-dotnet-sqldatabase

    Is it Azure only support SQL server ? Or I can actually upload mdb and connect as like I am using my own IIS web server ?

    No. Azure also support SQL server, MySQL, DocumentDB and so on. More details, you could refer to the following article:

    https://docs.microsoft.com/en-us/azure/#pivot=services&panel=databases

    Best regards,
    Dillion

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 23, 2017 9:11 AM
  • User-775831949 posted

    Thanks.

    "If you want to use MS Access database, I suppose you need to install the Access database in the Azure Virtual Machines. You could choose the Azure Virtual Machines or Cloud Services computer."

    Which one is more suitable for my simple case ?

    Appreciate it

    Tuesday, May 23, 2017 12:32 PM
  • User-271186128 posted

    Hi hkbeer,

    Which one is more suitable for my simple case ?

    As for this issue, first, I suggest you could check this article to learn more about Azure Virtual Machine and Cloud Service.

    https://docs.microsoft.com/en-us/azure/app-service-web/choose-web-site-cloud-service-vm 

    http://www.c-sharpcorner.com/UploadFile/42ddd2/azure-websites-vs-cloud-service-vs-virtual-machines/

    If you are using Azure VM, you will need to make more effort on frequent maintenance and update patches to manage the VM environment.

    If you are using Azure Cloud service, there is no need to care about the VM maintenance and patches, and you can install your own software on Cloud Service VMs.

    Besides, you could also refer to the following articles to check the price details,

    https://azure.microsoft.com/en-us/pricing/

    Then, choose the suitable service.

    Best regards,
    Dillion

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 25, 2017 8:08 AM