Follow Up on “IIS Services, 504′s, and Fiddler”

The other day I posted an article discussing my issue tracking down a bug in a ClickOnce application. I had noted that once I made a change to maxRequestLength in my web.config file the issue went away. Well, that change was not the real solution.

Click Here To Continue Reading …

IIS Services, 504′s, and Fiddler

I have been tracking a random issue in one of our projects here at Mercer. It is a simple ClickOnce application, with a handful of hosted services through an IIS website. When I worked on the tool in my local development environment everything worked fine. When I deployed the tool to QA for testing it completely broke at a single point in the application for our QA team in India. The tool worked fine here in Louisville, with the exception of this morning where I was able to reproduce the problem.

Click Here To Continue Reading …

Specialized C# Operators

In a previous post I went over some random C# operators. This article is a follow-up to that one, covering some more advanced C# operators and techniques. Specifically, the ?: operator, the ~ operator, |= operator, and the ^= operator.

Click Here To Continue Reading …

Reboot Trick

Have you ever had the issue where Windows insists that there are pending install or uninstall operations even after a system reboot? This can often be caused by programs not cleaning up a specific key in the registry. So here is a quick fix you can use to correct this problem.

Click Here To Continue Reading …

IronPython and C#

So the other day I wrote about dynamic types in C#. I covered a few use cases from COM interaction to working with other languages. Well, today I have put together an example for you that will load a Python file into C#, through IronPython.

Click Here To Continue Reading …

Dynamic Types in C#

When C# 4.0 was released, it added a new type for variables called dynamic. The dynamic type is a static type, but it is an object that bypasses static type checking. Now if your head has just exploded from reading that last sentence I apologize. When you compile an application that contains any dynamic types, those dynamic objects are assumed to support any operation that may be ran against them. This allows a developer to not worry about where a method is coming from be it XML, DOM, or other dynamic languages like IronPython. However, if at runtime a method or command does not exist errors will be thrown at run-time instead.

Click Here To Continue Reading …

Understanding Path Limits in TFS

Team Foundation Server (TFS) is bound to a some limitations that can potentially break your Visual Studio project. One of these limitations is the character count limit in a file path. If you overshoot this limit you will run into issue when adding new files to TFS or attempting to compile your project in Visual Studio. Here is a quick overview explaining why TFS behaves like this and what you can do about it.

Click Here To Continue Reading …

Branching Your Code Effectively

To develop and maintain a healthy software project you are going to need a good revision tracking system and branching strategy. There are many different techniques and patterns you can take advantage of when branching from your development trunk or merging code back into it. Branching should be a part of all major and minor software development processes, and the activity of branching and merging should be a natural event throughout the lifetime of a product. So here are some common branching strategies you may want to integrate into your next project.

Click Here To Continue Reading …

Random C# Tricks

I wanted to share a few C# tricks I reviewed today. Some programmers will use them all the time, others barely know about their existence.

In this short source code example I will be demoing the ?? operator, chaining ??, and String.IsNullOrWhiteSpace() which is a newer .NET method.

Click Here To Continue Reading …

Windows Communication Foundation – A Simple Client & Server

Windows Communication Foundation (or WCF for short) is an interface located inside the .NET Framework for creating connected, service-oriented applications. We can use C# and Visual Studio 2010 to build a simple WCF Client and WCF Server. We will start by developing the server and the service it will provide, and from that we can build a WCF Client based on that very server.

Click Here To Continue Reading …