Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7162013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:39:52+00:00 2026-05-28T13:39:52+00:00

I have an application that is deployed on Windows Azure, in the application there

  • 0

I have an application that is deployed on Windows Azure, in the application there is a Report part, the reports works as shown below.

  1. The application generates the report as a PDF file and save it in a certain folder in the application.
  2. I have a PDF viewer in the application that takes the URL of the file and displays it.

As you know, in windows azure I will have several VMs that will handled through a Load balancer so I can not ensure that the request in step 2 will go to the same VM in step 1, and this will cause a problem for me.

Any help is very appreciated.

I know that I can use BLOB, but this is not the problem.
The problem is that after creating the file on a certain VM, I give the PDF viewer the url of the pdf viewer as “http://…./file.pdf”. This will generate a new request that I cannot control, and I cannot know which VM will server, so even I saved the file in the BLOB it will not solve my problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:39:53+00:00Added an answer on May 28, 2026 at 1:39 pm

    as in any farm environment, you have to consider saving files in a storage that is common for all machines in the farm. In Windows Azure, such common storage is Windows Azure Blob Storage.

    You have to make some changes to your application, so that it saves the files to a Blob stroage. If these are public files, then you just mark the Blob Container as public and provide the full URL to the file in blob to the PDF viewer.

    If your PDF files are private, you have to mark your container as private. Second step is to generate a Shared Access Signature URL for the PDF and provide that URL to the PDF viewer.

    Furthermore, while developing you can explore your Azure storage using any of the (freely and not so freely) available tools for Windows Azure Storage. Here are some:

    • Azure Storage Explorer
    • Azure Cloud Storage Studio

    There are a lot of samples how to upload file to Azure Storage. Just search it with your favorite search engine. Check out these resources:

    • http://msdn.microsoft.com/en-us/library/windowsazure/ee772820.aspx
    • http://blogs.msdn.com/b/windowsazurestorage/archive/2010/04/11/using-windows-azure-page-blobs-and-how-to-efficiently-upload-and-download-page-blobs.aspx
    • http://wely-lau.net/2012/01/10/uploading-file-securely-to-windows-azure-blob-storage-with-shared-access-signature-via-rest-api/
    • The Windows Azure Training Kit has great lab named "Exploring Windows Azure Storage"

    Hope this helps!

    UPDATE (following question update)

    The problem is that after creating the file on a certain VM, I give
    the PDF viewer the url of the pdf viewer as "http://…./file.pdf".
    This will generate a new request that I cannot control, and I cannot
    know which VM will server, so even I saved the file in the BLOB it
    will not solve

    Try changing a bit your logic, and follow my instructions. When your VM create the PDF, upload the file to a blob. Then give the full blob URL for your pdf file to the PDF viewer. Thus the request will not go to any VM, but just to the blob. And the full blob URL will be something like http://youraccount.blob.core.windows.net/public_files/file.pdf

    Or I am missing something? What I understand, your process flow is as follows:

    1. User makes a special request which would cause PDF file generation
    2. File is generated on the server
    3. full URL to the file is sent back to the client so that a client PDF viewer could render it

    If this is the flow, that with suggested changes will look like the following:

    1. User make a special request which would cause PDF file generation
    2. File is generated on the server
    3. File is uploaded to a BLOB storage
    4. Full URL for the file in the BLOB is returned back to the client, so that it can be rendered on the client.

    What is not clear? Or what is different in your process flow? I do exaclty the same for on-the-fly report generation and it works quite well. The only difference is that my app is Silverlight based and I force file download instead of inline-displaying.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET application that is deployed in Windows Azure. The application has
I have a rails application deployed that works fine in Safari, Firefox, and Opera.
I have a windows forms application that is deployed to two different locations. Intranet
I have a WCF service that's deployed as a Windows Azure Web Role. I'm
I have an application that is deployed with ClickOnce, and has an option to
I have a VB6 desktop application that is deployed on well over 1200 desktops.
I have an ASP.NET web application that, for whatever reason, when it is deployed
I have a web application project (wap) that is successfully being deployed to a
I have a solution that is deployed using ClickOnce. It consists of an application,
I've got a .NET Windows application that's deployed via ClickOnce to a Web server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.