Logging Azure Startup Task to WAD

Debugging startup tasks is very challenging so it is useful to log what they are doing.  Say that you have a ServiceDefinition.csdef file that looks like this:   <?xml version=”1.0″ encoding=”utf-8″?> <ServiceDefinition name=”Foo” xmlns=”http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition” schemaVersion=”2012-10.1.8″>   <WebRole name=”Bar” vmsize=”Medium” enableNativeCodeExecution=”true”>     <Startup>       <Task commandLine=”Startup\ConfigureIIS.cmd” executionContext=”elevated” taskType=”simple” />     </Startup>     …  …

0

Azure Service Fabric Announced

I’m very excited to see the Azure Service Fabric announcement!  My blog post from 2011, “Designed for the Cloud-it is all about State!”, was about the problem this technology solves.  In the post I pointed out the AppFabric Container which was were this technology was supposed to become publically available but never launched.  I had to wait four…

2

OData Action Gets 404 Due To Periods In URL

Following the tutorial at: http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/odata-actions-and-functions I encountered 404 errors until I noticed the tutorial says to change the web.config file.  My original web.config contained: <add name=”ExtensionlessUrlHandler-Integrated-4.0″ path=”*.” verb=”*” type=”System.Web.Handlers.TransferRequestHandler” preCondition=”integratedMode,runtimeVersionv4.0″ /> while the tutorial says to change the path property to “/*” like this: <add name=”ExtensionlessUrlHandler-Integrated-4.0″ path=”/*” verb=”*” type=”System.Web.Handlers.TransferRequestHandler” preCondition=”integratedMode,runtimeVersionv4.0″ /> It worked but then…

1

OData Complex Type Containing an Entity Type Workaround

For OData Actions and POST I want to return a complex type which has a navigation property to an entity but that isn’t supported yet by Web API as Yi Ding replied to this question even though the v4 spec supports it: http://stackoverflow.com/questions/27207450/webapi-odata-v4-comlextype-cannot-have-an-entitytype As suggested I turned the complex type into an entity but the…

0