IT tutorials
 
Windows
 

Windows Azure : Integrating BLOB Storage and SharePoint (part 2) - Deploying the Application & Integrating the Application with SharePoint

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
9/29/2011 5:08:01 PM

2. Deploying the Application

Now you can deploy the application to Windows Azure. You must first create a hosted service in Windows Azure to which you will deploy the image manager ASP.NET application. Before you can do this, though, you’ll need to amend the DataConnectionString to point to your Windows Azure instance in the cloud (as opposed to its current configuration for your local development storage). You’ll then deploy the ASP.NET application to Windows Azure by publishing the service—similar to the way you would deploy other types of applications to Azure.

2.1. Deploy the ASP.NET Application to Windows Azure
  1. Open your Visual Studio project, right-click the web role (for example, ImageBlobStorage), and select Properties.

  2. Amend the DataConnectionString Value field by clicking the ellipsis to the right of the field. Click Enter Storage Credentials, enter your account name and account key, and then select Use Default HTTP Endpoints (or Use Default HTTPS Endpoints).



  3. After you’ve amended the DataConnectionString field, your Windows Azure application is configured for use in the cloud.

  4. Right-click the cloud project, select Publish, and then select Create Service Package Only. Windows Explorer invokes with the two files you’ll need to deploy to the cloud.

  5. Open the Windows Azure developer portal by signing in at https://windows.azure.com/.

  6. Click Hosted Services, Storage Accounts & CDN, and then click the New Hosted Service button.

  7. Enter a name for the service, a URL prefix, and a deployment region, and then select Deploy To Production Environment. Enter a deployment name, and then browse to the cloud service files you just built and published. The dialog box should look similar to the one in the following image.



  8. Click OK. Windows Azure will require a few minutes to deploy the new ASP.NET web role.

  9. In the DNS Name field, click the URI that was created for you to load the newly deployed ASP.NET Windows Azure application. The following image shows the Windows Azure portal.



    You can now add images to BLOB storage by using the newly deployed Windows Azure application.

  10. The BLOB container is empty, so add a few images to the container, as illustrated in this image.



  11. After you add a few images, click one and note the image URL: for example, http://fabrikamlegal.blob.core.windows.net/imagefiles/Boy_Picnic.png. The image is now being loaded from the remote Windows Azure BLOB container and not from your local Windows Azure development storage.

With just this simple application, you now have the core bridgework and programmatic knowledge to move binary resources into Windows Azure BLOB storage. Although this exercise focused on images, you’re certainly not limited to this type of file; you can add many types of files in Windows Azure for use in SharePoint (and for that matter, for use in many other applications).

3. Integrating the Application with SharePoint

In the next exercise, you’ll build a simple Web Part that integrates the ASP.NET application you just built with SharePoint by using an IFRAME. Although it integrates on an application level, the code is not fully integrated; as you know, IFRAME loads a view of the application.

3.1. Integrate an ASP.NET Application with SharePoint by Using IFRAME
  1. Open the Visual Studio solution you created in the first exercise. Right-click the solution and select Add | New Project.

  2. Navigate to the SharePoint 2010 installed templates and select Empty SharePoint Project.

  3. Provide a name for the project (for example, AzureWebPartProject), choose Deploy As A Farm Solution in the SharePoint Customization wizard, and click Finish.

  4. Right-click the newly created project, select Add | New Item, and select Web Part.

  5. Provide a name for the Web Part (such as AzureBlobStorage).



  6. Click Add. Rename the Feature1 node to AzureBlobStorageFeature.

  7. Right-click the Web Part class file (for example, AzureBlobStorage.cs) and amend the code with the bolded code in the snippet below. Note that the src property will point to your Windows Azure ASP.NET application (for example, http://myazureimagemanager.cloudapp.net):

    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using System.Text;

    namespace Azure_Storage_IFrame.AzureVideoManager
    {
    [ToolboxItemAttribute(false)]
    public class AzureVideoManager : WebPart
    {
    StringBuilder azureIFrame = new StringBuilder();

    protected override void CreateChildControls()
    {
    azureIFrame.AppendLine("<iframe id='azureVideoManager'
    frameborder=0 scrolling=no width=400px
    height=800px src='http://myazureapp.cloudapp.net/'></iframe>");
    this.Controls.Add(new LiteralControl(azureIFrame.ToString()));
    }
    }
    }


  8. If you want, you can now amend the .webpart and elements.xml files, to provide a more intuitive title, description, and custom group location in SharePoint for the Web Part.

  9. Press F6 to build the SharePoint project, and then right-click the project and select Deploy.

  10. Navigate to your SharePoint site. Select Site Actions and then Edit Page.

  11. Click Insert | Web Part, and then navigate to the newly added Web Part.

  12. Click Add. The Windows Azure application now appears in SharePoint.



Although you used an IFRAME to loosely couple SharePoint with Windows Azure BLOB storage, you can also create a Web Part project and deploy it into SharePoint as a Web Part. If you choose this path, you will need to ensure that you add the data connection configuration information as app settings in the web.config file for your SharePoint site. For more information, see http://blogs.msdn.com/steve_fox.

 
Others
 
- Windows Azure : Integrating BLOB Storage and SharePoint (part 1) - Creating the Application
- Overview of Windows Azure BLOB Storage
- Windows 7 : Managing Network Access
- Windows 7 : Managing File and Folder Security (part 2) - Design Goals for Access Control & Determining Effective Permissions
- Windows 7 : Managing File and Folder Security (part 1) - Folder Options, Securing Access to Files and Folders
- Automating Administrative Tasks with Windows Server 2008 R2 : Learn PowerShell Integrated Scripting Environment (ISE)
- Automating Administrative Tasks with Windows Server 2008 R2 : Use PowerShell Remoting
- New Group Policy Features in Windows Server 2008
- New Group Policy Features in Windows Vista
- Getting Started with Windows 7 : Get Help
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us