Programmatic Impersonation

It is often a requirement in your web application to run with impersonation on. This ensures that the users credentials are directly related to whoever is logged in. However, sometimes you need access to a local file system in which...

Read More

Quick Multi-Threading Example

In the past I often looked at Multi-Threading as requiring more time to take advantage of. Recently, I took advantage of multi-threading in its generic form (not using strongly typed classes inheriting from the Thread). I found myself in a...

Read More

Config Files & Ampersands

Sometimes you have the requirement to use an Ampersand within your web.config or app.config file. It may be something like storing a URL in an Application Setting, like the following example: <?xml version="1.0" encoding="utf-8" ?> <configuration>   <appSettings>     <add...

Read More

JSON Serialization maxJsonLength

In a number of situations, passing JSON objects between server side and client is a dream come true for developers. It makes integration between the two worlds quite nice. However, sometimes those JSON objects can be quite large in a...

Read More

Web.config Inheritance in IIS Virtual Directories

Web.config inheritance can be a real pain in some circumstances. Essentially, the problem(s) that can occur are when you are hosting an application in the root of a website, and decided to add an application to subdirectory. In IIS you...

Read More

JQuery, AJAX, JSON, and .NET

Client rich features often require some dabbling across a couple of different technologies in order to produce your desired product. JavaScript alongside some type of server technology is usually the course of action. My recent work involved the use of...

Read More

System.BadImageFormatException

What in the world is a System.BadImageFormatException??? I didn't know either. And it drove me insane because I could not seem to figure out what was causing this error only when I deploy to a UAT site. It worked fine...

Read More

VIDEO: Basics of Data Driven Unit Testing

Discusses the absolute base knowledge of creating Unit Tests in Microsoft Visual Studio 2008, using the built in test framework. Specifically towards the end, examples include creating a data driven unit test from a database table to supply the parameters...

Read More

Dundas Charts on IIS7

Unfortunately deploying your Dundas Charts solution to an IIS7 environment is slightly different than IIS6, mainly due to the new Integrated Mode which is turned on by default in IIS7. To use your chart handler in IIS7 you'll need to either...

Read More

Assembly (dll) versions and Compiled Targets

Very rarely do you have to begin interrogating one of your assemblies when it simply won't work in a production environment...but when you do it can be supremely frustrating. Especially when the problem seems to be the fact that the...

Read More