Prerequisites
- Microsoft Azure Subscription (MSDN subscribers or sign up for one month free trial)
- Visual Studio 2013 or Visual Studio 2015 with Microsoft Azure SDK 2.2 or later.
- Remote Debugging of Azure Web App.
Step 2: If empty project is selected please add one WebForm page in project.
Step 3: Add below code in WebForm1.aspx,
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Button ID="btnClick" Text="Click Me" OnClick="btnClick_Click" runat="server" />
- <asp:Label ID="lbl1" runat="server" />
- </div>
- </form>
- </body>
- protected void btnClick_Click(object sender, EventArgs e)
- {
- string mytext = "Microsoft Azure";
- lbl1.Text = mytext;
- }
Step 5: Right click on Project name & select “Publish” option,
Step 6: Select publish target - Microsoft Azure Web Apps,
Step 7: Select existing web app from list or create new web app.
Step 8: Click on Next button,
Step 9: Change Configuration to “Debug”,
Step 10: Click on Publish button,
Wait for uploading website on azure.
Step 11: When Azure Web App will run Open “Server Explorer” from Visual Studio,
Remote debugging will add on particular web app & automatically web app will open in browser.
Congratulations! You have successfully debuged the website which is hosted on Microsoft Azure!
Read more articles on Azure:











Sandeep ChPosted Aug 28, 2016, 9:55 PM EDT
Thanks for sharing, your article helped today and Great explanation with nice screen shots.
Amit DavePosted May 3, 2016, 6:35 AM EDT
Keep up the Good work!
Sonu ChaudharyPosted May 2, 2016, 2:09 AM EDT
Thanks for sharing
Nitin PanditTOP 100Posted Apr 30, 2016, 8:16 PM EDT
really great info :)
Kuppurasu NagarajTOP 100Posted Apr 30, 2016, 10:28 AM EDT
Nice Sharing..
Mohammed IbrahimPosted Apr 29, 2016, 8:48 AM EDT
nice
Debasis SahaTOP 100Posted Apr 29, 2016, 5:07 AM EDT
Good One..
Vignesh ManiTOP 100Posted Apr 29, 2016, 4:35 AM EDT
Nice one
Gowtham RajamanickamTOP 100Posted Apr 29, 2016, 3:50 AM EDT
good article
Bhuvanesh MohankumarPosted Apr 29, 2016, 3:15 AM EDT
simple and good
Rahul Kumar SaxenaTOP 100Posted Apr 29, 2016, 2:42 AM EDT
Good Show