Category: .NET

October 8, 2013

You might get this error while doing update-database -verbose via Package Manager Console:

This error happens when your data model is not in synch with your database. There are two ways to fix this: The first approach is by adding/deleting the columns that you added/dropped manually to your table and then re-running update-database again. […]

Continue Reading
March 29, 2013

A Singleton, in software engineering, is a design pattern that is used when you only want/need to allow one instance of a class. This is specifically useful when the class instantiation of the said class is resource expensive (e.g. database connection, graphics driver, network resource and file streams…). Below is a UML describing the implementation details of a […]

Continue Reading
July 24, 2012

I was working on a sample project today when I encountered this error after adding a new Console Application project to my Visual Studio solution that references other Class Library projects contained in the solution: The referenced assembly “C:devcenterdotnetpersonalKeithRull.BibliaKeithRull.Biblia.Service.RepositorybinDebugKeithRull.Biblia.Service.Repository.dll” could not be resolved because it has a dependency on “System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” which is […]

Continue Reading
July 2, 2012

I received this error while deploying a WCF 4.0 service to a newly created virtual directory.   Could not load file or assembly ‘KeithRull.Biblia.Service’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.  Description: An unhandled exception occurred during the execution of […]

Continue Reading
February 18, 2011

While working on RIA Services and Silverlight you might get an error like this: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8) Timestamp: Fri, 18 Feb 2011 18:20:46 […]

Continue Reading
January 30, 2011

I was working on a prototype application today when I needed to use a BulletList. At first I thought it existed on the toolkit controls but to my surprise it wasn’t so I ended up creating an ItemsControl template that mimics how a BulletList would behave. I wanted to post it here to show you how I […]

Continue Reading
May 18, 2010

Everyday you learn something new. You do. That is if you let yourself to be taught everyday. I didn’t know that you could solve this expression string in .NET in one line of code: “4 + 5 + 10 – 4 / 5 * 2”

  The result is 17.4. Nifty huh? You can […]

Continue Reading