Welcome to the Digital Tool Factory blog

Backend web development in Atlanta GA

How to fix problems with 404 errors and ScriptResource.axd

I recently had this problem when working with an older site – I fixed it by changing the AppPool Managed Pipeline mode to “Classic”. Why that worked I had no idea, but work it did!

How to fix problems with Visual Studio 2013 Web Deploy

Recently I began having problems with the Visual Studio Web Deploy feature – I did some googling and found that restarting the “Web Deploy Agent Service” fixes everything – I’m not sure why the service would lock up after a boot but that did fix it.

How to fix problems with small fonts when using the rotativa nuget package

Does the actual html look fine but the text on the printed pdf look way, way too small when you actually print the thing? In the MVC Controller – add in CustomSwitches = “–disable-smart-shrinking”, Check for long strings of unbroken text, in my case it was a fake underline of underscores (______) which was causing […]

ASP.net MVC remote validation does not check for empty strings

This is a lesson I learn too frequently – asp.net mvc remote validation does not validate when the textbox (or whatever) is empty – it will not check empty strings and the event simply won’t fire.  Why it does this I don’t know but it does not.  I spent an annoying amount of time relearning […]

Linq projection with the extension method syntax

I’ve looked this up an embarrassing number of times – here is how you do linq projection with the extension method syntax List<TypeClassification> typeClassifications = ctx.Classes.Select(e => new TypeClassification() {Name = e.Name, TypeClassificationID = e.ClassificationID}).ToList(); Hopefully I shall remember.  I’m not sure why I can’t remember the exact syntax.

A non definitive list of 64 html escape characters for currency

I recently had to integrate html escape characters for currency symbols on a project, and much to my surprise I could not find any good definitive list html escape characters for currency codes. These are also known as escape characters, character entities or extended characters.  I had to find them all more or less one […]

Five things should should know about the new asp.net identity membership system

I’m trying my first asp.net mvc 5 project, which more or less forces you to use the new asp.net identity framework for membership. It’s in the using Microsoft.AspNet.Identity namespace. While a vast improvement over the original asp.net membership – I do not see any massive benefit over the MVC 4 Simple Membership system.  Here are […]

How to fix 502 Errors in WordPress on Windows Azure Websites

For the past month I’ve been getting the following error 502 – Web server received an invalid response while acting as a gateway or proxy server.There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream […]

How to set mime types, aka Content Types with Windows Azure Storage

The Problem I recently came across the conundrum of files not being availble for download after I uploaded them to Windows Azure Storage. The Cause Usually the problem is an incorrect mime type, but since Azure does not have mime types I had to do some more digging. The Solution It turns out there is […]

How to fix problems in adding ssl certs on Windows Azure Websites

For some reason, most likely because you never do it more than once a year, adding ssl certificates to a server is poorly documented and unnecessarily complicated.  Here are some things I learned recently about adding ssl certs on Windows Azure Websites. I recently added a cert to this site, https://digitaltoolfactory.net which is hosted on Windows […]