wasnt nate

ASP.net

Easy of Building a Site and Hosting it into Azure

Last night I started creating my web page and ended up working on it until 730 in the morning. Here’s the high lights from the fun along the way. What I found along the way is that HTML5 can be a pain to position things. Then I stumbled across this article on codeproject[1] which did [...]

OpenAuth.RequestAuthentication – NullReference Exception Explained

It turns out that setting up OpenAuth for a .NET 4.5 application takes longer than 45seconds for several unlucky people online. This is due to the cryptic “NullReferenceException” in OpenAuthProviders.ascx.cs of the default Web Form template on line “OpenAuth.RequestAuthentication(provider, redirectUrl)” Most searching online seems to point back to Snuffler71’s question on stackoverflow.com which I did [...]

Using BITS Protocol from C#

For a recent project; I needed to download huge files across the network. To perform this I enabled BITS extension for IIS and then used the System.Net.BITS library written by RogerB. First the BITS manager needs to be initialized; this will create the managed wrapper to the out of proc COM server which. BitsManager = new Manager(); BitsManager.OnModfication +=  new EventHandler<JobModificationEventArgs> [...]

Custom Serialization With WCF

For a recent project we wanted to create a custom protocol for command and control that could be used across many platforms. This sounds like a great opportunity to leverage WCF for our clients that would be issues commands to the various devices. First we create a connection upstream to a device; this should look [...]

Passing a header on every WCF message

In this post, I describe how to create custom behaviors for both client/server side of a WCF channel. Then a custom header is attached to every outbound message. Every inbound message on the service will then act on the header.   MyClientBehavior For the client behavior I implemented IEndpointBehavior and IClientMessageInspector. void IEndpointBehavior.ApplyClientBehavior (Description.ServiceEndpoint endpoint, ClientRuntime clientRuntime) {   [...]

Building Silverlight Projects on x64 Build Servers

The Problem I just configured our Visual Studio Team Foundation Build Server 2010  to start making official builds of our Silverlight UI. While setting it up I kept hitting the cryptic error The Silverlight 4 SDK is not installed The Logical Solution Fair enough, I’ll install SL4 even though this is a Silverlight 5 project; maybe [...]

Url Redirection Module for IIS

Since my last post, I’ve begun porting this site into using WordPress for the data entry and a custom ASP.net front end. Here’s a little snippet from my port efforts showing how I implemented Url redirct. Note all business logic has been striped out to show only the concept. Create HttpModule public class UrlRedirection : [...]