Figuring out what IP address your containers are using isn’t very clear at first but with the following two commands you can easily gain access to this information. Read More
(Xcode 7.3) Cannot create __weak reference in file using manual reference counting
After upgrading to Xcode 7.3 we now receive the following message when building
Cannot create __weak reference in file using manual reference counting
Thankfully we can get around this via the projects build settings.
Set: Build Settings > Apple LLVM 7.1 – Language – Objective C > Weak References in Manual Retain Release to YES.
X-Frame-Options and Orchard CMS
Just recently I ran into an issue while working on an Orchard CMS 1.8.1 website for a client. As part of the project some of the Orchard pages need to be loaded on an external website via an iframe. When the external page is loaded, the iframe fails to load the Orchard page and the following message is seen in Chrome:
Refused to display ‘{My Url}’ in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’.
We have a couple of options on how to fix:
Read More
Missing iOS Distribution signing identity for …
While attempting to update an iOS application with a new provisioning profile for AD-HOC distribution I ran into this error while performing the export step after archiving:
Missing iOS Distribution signing identity for …
Setup an existing Visual Studio project in TS (Team Services)
Chances are if you tried to add an existing project to TS from within Visual Studio by right-clicking the solution and choosing Add to Source Control you received the following error message:
Error Cannot map server path because it is not rooted beneath a team project
While the message may not be clear the fix is pretty straight forward. Read More

File.ReadAllBytes() results in a System.OutOfMemoryException Exception
Sometimes you’ve just got to read that whole file and store it into a Byte[]
and sooner or later you’ll run into a file that pushes the limits and you’ll get the wonderful System.OutOfMemoryException. Now you can make sure your Application Pool or Console application is set to run in 64bit mode which will help but what happens if you need to load over 2GB into a Byte[]
? Thankfully Microsoft has finally (only took 10 years) introduced very large object support into .NET 4.5+!
Why am I not seeing the Icon Overlays in Shell Extensions TFS Power tools?
Helpful post on getting the shell icons to display in explorer. Since this article was written you know need to add two blank spaces in front of each overlays name when editing the registry. It also doesn’t hurt to remove the “z” in front of a couple of the overlays name.
Moving code from one hosted Team Services (TFS) instance to another
Moving your code (with history) from one hosted TS instance to another is a bit easier then migrating from SVN to TS so let’s get right to it.
Attempt by security transparent method failed
If you are seeing the following:
Attempt by security transparent method ‘Microsoft.Web.Mvc.ScriptExtensions.Script(System.Web.Mvc.HtmlHelper, System.String)’ to access security critical type ‘System.Web.Mvc.MvcHtmlString’ failed.
or something similar chances are you’ve recently updated your project from MVC 4 to 5 and didn’t update all the references in nuget to target the new version. In my case the MVC4Futures nuget package should be removed and the Microsoft.AspNet.Mvc.Futures package should be used instead.
Debugging StructureMap with WhatDoIHave()
Having issues with StructureMap? Getting the exception
No default instance defined
Try running
Debug.WriteLine(container.WhatDoIHave());
and let StructureMap tell you what it knows. This method returns a formatted string showing everything in your container. If you see a blank in the configured instances then that’s something that is registered but doesn’t have a concrete instance.