Author Archives: chilberto

Knockout.js defer applyBindings to avoid nodeType of null error

Knockout requires all html and the bound view model to be complete before applyBindings is called otherwise you might receive a nodeType of null error.  This is usually easily avoided by making sure the sequence of scripts is correct and … Continue reading

Posted in ASP.Net, HTML, JavaScript, Knockout.js, MVC, Uncategorized | Leave a comment

Azure Storage Client Version 3 – development storage not supported – 400 Bad Request

This post is just to save those unfortunates that have taken the latest Storage Client 3.0 and found that the storage emulator (re., local development storage) returns 400 Bad Request responses.  This is simply that the storage client version 3 … Continue reading

Posted in Azure, AzureStorage, Uncategorized | Leave a comment

MVC 4 ApiController Session access

Nothing is accidental when it comes to the behavior of Microsoft technology. It was a conscious decision to not provide access to session state from the ApiController in the same manner as the Controller class. I assume this was an … Continue reading

Posted in ASP.Net, C#, MVC | 4 Comments

MVC–Displaying Content from Ajax calls

This article illustrates two approaches to retrieving content from a service using an Ajax query in the MVC framework.  The first calls a method on a controller to paint a partial view.  The second retrieves html markup from a Web … Continue reading

Posted in ASP.Net, C#, HTML, JavaScript, JQuery, MVC, Uncategorized | Tagged , | Leave a comment

The remote server returned an error: (407) Proxy Authentication Required.

Just a quick note… Several C# components support pulling from http endpoints directly. For example, the XDocument class in System.XML.Linq supports the Load method which takes a URL. If this throws a “The remote server returned an error: (407) Proxy … Continue reading

Posted in C#, Uncategorized | Tagged , | 5 Comments

Azure Table Storage – DataServiceQueryException when using Count()

I have been expanding the Azure Storage Sample project. I came across an interesting limitation with the OData query projection currently supported by the Azure Storage Client. My desire was to have a rowkey that increments per partionkey entry. The … Continue reading

Posted in Azure, AzureStorage, C# | Tagged , , | Leave a comment

Unit Test WCF Clients

In general, I use SoapUI for mocking services. For rapid development this works well, but sometimes it is useful to mock services within your unit tests. The advantages here would include being able to automate the tests and to eliminate … Continue reading

Posted in C#, SoapUI, WCF | Tagged , , , , | Leave a comment

‘CloudStorageAccount’ does not exist in the namespace ‘Microsoft.WindowsAzure’

In case this helps someone, I upgraded my Azure Storage assemblies and found a breaking change to the Azure storage classes. The error manifests itself as: The type or namespace name ‘CloudStorageAccount’ does not exist in the namespace ‘Microsoft.WindowsAzure’ (are … Continue reading

Posted in Azure, AzureStorage, C# | Tagged , | 1 Comment

jQuery UI Accordion and jQuery BBQ

The following illustrates how the jQuery UI Accordion can be used in combination with jQuery BBQ.  Using the accordion example as a base, I made the following changes: Buttons I added a series of buttons that set the active option of … Continue reading

Posted in HTML, JavaScript, JQuery, jQuery BBQ, jQuery UI | Tagged , | Leave a comment

WCF Soap Services without a Soap Action

I’ve run into an issue twice now when integrating to an externally hosted service with WCF.  This post will hopefully save someone some time on a rather obscure issue. For WCF services that contain multiple operations, a unique Action should … Continue reading

Posted in C#, Java, SoapUI, WCF | 10 Comments