Monthly Archives: June 2011

Reseting local Windows Azure storage

Posted on

I run few days into a problem when I was not able to delete local development storage tables using Windows Azure API and system was throwing me exceptions. The reason of these exceptions I guess was the fact that table were very big. In basic scenarios resetting can be archived with Storage emulator UI.      …Continue Reading


LINQ Contains operation is not supported by Azure Table API

Posted on

  Unfortunately Azure API not supporting Contains LINQ expressions .   Contains Syntax: LINQ public static Product[] GetProducts(Guid[] prodIDs) {    return (from p in GetProducts() where prodIDs.Contains(p.ProductID) select p).ToArray<Product>(); } TSQL expression  – WHERE [t0].[ProductID] IN (@p0, @p1)’, LINQ contains syntax example has been taken from http://weblogs.asp.net/dwahlin/archive/2008/05/09/using-linq-to-perform-quot-where-in-value1-value2-quot-queries.aspx Tweet


Improving performance for Windows Azure tables

Posted on

Original article NET and ADO.NET Data Service Performance Tips for Windows Azure Tables.   Summary: Default .NET HTTP connections is set to 2 Config file: <system.net> <connectionManagement> <add address = "*" maxconnection = "48" /> </connectionManagement> </system.net> In code: ServicePointManager.DefaultConnectionLimit = 48; Turn off 100-continue (saves 1 roundtrip) Code: ServicePointManager.Expect100Continue = false; // or on   …Continue Reading


StorageClient.StorageClientException: The specified blob already exists

Posted on

Got interesting exception today while trying to upload multiple file blobs to Azure container.   private void UploadFileToBlob(string url, Asset asset,string filepath,string filename) { var container = new CloudBlobContainer(url); //Get a reference to a blob, which may or may not exist. CloudBlob blob = container.GetBlobReference(filename); blob.DeleteIfExists(); //Upload content to the blob, which will create the   …Continue Reading


Deploying MVC dependencies to Azure

Posted on

If you creating web application to be deployed to Windows Azure, you probably noticed that deployment and azure instance initialization may take a while. Any missing reference or break will cause you time and lost productivity. Few days ago I spent couple of hours trying to include all mvc references one by one making sure   …Continue Reading


ODATA WCF Data Services Friendly URLS using Routing

Posted on

When you creating your first OData WCF Data service common tasks is to give a friendly URL instead of using filename.svc as entry point.You can archive it with URL routing feature in ASP.NET MVC.Just modify your Global.asax.cs route registration block to include following lines. public static void RegisterRoutes(RouteCollection routes) { routes.Clear(); var factory = new   …Continue Reading