Saturday, October 03, 2015
Enabling Custom Port on EC2 Instance

Suppose you want to enable port 8080 traffic to an EC2 instance, perhaps because you have set up an IIS site on a that port.  There are two things you need to do for this to work:

1) Edit your Security Group policy so that the port is enabled on inbound traffic.

2) Edit your Windows Firewall settings to allow it as well.

posted @ Saturday, October 03, 2015 7:43 PM | Feedback (0)
Sunday, September 27, 2015
Windows 10 Pro Insider Preview Build 10547 Install Bug

This may seem a bit familiar.

Trying to upgrade and it would stick at 23%, 77% files copied.  After waiting 20 minutes or so, I powered down so it would revert to the previous version.

I then deselected WCF HTTP Activation for both .NET 3.5 and .NET 4.6, upgraded successfully, then reselected them.

posted @ Sunday, September 27, 2015 5:03 PM | Feedback (0)
Tuesday, September 15, 2015
Universal Windows Platform and Line of Business (LOB) applications: Things I don’t get yet

So, I was going to build a LOB application using UWP, and ran into a whole host of “I’m old and/or don’t get the new paradigm yet” issues.

Such as:

  • How do you do configuration settings with these things?  I know you are supposed to use ‘web’ technologies and all that (since OData is dead, I’m going WebAPI), but I still want to be able to point to some things in my ‘DEV’ environment, other things in my ‘PROD’ environment.  Don’t I?  That sort of thing doesn’t go away, but there’s nothing like an app.config to work with here.  Some suggestions I’ve seen are to have configuration items in a text file that gets loaded on startup, then having a build step that…..uh, no.
  • How do you do data access with these suckers?  Although you can reference EF 6 from Nuget, and it doesn’t puke when you do it, it doesn’t appear you can actually do anything with it.  So, you are ‘stuck’ with EF 7 Beta 6+ or something, and I’m not sure what, if anything, you get in terms of tooling support, so….um….I know I’m old and all, but, isn’t data access important?
  • Do you really ‘just’ pass ValueSet classes back and forth?  I think messages are awesome but, uh, that seems kind of limited.

I really want to just dive in and embrace this new fangled stuff, but it seems like I really should just build a WPF app.  That’s so 2007.  Does Microsoft support WPF apps these days?  That’s a semi serious question.

posted @ Tuesday, September 15, 2015 9:10 PM | Feedback (0)
Configuring ASP.NET WebAPI 2 to allow Put and Delete

Whew.  That was more difficult than it needed to be.

Since I’ll forget this…..

   <modules runAllManagedModulesForAllRequests="true">
     <remove name="WebDAVModule" />
     <remove name="WebDAV" />
     <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
     <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
     <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
     <remove name="OPTIONSVerbHandler" />
     <remove name="TRACEVerbHandler" />
     <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
     <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
     <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />

posted @ Tuesday, September 15, 2015 1:12 PM | Feedback (0)
Saturday, September 12, 2015
No odata support in ASP.NET MVC 6

From here:

Question: Is there support coming for OData?

There is no planned work for Odata support in MVC 6.  Please ask more about this in the home repository and we can follow-up on it.

Well.  That’s awesome.  At least I can retool what I had in development that was based on OData.

posted @ Saturday, September 12, 2015 11:27 PM | Feedback (0)
Thursday, September 10, 2015
Nice StackOverFlow response

In response to this:

+1 This is probably the single greatest answer ever provided on stack overflow. Words alone do not suffice in expressing my gratitude for this exceptionally helpful, superbly worded answer. Cries of joy rang out a half a world away when this answer was both read and applied with magnificent levels of success and sincere sensations of relief. A cold beer has especially been set aside for our dear, dear guide, Pieter. May you sir, live a very long and very happy life. An absolutely marvellous contribution. Just marvellous. Thank you. –  rism May 19 '12 at 10:29

posted @ Thursday, September 10, 2015 10:20 AM | Feedback (0)
Wednesday, September 09, 2015
Bye Bye JetBrains

Mandatory subscription licensing

Fuck that.

posted @ Wednesday, September 09, 2015 9:39 PM | Feedback (2)
Asp.Net 5 & dependencies, still not right

This is not all that shocking, but I was trying to follow this demo, and downloaded the code and tried to run it.

As the article states:

The required dependencies are added to the project.json file. This is the hardest part, as you have to figure out which packages are required and also if the packages work together.

It’s even harder when the packages can’t be found.

From project.json:



Output (after package ‘restore’):



If you go here, you see:



Core and Commands and all that restore just fine, just not, you know, what you actually need.

posted @ Wednesday, September 09, 2015 9:12 PM | Feedback (0)
Thursday, August 27, 2015
Useful programming phrases

Co-worker: Man, that’s some half-assed code in there.

Me: Okay, should we ‘full-ass’ it or ‘un-ass’ it?

posted @ Thursday, August 27, 2015 10:10 AM | Feedback (0)
Tuesday, August 25, 2015
Web site debugging problems? Try running it outside the debugger at least once

I’ve been looking at this, because I’m looking into how to create a site that uses OData with CQRS (not to mention some Windows Universal Apps that use tasks to call OData services….”Over-architectured solution?  You’re soaking in it!”) and have been having a hell of a time debugging it (I know it uses WebAPI, but same difference).

I was cursing Angular, because the fun thing with javascript is you have to remember to F12 and look at response/request bodies and headers and it has all these strings and it kept giving me 500 errors because of ‘ambiguous matches’ on checking in and out inventory, then cursing the fact that I’d make markup changes that wouldn’t reflect when I viewed the site.  I’d switch between full IIS and IIS Express and get different behavior, etc.

Then, I thought about just running it in IIS.  Works perfectly.

So, that doesn’t explain at all why all the issues when running it under a debugger (I’m using VS 2015), but at least it is a sanity check to know the code is running fine.

posted @ Tuesday, August 25, 2015 7:26 PM | Feedback (0)