FTP Publishing with the new Windows Azure Release

There is a good chance you might have stumbled upon the new Windows Azure Release that we made on June 6th.  Scott Guthrie’s Post quite summarizes the overall new features.

One of my favorite features is the Windows Azure Websites and the ability to do publish files to Azure using your FTP Client.

Windows Azure Websites offers low cost (free upto 10 websites) web hosting where you can deploy any website that can run on IIS 7.0, quickly.

The earlier releases of Azure SDKs and the Azure platform support .NET 3.5 & above for running your applications.  This was a constraint for many since there are/were a lot of ASP.NET 2.0 applications built over time and simply to put it on Azure, many of you were skeptical to migrate it to .NET 4.

Windows Azure Websites offer the flexibility of running IIS 7.0 supported .NET Versions which means you can run .NET 1.1, 2.0, 3.5 and .NET 4.  Not just that! You can also run classic ASP Applications.

Windows Azure Websites don’t need you to go through the complexity of adding the Cloud Project Template and then publishing the Configuration Files.  Lets take a step by step understanding of Websites and publishing using FTP.

I downloaded the Club Website Starter Kit from http://www.asp.net/downloads/starter-kits/club

It also requires a database and I downloaded the SQL Scripts and created a SQL Server Database called Club.

This installs a Web Site Project Template.  Note that I am running Windows 8 Release Preview and Visual Studio 2012 RC.  After installing the template, select File – New – Website and don’t forget to choose the Framework version as .NET 2.0

image

You can see the “Club Website Starter Kit” .  Once you select the Website gets created.  You would encounter a warning indicating that the Club Website Starter Kit uses SQL Express and the recommended database is LocalDB Express.  Click ok to continue.  Once the Website is created open up the Web.config and locate the “ClubSiteDB” connection string.  By default, it points to a SQL Express Database.  Instead configure it to use your local SQL Server.

Also, open up Global.asax and comment out the following line

if (!Roles.RoleExists("Administrators")) Roles.CreateRole("Administrators");

There seems to be an issue in the code that doesn’t create the role. 

Post that, hit CTRL+F5 and you should be able to see the Website Running, as below

image

So, now we have the Club Starter Kit site up running locally. 

Moving to Azure

Visit http://manage.windowsazure.com/ and sign up for a trial account.  This allows you to host up to 10 websites for free and a host of other benefits.  The free Websites can be extended to an year without any charge.  Once you have signed up, sign in to the portal using the Live ID used for sign up.

After signing in, you would be presented with the “All Items” listing page which lists, Websites, Cloud Services, Databases etc.,  If this is the first time, you wouldn’t find anything.

Click on the “Websites” link from the left menu.  Click on “New” in the bottom and it should show up a dialog.  In the same, select Website and click on “Quick Create” and in the URL Textbox, specify “MyFirstDemo” and click the “Create Web Site” link below.

image

It should take a few seconds to create the Website.  Once the Website is created, click on the listing and it should open up the Dashboard.  Since we haven’t done anything yet, there shouldn’t be any statistics

image

Click on the “Download publish profile” link in the right bottom.  This file has the FTP publishing settings.

Also, if you scroll down you can see the FTP URL for this site.  It should typically start ftp://waws-xxxx-xxx-xxxx

In the downloaded publish profile file, you can also find the ftp URL.  Pick the following from this file

publishUrl (the 2nd one, the one that features after publishMethod =”FTP”) and the userName and userPWD that follows.

Note that we have everything required to publish the files.  But since the Club Starter Kit uses Databases, we need to have the Database running on SQL Azure. 

Go back to the Main Menu and click on “New” in the bottom but this time select “SQL Database” and provide “Club” as Database name for “Quick Create”

image

If this is the first time a Server would be created.  Otherwise, it would pickup the existing server name.

Once the database is created, you can use the SQL Azure Migration Wizard http://sqlazuremw.codeplex.com/ and provide the credentials to connect to local database and then the SQL Azure database for migrating the “Club” database.  The migration wizard UI hasn’t changed much and is the same as explained by me in one my posts earlier http://geekswithblogs.net/ranganh/archive/2009/09/29/taking-your-northwind-database-to-sql-azure-and-binding-it.aspx

Once the database is migrated, come back to the main screen and click on the Database base in the Azure Management Portal.  It opens up the dashboard of the database.  Click on “Show connection Strings” and it would popup a list of connection string formats.  Choose the ADO.NET connection string and after editing the password with the password that you provided when creating the database server in the Azure Portal, paste it into the config file of the Club Starter Kit Website.  Just to reiterate, the connection string key is ClubSiteDB.

Try running the Website once to ensure that the application though running locally could connect to the SQL Database running on Azure.

Once you are able to run the website successfully, we are all set to do the FTP Publishing.

Download your favorite FTP tool.  I use http://filezilla-project.org/

In the Host Textbox, paste the FTP URL that you picked up from the publish profile file and also paste the username and password.  Click on “QuickConnect”.  If everything is fine, you should be able to connect to the remote server.  If it is successfully connected, you can see the wwwroot folder of the Website, running in Azure

image

Make sure on the “Local Site” in the left, you choose the path to the folder of your Website.  Open up the Website folder on the left such that it lists all the files and folders inside.  Select all of them and click select “Upload” or simply drag and drop all the files to the root folder that is listed above. 

Once the publishing is done, you should be able to hit the SiteURL that you can find the dashboard page of the website.  In our case, it would be http://MyFirstDemo.azurewebsites.net

That’s it, we have now done FTP publishing in Azure and that too we are running a .NET 2.0 Website on Azure.

Cheers !!!

Print | posted on Monday, June 25, 2012 10:09 PM

Comments on this post

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I've read your post from top to bottom. This article is very informative. Good job!
Left by write my essay Essay 24/7 on Sep 26, 2012 1:12 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I wanted to thank you for this special read.I have also bookmarked you for checking out new posts.
Left by thailand travel packages on Oct 16, 2012 9:18 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Thanks this worked well for my FTP
Left by Maria on Nov 07, 2012 9:05 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Once the publishing is done, you should be able to hit the SiteURL that you can find the dashboard page of the website. In our case, it would be
Left by agregador de links on Nov 30, 2012 9:27 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I agree with you. This post is truly inspiring. I like your post and everything you share with us is current and very informative,
Left by novo spiele kostenlos on Dec 01, 2012 2:55 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Oh, now I understand everything and it's not so difficult as it seemed to be from the first sight.
Left by Debussy on Dec 02, 2012 9:54 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Then more testing was performed to search out what the boots ended up truly designed of ?a with shocking effects.
Left by novoline online spielen kostenlo on Dec 03, 2012 10:45 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
you are one of the coolest blogger I ever saw. Thanks for posting this useful information. This was just what I was on looking for. I'll come back to this blog for sure!
Left by online sizzling hot spielen on Dec 03, 2012 10:48 AM

# Really nice

Requesting Gravatar...
Really impressed! Everything is very open and very clear clarification of issues. It contains truly facts. Your website is very valuable. Thanks for sharing.
Left by american airlines on Dec 03, 2012 11:32 AM

# Really nice

Requesting Gravatar...
I am a new user of this site so here i saw multiple articles and posts posted by this site,I curious more interest in some of them hope you will give more information on this topics in your next articles.
Left by Merkur Automaten kaufen on Dec 07, 2012 5:38 PM

# Really nice

Requesting Gravatar...
am a new user of this site so here i saw multiple articles and posts posted by this site,I curious more interest in some of them hope you will give more information on this topics in your next articles.
Left by Magic Mirror online on Dec 07, 2012 5:41 PM

# Scottsdale House Cleaning

Requesting Gravatar...
am a new user of this site so here i saw multiple articles and posts posted by this site,I curious more interest in some of them hope you will give more information on this topics in your next articles.
Left by william on Dec 07, 2012 6:00 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
A perfect info source. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic.
Left by Double Triple Chance kostenlos s on Dec 11, 2012 11:56 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I like all the reviews have been posted by the visitors ofthis site ,some of them are very good suggested regard the article.
Left by Tripple Chance online on Dec 11, 2012 11:58 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
There are much of blogs and articles out there on this topic, but you have acquired another side of the subject. This is reliable content thank you for sharing it.
Left by knights life on Dec 11, 2012 12:03 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Please add good good information that would help others in such good way. This post is exactly what I am concerned. we need some more reliable information.
Left by jokers cap online spielen on Dec 11, 2012 12:05 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
The vast majority of the now you don't get what you essential on the web. Kostenlose automatenspiele are diacritical to wrongdoing, Blink or java-based connected interim conglomeration recreations that could be played now by clicking the proportionate someone. You can conformity all the proposed diversions for disembarrass or attempt your product for concordant cash at sponsored connected money joints. We cook connected spaces from inverse programming suppliers, so you can risk these kostenlos automatenspiele at the majority of the rivalry Net club today.
Left by Fruitinator Download on Dec 19, 2012 5:16 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Players there are a large selection of casinos available and they can freely wählen.Wer wants to play casino games for free without registration, the need to be aware that he must then choose between real money and play money! Who wants to play with real money, which can not avoid a booking. When registering a player account is created, which can then in the desired amounts are paid. For this purpose, many casinos now offer already a decent welcome bonus. Not infrequently, the casinos doubled while the player's first deposit. However, if you wish casino spiele kostenlos ohne anmeldung, which will have to be content with play money.
Left by Jokers Cap kostenlos spielen on Dec 19, 2012 5:17 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Great to have these kind of useful posts. It is helpful me to develop mumbai properties sites. I have developed many real estate sites in Mumbai.
Left by mumbai properties on Dec 21, 2012 12:16 PM

# Really nice

Requesting Gravatar...
You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it!I agree with your Blog and I will be back to inspect it more in the future so please keep up your act. A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts.
Left by Sunmaker on Dec 22, 2012 11:40 AM

# Really nice

Requesting Gravatar...
Your article absolutely worth looking through. I recently found the application well penned and then quickly logical. I must personally we appreciate the time you devote to create the application. I’m sure very satisfied in addition to lose time waiting for your blog post.
Left by Joker Cap on Dec 22, 2012 11:41 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I love this film. It's a modern 'B-Film'. if films were still presented in double features this would be lower film but I have a strong belief that most B-Mos are way better than their feature. This ficame in at the right time, it helped to bring Samuel L. Jackson back into the fame he diserved by giving an amazing Planer reviews
Left by Planer reviews on Dec 22, 2012 6:09 PM

# message

Requesting Gravatar...
I will actually appreciate the writer's selection for choosing this excellent article related to my issue.Here is deep description about the article issue which supported me more.
Left by sell my watch for cash los angel on Dec 24, 2012 12:40 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I Will Be Coming Back Soon, Thanks for posting Some Great ideas and I'll try to return back With A Completely different browser to check out Things.
Left by Gartenmoebel on Dec 25, 2012 11:45 AM

# message

Requesting Gravatar...
This is best site to spent time on .I just stumbled upon your chatty blog and wanted to say that I have really enjoyed reading your very well written blog posts. I will be your frequent visitor, that's for sure.
Left by american poker online on Dec 25, 2012 3:35 PM

# well

Requesting Gravatar...
Book of ra free online play without registration: The Book of Ra free game is not the time but today an important element
book of ra kostenlos online spielen ohne anmeldung The casinos have almost every day to stay up to date to achieve the eventuality much customers and to lure them into their casinos not to miss. And since the choice of gamers playing games as well as the bonus adding an important role. The Book of Ra free game is not the time but today is an important element.
Left by american poker 2 online spielen on Dec 25, 2012 6:15 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
your conclusions and will thirstily look forward to your forthcoming updates.Saying thanks will not just be sufficient, for the tremendous lucidity in your writing.
Left by chip runner on Dec 26, 2012 11:16 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Nice blog having nice information. some times we ignore this sort of things & also suffer a lot as well. However we can save a lot with the assistance of these tips for example time etc.
Left by chip runner on Dec 26, 2012 11:25 AM

# well and great post

Requesting Gravatar...
A lot of businesses are into press release writing and it's because of several valid reasons. Mainly though, it's due to its effectiveness in ...After examine a few of the blog posts on your web site now, and I really like your manner of blogging. I bookmarked it to my bookmark web site record and can be checking again soon. Pls check out my website as well and let me know what you think.
Left by novoline spielen on Dec 31, 2012 10:40 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Things & also suffer a lot as well. However we can save a lot with the assistance of these tips for example time etc.
Left by sizzling hot online spielen on Dec 31, 2012 10:49 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Having useful information from your site for quite a few months now. Thank you. These pots are suitable for solid plate, glass/ceramic, radiant ring, halogen and gas stoves.
Left by Triple Chance Download on Dec 31, 2012 10:51 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
lot of knowledge about many current technologies that can be used for many cultures that can facilitate They were made.
Left by cheap backlink on Jan 02, 2013 12:33 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well.
Left by kostenlos poker spielen on Jan 03, 2013 11:49 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
The Post Is Written in a very good manner "and it" entail Many Useful information for me. I Appreciated What You Have Done here. I am Always searching for informative information like this.
Left by university apparel on Jan 09, 2013 3:20 PM

# message

Requesting Gravatar...
I just stumbled upon your chatty blog and wanted to say that I have really enjoyed reading your very well written blog posts. I will be your frequent visitor, that's for sure.
Left by kostenlos casino on Jan 10, 2013 1:18 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
It is the point of each geldspielautomaten player to win. Playing space machine is quite fun. It is the best type of amusement that an individual may have. To certain people, playing spaces is their direction of assuaging themselves from the anxieties that they are having in view of the occupied existence in this very complex social order.
Left by rock clothes on Jan 12, 2013 4:54 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I would like to thank you for the efforts you This is best site to spent time on .I just stumbled upon your chatty blog and wanted to say that I have really enjoyed reading your very well written blog posts. I will be your frequent visitor, that's for sure.
Left by portabel flödesmätare on Jan 29, 2013 6:08 PM

# good

Requesting Gravatar...
It's totally superb to see the best informative content displayed in a basic and comprehending way. Much obliged to you.
Novoline || Online Poker Web Directory
Left by Novoline on Feb 09, 2013 3:12 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
This is absolutely decent one and gives indepth informative data. A debt of gratitude is in order regarding this fantastic article.
Left by Online Poker Web Directory on Feb 09, 2013 3:12 PM

# great

Requesting Gravatar...
It's totally superb to see the best informative content displayed in a basic and comprehending way. Much obliged to you.
buycasinobacklinks buy gambling links
Left by Martin Cooper on Feb 11, 2013 12:47 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Players who play bingo through the joined bingo presents are pronounced on be more slanted to expansion weight and development a practically less anxious lifestyle owing to the hours utilized behind seating while playing bingo.Download Gave that this time may have been utilized within movements or doing something strenuous, they might have been provided to improve health instead of prevent it.
Left by watson on Feb 13, 2013 6:22 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
This allows you to host up to 10 websites for free and a host of other benefits. The free Websites can be extended to an year without any charge. Once you have signed up, sign in to the portal using the Live ID used for sign up.Economics
Left by Economics on Feb 22, 2013 12:37 PM

# Mr

Requesting Gravatar...

I have seen this post for this first time and i am really very astonished by this post. Here lies some special facts to make read it or observe this carefully. Thanks for sharing this.

uk bestessays
Left by Expart Linker on Mar 08, 2013 4:39 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
A criminal offense one that I could punish you very severely for. I could send you to the penitentiary for one year if I chose the law says I may one year at hard labor for stealing a piece of lead pipe.
Left by Celine Bag UK on Mar 28, 2013 1:26 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
This is absolutely decent one and gives indepth informative data. A debt of gratitude is in order regarding this fantastic article.
Left by jamesmichelson on Apr 02, 2013 1:07 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
This is absolutely decent one and gives indepth informative data. A debt of gratitude is in order regarding this fantastic article.

custom facebook applications
Left by jamesmichelson on Apr 02, 2013 1:08 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
The free Websites can be extended to an year without any charge. Once you have signed up, sign in to the portal using the Live ID used for sign up http://www.seattlepi.com/business/press-releases/article/Top-7-Brands-of-Latex-Mattresses-Reviewed-by-4280144.php
Left by adf on Apr 02, 2013 1:28 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job! Yoga teacher training course in Thailand

Left by calvinbrock on Apr 02, 2013 10:06 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Compaq International is committed to provide the highest quality power cable accessories. The company with it's ShrinkFit trademark stands leader in India and overseas market.
EPDM cold shrink and Heat shrinkable end caps cable
Left by shopia on Apr 06, 2013 1:16 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I agree with you. This post is truly inspiring. I like your post and everything you share with us is current and very informative,
Left by Lookboard on Apr 15, 2013 12:03 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
I look forward to seeing everyone. You will be receiving a paper copy invitation in the mail, and I've also attached the letter to this email. If there is a specific question or issue you would like me to address, please feel free to call me or email me anytime.mayorista de accesorios de telefonia movil
Left by rajeshkumar on Apr 23, 2013 8:28 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Useful to study this great brief article undeniably since i get established a lot exceptional and furthermore new stuff inside you. Mont Blanc Pens UK
Left by Mairead Navin on May 05, 2013 3:41 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Thanks for posting this useful information. This was just what I was on looking for. I'll come back to this blog for sure! blog
Left by Expart Commentar on Jul 14, 2013 2:26 AM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
Thanks Harish. This was a really well thought out article. Thanks so much for your wisdom. As you from an Indian background you probably will be interested in yoga. Check this out here: http://www.thailandyoga.net/yoga-retreats-thailand/thailand-yoga-retreat
Left by Lily on Jul 16, 2013 12:02 PM

# re: FTP Publishing with the new Windows Azure Release

Requesting Gravatar...
oops looks like the link I left above never went through...try this:

http://www.thailandyoga.net/yoga-retreats-thailand/thailand-yoga-retreat

Left by Lily on Jul 16, 2013 12:05 PM

Your comment:

 (will show your gravatar)