I just deployed a new MVC web app and instead of executing the routes it just listed the contents of the directory like so: There could be many reasons for this, but I figured out the reason it was h
Solution to "This file is in use. Enter a new name or close the file that's open in another program" when trying to add new MDF connection in Visual Studio
I needed to refresh the code generated by the EDMX model, but it wasn’t working for some reason. So I deleted the EDMX file and deleted the connection string from web.config to start from scratch. I g
Solution to the exception: "Updating 'Newtonsoft.Json 4.5.8' to 'Newtonsoft.Json 4.5.5' failed. Unable to find a version of 'Microsoft.AspNet.WebApi.Client' that is compatible with 'Newtonsoft.Json 4.5.5'." when trying to install the twitterizer NuGet package in Visual Studio 2012
I have the RTM of Visual Studio installed, but the WebApi NuGet RTM build isn’t available yet. WebApi depends on Newtonsoft.Json and so does Twitterizer, but there is a version conflict. Unfortunatel
I got this “System.EntryPointNotFoundException” exception today: “Entry point was not found.” There could be many reasons for this exception. In my case it was because my main app and library app we
Solution to "c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC 4\CodeTemplates\AddView\CSHTML\Empty.tt(-1,-1): error: There was a problem getting an AppDomain to run the transformation from the host. The process cannot continue." Exception in Visual Studio 2012
This is an easy one. Just restart Visual Studio. Not sure what happened, but I’ll follow up with the Visual Studio team to see if I can find out.
I’m a big fan of the new Visual Studio interface, but I got a little lost today in Team Explorer. I registered my server, picked my project, but couldn’t see any Queries. !(/images/blog/3ff5106c
Solution to "Unable to cast object of type '[type1]' to type '[type2]'." when trying to cast a List to List
Okay, it’s not really a “solution” per se, but more of a workaround to a limitation with generic List objects that has to do with covariance and contravariance. I struggled with this for way too long,
Not sure why, but Intellisense wasn’t working by default when I first installed Visual Studio 2012. You need to reset your IDE settings. 1. Tools –> Import and Export Settings…. 2. Select Reset al
Solution to "TF212018: Work item tracking schema validation error: TF26085: Unknown constant with id 3675334." when importing a WIT into TFS
If you get this exception: “TF212018: Work item tracking schema validation error: TF26085: Unknown constant with id 3675334.” when calling witadmin importwitd, then your cache is likely invalid. Just
This is one of the worst authentication workflows out there. The only way to solve this is to close all your browser windows and go back to the site you were trying to login to. This is an extremely a
1. Make sure your Application Type is set to Read and Write in the Settings tab. 2. After you do step 1 you need to recreate your access token by clicking the button at the bottom of the Details tab.
Solution to unresponsive Visual Studio Extension Manager Update button when trying to update NuGet Package Manager
For some reason the “Update” button in my Visual Studio Extension Manager isn’t responding to clicks. I clicked it about 10 times to no avail. I messed around with Extension Manager settings a bit, b
TF26061: ‘[Reference Name]’ is not a supported reference field name. I just got this error after copying and pasting a reference name from an email to the TFS WIT Editor. There might be other reasons
Solution to "TF237055: You cannot destroy a work item type that is being used. Verify that the work item type is not being used in any categories. Operation failed."
You’ll often see TF237055 when you try to call destroywitd on a type that is currently assigned to a category. Here’s how to get around that. TF237055: You cannot destroy a work item type that is bein
Try the following if you get this error in Visual Studio: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found.
When you have a DataGridCheckBoxColumn without an associate label it is very difficult to check and uncheck the CheckBox. I know this solution makes no sense, but it works. In your Xaml add this marku
It was simple fix for me. Go into the Xaml file and add the ItemsSource attribute to the Grid node.