Saving a PDFSharp PDF File To Azure Blob Storage

Love the PDFSharp library. Here’s how I went about saving a PDF generated with that library to Azure blob storage: const bool unicode = false; const PdfFontEmbedding embedding = PdfFontEmbedding.Always; PdfDocumentRenderer pdfRenderer = new PdfDocumentRenderer(unicode, embedding); pdfRenderer.Document = document; pdfRenderer.RenderDocument(); MemoryStream memStream = new MemoryStream(); pdfRenderer.PdfDocument.Save(memStream,false); var client = new CloudBlobClient(new Uri("http://*.blob.core.windows.net", UriKind.Absolute), new StorageCredentialsAccountAndKey("*", " [Read More]

Using Parallel.ForEach To Aggregate Results From JSON Files Stored in Windows Azure Blob Storage

I love NoSQL, except when it comes to reporting.  Then I miss those handy SQL aggregation calls. I recently had a situation where I needed to look at a whole bunch of JSON files stored in Windows Azure Blob Storage and aggregate values from within those JSON files. The exact scenario was to get a count of how many people had achieved each achievement as part of the Visual [Read More]

Table Storage, Continuation Tokens, Windows Azure

By default, queries to table storage will return a maximum of 1000 rows, whether you are using the REST APIs or the LINQ provider.  If you want more rows, you need to get fancy. It’s pretty easy.  Let’s say you have created some data access classes similar to how the Azure Hands On Labs and samples encourage you to do so.  So say you’ve [Read More]

MVC3 and Windows Azure Tools 1.4 -- Better But Still Messed Up

Getting MV3 on to Azure used to be really painful. The new Windows Azure Tools 1.4 make things better, but they are still a bit bungled up.  The tools fix the missing assemblies problem (although I still maintain that this shouldn't even be an issue and IT should have them installed on the servers, but that's another issue) in that if you create a new Azure project [Read More]

MVC3 and Azure -- Back To Classic Dev Versus IT

Ugh, the evil "Instance 0 of role is initializing" when deploying to Azure. Turns out MVC3 isn't installed on the Azure VMs.  The issue is the same as getting PHP installed into Azure: the Azure virtual machines don't have MVC3 installed by default, so it is up to you to get it on the box. Beware -- just changing the references to MVC3 in your project to "Copy Local" [Read More]