Wednesday, 7 January 2015

How to manage Azure websites files

Hi Folks,


Today i searched around Azure management portal about how to change the particular Image in the  published website, i saw the WebMatrics symbol at the bottom tab.












I searched what is the use WebMatrics for azure.
























This is free and light weight web development tool for accessing cloud hosted websites and mange thought TFS and Git.

There are lot options with webMatrics create, publish and manage, open hosted sites as folder view and create clod services .....

 

Reference: Microsoft webmatrix



Tuesday, 6 January 2015

Journey to dot net Authority: C# Corner Hyderabad Chapter: Azure Day

http://www.c-sharpcorner.com/Events/119/C-Sharp-corner-hyderabad-chapter-azure-day.aspx

C# Corner Hyderabad Chapter: Azure Day

C# Corner Hyderabad Chapter: Azure Day

Date: 24th January 2015

Venue:

Microsoft Corporation (India) Pvt. Ltd.
MPR 001, Building 3, Microsoft Campus
Gachibowli, Hyderabad - 500032
Andhra Pradesh, India

Price: Free of cost

Time: 10:00 AM - 05:00 PM

Requirement: Optional to bring your laptop and Data card

Registration starts at 09:00 AM. So we request you to be there at 09:00 to get a seat.

Session details are as follows:
Keynote Vishwas Lele 10:00 AM - 11:00 AM
Introduction to Cloud Computing Murugan Andezuthu Dharmaratnam 11:00 AM - 12:00 PM
Azure Websites - What & How Subhendu De 12:00 PM - 01:00 PM
Lunch
N/A 01:00 PM - 01:30 PM
Azure for Startups Prabhjot Singh Bakshi 01:30 PM - 02:30 PM
Introduction to Azure IAAS Kunal D Mehta 02:30 PM - 03:30 PM
Building Applications for cloud Sekhar Srinivasan 03:30 PM - 04:30 PM
Feedbacks and Closing Note Mohit Chhabra 04:30 PM - 04:45 PM
Speakers

Vishwas Lele @Vlele

Vishwas Lele serves as CTO at Applied Information Sciences, Inc. Mr Lele is responsible for assisting organizations in envisoning, designing and implementing enterprise solutions related cloud and mobility. Mr Lele brings close to 25 years of experience and thought leadership to his position, and has been with AIS for 20 years. A noted industry speaker and author, Mr. Lele serves as the Microsoft Regional Director for Washington D.C. and is currently a Windows Azure MVP.

Murugan Andezuthu Dharmaratnam

Murugan is a technology leader with 14 years of hands-on experience in full life cycle systems design, development, implementation, and management. In addition to systems design and development, his core competencies include cloud design and architecture, interactive web applications and websites development, mobile computing, and Healthcare Information Technology. His experience is very diverse with a broad range of technologies within multiple industry settings including private, public, and non-profit. Coupled with his technology expertise, Murugan is a well-organized, result-oriented, and a highly analytical leader with proven track record in developing and implementing very complex systems.

Subhendu De @dotnetartisan

Subhendu is a Cloud Consultant working at Microsoft. He is a developer, speaker and blogger with 10 years of consulting experience. He has delivered solutions that range from products to enterprise e-commerce application to worldwide customers. He is also MCP, MCTS, MCPD and ITIL certified. He is an active member in the Hyderabad .NET community and give technical presentations on Microsoft tools and technologies across different workshops and user groups.

Prabhjot Singh Bakshi @prabhjotbakshi

Prabhjot Singh Bakshi is a Corporate Trainer. Has already imparted training at IBM(Hyd, Kol,Banglore), Accenture(all location) Nokia for WP7, Seimens for wp7, Ceridian (mauritius), Ness, Cap Gemini(Kol, Mumbai,Bangalore), Intel(Bangalore), Mcafee(Bangalore), HCL(Chennai, Bangalore, Noida),KPIT(pune), SunGard(Pune), Wipro(Hyd, Bangalore,Kol), TCS(Hyd), Royal bank of Scotland(Gurgaon), Solid(Chennai), Delta(hyd), 3i infotech(Mumbai), ICICI Tech process(Mumbai), SMTC(Dubai), Patni(Mumbai), Computer Society of India, IEEE, Ness Technology, for Microsoft India at Virtusa, Polaris(Gurgaon) and many more

Kunal D Mehta @serverbaba

Kunal D. Mehta is a Pluralsight Author, Microsoft Certified Technology Specialist (x3) and a Windows Server Freak! He mainly works on Microsoft's IT Infrastructure technologies like Windows Server, Windows Client, Exchange, System Center suite, Forefront suite, Virtualization, SharePoint, etc. and a little bit of networking.

Queries concerning your registration should be addressed to chapters@c-sharpcorner.com or call at 0120- 4256016.

Wednesday, 31 December 2014

Happy New Year 2015


How to download Blobs from Windows Azure

In this Post i would like tto explain about Downloading of Blobs using C# Code.

There are so many ways to download the Blob, am going to Explain Using Shared access signature(SAS).



//Using Azure Storage
// Retrieve storage account from connection string.           
 CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString);
                    // Create the blob client.
                    CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
                    string containerName = (sender as LinkButton).CommandArgument;
                    string fileName = (sender as LinkButton).Text;
                    //getContainer Name
                    CloudBlobContainer container = blobClient.GetContainerReference("myContainer");
                    CloudBlockBlob blockBlob = container.GetBlockBlobReference(fileName);

                    if (blockBlob.Exists())
                    {
                        //set the cache control
                        Response.Cache.SetCacheability(HttpCacheability.Public);
                        Response.Cache.SetValidUntilExpires(true);
                        Response.Cache.SetMaxAge(TimeSpan.FromSeconds(300));
                        Response.Expires = 300;
                       
                        //set the output content type
                        Response.ContentType = blockBlob.Properties.ContentType;
                        Response.AppendHeader("Content-Disposition", "attachment; filename="+fileName);

                        //download the asset to the output stream
                        blockBlob.DownloadToStream(Response.OutputStream);
                    }
 



How to Change Configuration mode of Windows Azure website

Today i will explain how to change Configuration mode of Azure Website in Management Portal.

Select the Website which you want to Change and go to Configuration section, Here we can see the Option to Change either Release mode or Debug Mode.




Monday, 29 December 2014

How to debug Windows Azure WebSite with Visual Studio

Remote debugging is very simple with visual Studio 2013 and we can also debug Window azure websites with Visual Stuio 2012 fot this we need some settings to do.

In this article i will explain about how to debug Using Visual Studio 2013.

for this We need to Install Azure SDK from Version 2.2 onwards Remote Debugging is available for Windows Azure  Cloud Service.

We need to Stall Azure SDK 2.2 or latest versions of Azure SDK.

Download Azure SDK

Before Installing SDK, the Server Explorer will be like this





















After Installing Now you will New Menu Options.



























Remote Debugging :

1. Publish the Website with Configuration mode as debug.
2. Select the Website in Server Explorer and Choose an Option as Attach Debugger.



































How to Remove items from the qury string after redirection

Today i will explain about the How to Remove items from the qury string after redirection.
Removing Items from QueryString.

For this we need to add following Using Statements in the Page.

using System.Collections;
using System.Reflection;




PropertyInfo isreadonly = typeof(System.Collections.Specialized.NameValueCollection).GetProperty("IsReadOnly", BindingFlags.Instance | BindingFlags.NonPublic);
// Editable
isreadonly.SetValue(this.Request.QueryString, false, null);
// remove the Item
this.Request.QueryString.Remove("QueryStringParam");








The Process cannot access the file because it is being used by another process.(Exception from HRESULT: 0x80070020)

The Process cannot access the file because it is being used by another process.(Exception from HRESULT: 0x80070020)












This kind of Issue will come with Binding Conflict.There is an another application that is using port number 80.


You can run NETSAT -ano and find out the PID, May be the Process name Skype.exe






Could not load file or assembly 'Newtonsoft.json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

Could not load file or assembly 'Newtonsoft.json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

This kind of Errors will come if Pointing to the Wrong version of dll's.


In Package manager Console Execute: Update-Package -reinstall Newtonsoft.Json.

If you facing an Error after executing the Command, Change the Version of Json in web.config or app.config.




  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>


I Think you you are pointing to Wrong version, change it 4.5.0.0 to 6.0.0.0