Host Traditional ASP.NET Website to Azure - asp.net

I have a ASP.NET Web Application, based on layering architecture (DAL, Model & View), .NET Framework 4.0, C# as Server Side language, SQL Server 2008, SAP Crystal Reports. Currently it is hosted on a local server. Now client want to host it at some online server. I was thinking to host it on Azure, as it is getting very hot these days.
Is it possible that I can host my web application at Azure, without making any change in it? As It is very matured and bug free. I don't want to make any change in it and don't want to test everything again.

You can start by taking the entire website and hosting it on Azure Websites.
You can play around with Azure Websites here : https://trywebsites.azurewebsites.net
Try creating an Azure Website by login in through the Azure Management Portal

Related

Migrating ASp.net webform based websites to Microsoft Azure

I have to migrate asp.net webform & asp.net MVC websites to Microsoft Azure and most of the webform based website have been created as "website project" in visual studio. and all website use MS SQL Server 2008 R2 as database plus all website use either .net Framework 4.0/4.5.
I confused by reading article regarding migrating webform based website to Azure not working and need code changes and if we use Azure database then we cant use stored procedures etc... this has confused me alot.
So i have few question regarding this.
Can i move asp.net webform 4.0 based website directly to Azure without making any code changes assuming we are connecting to external SQL SERVER 2008.
For first step can which MS SQL Server database i need to choose on Azure so that i can easily restore database in Azure and connect to this database from my local machine using MS Management Studio..
I have heard lot about Azure store files as blob and we need to make change to code to point to new path. What is this Azure blob and why do we need to change code for pointing them blob.
What i have to do keep allowing users from uploading images & document without making any changes in the code..
Does Azure website have always 1 instance running or multiple instance running, i am asking this as our website use InProc session state will i lose session if it is ruuning on multiple instance. or should we prefer SQL Session state in Azure enviroment.
What i should take into consideration for migration current website to Azure.
Will copy pasting all the files in Azure work. Please advise
Depending on how old the ASP.NET webforms projects are, you are going to need to bring them up to date with current security, and anti forgery tokens, etc.
Also if the project was previously a "Website" and not a "Web Application", this is also something that you will need to take into consideration!
I am currently working on upgrading a website to a web application.
This might be a useful website to look through
http://www.gregthatcher.com/Azure/Ch7_ConvertWebsiteToWebApplication.aspx
Migrating to Azure is easy ,
create a Azure account and create the web app which you want to host or create.
you can deploy using FTP or use the build and deploy feature in TFS account.
Steps
You need to create web app in your account.
create a DB in azure manually or export your DB to azure from Management studio if you have an existing DB
get the Connection string from the Publish profile from Azure.
Setup the storage account if you want to store files ,images etc.

ASP.Net Free WebHosting to My Microsoft SQL Server

I have developed ASP.NET webpage using (C) and I have a domain too but now I don't know where I can find ASP.NET free (or 3 months free) webHosting provider for pushing my ASP.NET files and connect it with my domain.
I have tried a lot in google but all of them are providing free ASP.NET along with their own SQL Server. But I don't want my data to be stored in someones server because all my ASP.NET forms are created by targeting my MS-SQL Server (which is available to connect via internet).
Is there anyone provides webhosting alone and let my webpages to store data in our MS-SQL server rather than saving it in service provider servers.
I have to show it with my organisation that the developed pages are working fine in web so based on that they will arrange local ASP.NET webhosting service for hosting our developed webpages.
Hope I made it clear.
Your suggestion/solutions will be highly helpful to me.
All ASP.Net (Windows) web hosting providers offer ASP.Net with MS SQL Server databases, it does not mean that you have to host your MS SQL databases in their Shared SQL Server mandatorily. If your own MS SQL Server is configured for Remote Connections, you can host MS SQL database in your own Server and connect it to ASP.Net application hosted at some hosting provider. You just have to specify an IP address of SQL Server in connection string of your website.
Are you a student?
You can get Microsoft Azure access for free through their Dreamspark program.
https://www.dreamspark.com/Product/Product.aspx?productid=99

How to create and deploy a Web Application

I have two working servers (at different locations) with IIS hosting WCF. On each server, WCF (by way of an entity framework) connects to a PostgreSQL database on the same server. My development machine is my laptop.
I have added new stored procedures to the PostgreSQL databases and added these to the WCF implementation on my laptop.
Currently, the Server only has the production site set to use ASP.Net v4.0 application pool.
In Visual Studio 2010 (.Net 4.0), can someone please tell me how to:
Create a Web Deployment Application that will use the existing PostgreSQL database already on the Server (I do not want to export any database from my laptop).
Create a Web Deployment Application that will use the existing PostgreSQL database already on the Server, but target a non-production site like "TestingSite".
Is there anyway of creating a Web Deployment Application that will CREATE the new site, "TestingSite" on the Server with the correct settings.
Ultimately I'm hoping for something really simple that I can develop the WCF code I need on my laptop, then deploy it to the server for testing.

Difference Between Azure Web Site and Azure Cloud Service

I'm about to migrate several separate ASP.NET 4.0 Web Forms applications to Azure. Several are apps using SQL Server 2008. I'm seeing "conflicting" tutorials for this:
Deploying an ASP.NET Web Application to a Windows Azure Web Site and SQL Database
vs
Deploying an ASP.NET Web Application to a Windows Azure Cloud Service and SQL Database
This StackOverflow question goes some way towards explaining this. However, there have been several changes to Azure in recent months and I'm not sure how up to date the information is.
I want as simple a migration process as possible because of the number of sites I have to migrate. Is there a situation where I would have to use the Cloud Service route?
Aside from what the linked-to answer provides: You have to go the Cloud Service route if there are apps you need to install (e.g. an MSI, COM object, etc.). There's simply no facility to do this with Web Sites. In Web Sites, you cannot alter the VM instance at all. With Cloud Services, you have lots of flexibility to install software, alter IIS behavior, pretty much anything you need to do (as long as the installs can be automated).
One point which can be very valuable if you consider migration of ASP.NET 4.0 Web Forms applications - Microsoft Azure Websites do no support SSL for custom domains yet. That might be a blocker for your migration work to the Websites service.
Note that Windows Azure is very dynamic environment with great number of new features coming every new release. In order to be up-to-date I would suggest following ScottGu's Blog to find out about new features and their release dates.
EDIT
Windows Azure Website supports SSL for custom domains now. SSL Certificates and SSL bindings can be configured in Configure tab.
You can also read more about SSL configuration for Azure Website at Configuring an SSL certificate for a Windows Azure web site.

Deploying .NET application in azure

I have this .NET web forms application which uses SQl server database, It runs fine on local server but as soon as I add windows azure deployment project to it, it is not able to access the database. what should I do ?
To answer your broad question with a broad answer: have you tried to troubleshoot using the Guidelines for Connecting to SQL Azure Database (http://msdn.microsoft.com/en-us/library/windowsazure/ee336282.aspx)?

Resources