Archives for Software Dev - Page 47
WCF – The maximum string content length quota (8192) has been exceeded while reading XML data
Introduction The DataContractSerializer in WCF serializes objects to XML Streams. There is a size (length) limitation on these streams. They are restricted by default to 8k (8192 bytes). While this…
Visual Studio Using Too Much Memory
When running by itself (no project opened and no extensions), Visual Studio 2012 takes less than 100 MB. When you open up your projects, those add to the total memory…
Async Await in Web API Controller
Introduction In WebAPI (part of mvc 4), controllers are view-agnostic. They do not return data to a view – rather they return pure, formatted data (either JSON or XML –…
Using Database Tuning Advisor for individual queries
Often times, instead of tuning an entire database, we are interested in performance tuning a single offending query. This can be accomplished by applying the tuning wizard to a specific…
Using TTFB to distinguish between server side and client side page load issues
Introduction This is just a quick note to highlight a commonly used web testing metric for making an initial determination of where the source of bottleneck(s ) might be. TTFB…
Managing Corporate I.T. Assets
Application Consolidation - Typical Asset Management Questions / Scenarios Overview Application consolidation can save a company hundreds of thousands of dollars annually. And reduce application management costs. And provide ‘enterprise…
Visual Studio Replace multiple lines of code
I had to insert a few lines of code in about 700 different files. However, the insertion had to be in a specific place (just before the start of a…
Finding out your full domain and username on windows
Username From a DOS prompt, type echo %USERNAME% /domain . This should return your username as registered in the current domain. Full Domain Name I can never remember the full…
Troubleshooting nHibernate Performance
Introduction nHibernate is still one of the most popular ORM layers in use today. It provides support for collections, advanced querying, caching, statement batching, automatic change tracking for entities and…
Visual studio does not display .NET 4.0 (or 4.5) framework option for target framework
Introduction Even if you have .NET framework (or above) installed correctly, Visual Studio sometimes does not pick it up. This means that you will be unable to convert any of…