Monthly Archives: %sJanuary 2011

Easily switch browsers in Visual Studio 2010

Today I found an add-in for Visual Studio 2010 that allows you to easily switch the default debug web browser. Click here to download the add-in. Upon install also make sure to follow the instructions:

  • Restart Visual Studio 2010
  • Goto View -> Toolbars -> Default Browser Switcher

You should now see a new toolbar with 5 browser icons.

By |January 18th, 2011|Coding, Uncategorized|0 Comments


A couple months ago I stumbled upon a little app called Linqpad, its essentially a sandbox for testing out your linq queries.

Learn more by visiting

By |January 14th, 2011|Coding, Uncategorized|0 Comments

Understanding ASP.NET server side tags

ASP.NET has a numerous server side tag syntax, here is my attempt to explain them all:

This is your basic tag for including server side code on a webform or view (MVC).

     string testVar = “Hello”;
     if (testVar == “Hello”)
          //do stuff

This is the equivalent of Response.write, this tag has been around since the classic asp days.
<%= Request.QueryString(“Variable”) %>

Used for outputting databound data via Eval and other databinding methods.
<asp:DataList ID=”dlPhotos” runat=”server”>
          <%# Eval(“Filename”) %>

Server side commenting, comparable to <!— —> in HTML.
<%— <asp:Literal ID=”lcName” runat=”server” /> —%>

Used for directive statements, usually found atop your page.
<%@ Import Namespace=”My.Namespace” %>

Very similar to <%= but performs an HTML encode on the data.
<%: Html.Image(“~/images/test.png”) %>

By |January 13th, 2011|Coding, Uncategorized|0 Comments

Google Font Directory

Recently I learned about Google’s font directory. It features some cool open source fonts which you can integrate directly on your website using their API or download them for your image editing software.

Learn more by browsing

By |January 12th, 2011|Coding, Uncategorized|0 Comments

OWASP Top 10 for .NET developers part 6: Security Misconfiguration

OWASP Top 10 for .NET developers part 6: Security Misconfiguration

By |January 4th, 2011|Coding, Uncategorized|0 Comments

Could not load file or assembly ‘System.Web.Mvc’

So I published my first MVC project today to my production server. I got this error:

Parser Error Message: Could not load file or assembly ‘System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35’ or one of its dependencies. The system cannot find the file specified.

After some quick research the solution was simple and obvious. Upon publishing the assemebly System.Web.Mvc.dll was not placed into the bin folder. We have two options:

1). Find the DLL in your project folder and copy it to the production server
2). Set the “Copy Local” property on the DLL to TRUE. This can be done by browsing to the References folder in the Web project, clicking on System.Web.Mvc and pulling up the properties, select the property “Copy Local” and make sure its set to True. Perform another publish and you should be ready to go!

By |January 4th, 2011|Coding, Uncategorized|0 Comments