Archive for the ‘Microsoft Visual Studio’ category

Value cannot be null. Parameter name: source

April 25th, 2013

Sometimes you may get this error when you are debugging a linq query and it may seem pretty vague to you, and it is, very.  In my situation I didn’t have a parameter name called “Source” or a property named that either, it turns out the problem was a property I had in my linq query that was in fact null and when you execute a query across stuff that may be null you can run into stuff like this.

If  you see this error when you writing code, the easiest way that I know to figure out your problem is to look into anything the query is grabbing that may have a null in it.  Just simply start commenting out stuff and see what happens.

Good luck and I hope this helps someone!!

.Net Developers are a bunch of whiners!!!

March 6th, 2012

I don’t know if you have seen Visual Studio 2011 or not yet, here is a screenshot of the solution explorer compared to how it used to look:  I personally do not care about how my tools look, but apparently the entire .Net development community cares more about how their tools look than how their tools actually function.  Don’t believe me?
Look at these links:  http://bit.ly/y6akQ8
http://bit.ly/wsDT2q
http://bit.ly/zvj23C

There are lots more ranting and raving going on, with more and more coming on everyday.  I think Microsoft is simply moving towards what other desktop applications such as Photoshop and Lightroom are doing with darker themes and the same colors to keep the IDE in the background and allow you to focus more on your actual application, you know, what you are getting paid to build??  Sure some are focusing on the improvements, but to me, its pretty telling about a development community when what your IDE looks like is more important that the actual features or actual code you can write.


Git Source Control Plugin for Visual Studio

January 24th, 2012

If you are a big user of GitHub, and  a growing number of people are, and you also use Visual Studio and you like the convenience of doing everything inside of visual studio, I have found a nice little extension for visual studio.  The Extension is called  the Git Source Control Provider and can be found HERE.  It’s basically the exact same thing as the Visual SVN plugin that integrates into Visual Studio which works with the SVN source control library, all the instructions are there to show you how to install it to your particular version of Visual Studio.  Please note that you will need to install msysgit, Git Extensions and TortoiseGit if you want all the relevant context menus in Visual Studio.  I could not get the push/pull/add commands in there but if you do a sync it will have all the command in the window for you.  I especially like the commit screen where it shows you what you are about to commit, this screen also allows you to open the .gitignore file and edit it on the fly, allowing you to ignore the files you want, pretty sweet:

Unable to copy file “obj\x86\Debug\whatever.dll” to “..\bin\Debug\whatever.dll”. The proces cannot access the file “..\bin\Debug\whatever.dll” because it is being used by another process”

January 9th, 2012

Have you ever gotten this error with Visual Studio 2008?  This is a very frustrating error because it will not allow you to build your project unless you shut down studio and restart it, but this should not be so.  I have tried lots of things to make this go away but to no avail.  If anybody has a solution to make this go away for good I am all ears because from my understanding, this problem has been around for quite some time with Visual Studio.