How to web deploy to a virtual directory or web application in IIS and Visual Studio 2013
For whatever reason you cannot directly deploy (using Visual Studio WebDeploy) to a virtual directory in IIS. This threw me for a bit until I created both the virtual directory, a separate website, and pointed them both to the same directory. Then you just deploy to the otherwise unused website, and your web application shows […]
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 […]
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 […]
How to fix the “Could not determine storage version; a valid storage connection or a version hint is required”
The Cause: You’re cruising right along updating everything properly when all of a sudden you get an inexplicable Could not determine storage version; a valid storage connection or a version hint is required error The Cause: You’ve been upgrading and downgrading Entity Framework Versions. The actual error has nothing to do with the error message listed above. […]
How to fix The model backing the context has changed since the database was created error
The Problem You are coding away, and you get the following error The model backing the ‘ctx’ context has changed since the database was created. Consider using Code First Migrations to update the database This is my most frequent error when programming with Entity Framework asp.net .net mvc. I usually only happens when using databases […]
When challenging Goliath, do not arm wrestle
I attended another enjoyable meeting of the Atlanta Lean Startup Circle last night. It was a bit of a rambler of a meeting, but it was centered around making Atlanta more like Silicon Valley in terms of technology startups. We wound up defining startups for this purpose as a company that is high risk high […]
How to programatically set the sql server database used by entity framework
The Problem: For one reason or another you need to set the database used by entity framework programatically. The more common way of doing such a thing is to set the database in your web.config class, but for whatever reason you need to set it in actual C# code. The Cause: There is no cause […]
Want to know more about Zoho Time Tracking?
You should read my review of Zoho Time Tracking on the Time Tracking Review blog.