finally got my cloudapp running

2009-02-24 @ 12:25#

i finally successfully posted a live cloud app via MSFT's Azure hosting.

establishing an Azure app is not a big deal; it's pretty easy. but i added a complication because i want to use my Amundsen.Utilities library including my HttpClient class to handle HTTP communications w/ the cloud. this library is similar to the Jersey Client API and other similar libraries.

i ran into the dreaded "Full Trust" challenge when attempting to use my HttpClient library and was stumped until i was describing my problem to Dan Scarfe of Dot Net Solutions. turns out my library makes a check on the existence of any custom credentials for the request:

if (this.Credentials.UserName.Length != 0)
{
   req.Credentials = this.Credentials;
}

the first line above bombs out on the Azure hosting right now. just *checking* the credentials is a fail. right now, i don't need authenticated requests. even better, i can use the Authorization HTTP Header to handle any custom credentials over the wire. so i commented out the code and !bang! we're up and running.

so this means i should be able to take some time and get the entire Amundsen.Utitities library 'Azure-safe' very soon. that will make bulding (and porting) my HTTP apps on Azure much easier.

Azure