Having private properties in ASP.NET MVC model objects

I have an ASP.NET MVC project in which I wanted to track which users created an item. I’m already using membership and authorization, so I just have to annotate my controller methods with an [Authorize] tag. I added a “User” property to the model objects I wanted to track, but I didn’t want MVC scaffolding…

0

Analysis Services 2008 R2 Team Build in TFS 2010

If you’ve tried to build a BIDS project in a team build, you’ve noticed that BIDS doesn’t support MSBuild. There are a couple of workarounds for this. Find MSBuild extensions for the various BIDS projects. They’re out there. Run the build through Visual Studio—a “DevEnv” build. I chose the second option. I downloaded the latest…

0

Using a config file to override targets in a Visual Studio test project

I wanted one of my coded UI tests to work in different environments, and to do that I wanted to override one of the URLs. I wanted to set that up in a config file rather than a data source. So, I created my own configuration data class for a custom section in App.Config (MSDN…

0

Opening minidumps in Visual Studio—what to do when you get a “You cannot debug a 64-bit dump of a 32-bit prcess, you must collect a 32-bit dump of a 32-bit process”

John Robbins has a few tips on collecting minidumps in a blog post. Unfortunately,  you typically can’t debug a .NET mindump created on a 64-bit machine by Process Explorer or Task Manager. Satish Arvati describes how to get a 32-bit version of Task Manager launched on a 64-bit machine here, and that solves the problems,…

0

Ways to associate a host name with your machine

I show a lot of web applications on my laptop. One of the nice things about IIS is that you can have multiple host names associated with your machine (like “www.contoso.com” and “ftp.contoso.com” and “finance.contoso.com”), but you can have several sites that only respond to each name. First, you can add the alias to your…

0

Setting up the SCOM TFS Connector CTP

I’m glad I set up the CTP of the new TFS SCOM connector. For one thing, it prompted me to set up System Center Operations Manager, which has the TFS SCOM Pack for monitoring TFS. I haven’t been able to show that until now, and it’s a good add-in to have. Brian Harry and Jason…

0

jQuery-validate in MVC

Boy, is debugging in a strongly typed language easier than in JavaScript. I’m really glad to have NuGet in Visual Studio. Of course, I immediately ran “Update-Package jQuery”, and then merrily went along until I later discovered that my login and registration pages weren’t working anymore.  The IE9 and Visual Studio debuggers were kind enough…

3

Some code to remove old build agent and test environment references

Disclaimer: This is just a blog post, and this isn’t supported code by any stretch of the imagination. It hasn’t been certified by anybody. I can’t say that customer support will help you if you’ve used it. It’s just me using the TFS API. I have an unusual situation. Since I demonstrate Visual Studio, TFS,…

0

WebCamps coming to the Southeastern US—see http://www.webcamps.ms/upcoming-web-camps.aspx

The next full (2-day) camp is in Atlanta, at the Microsoft Alpharetta MTC, on March 30th.  Andrew Duthie and Chris Bowen will present on MVC, jQuery, Entity Framework, and OData on Day 1.  Day 2 should be all hands-on labs. There are also events coming up in Florida. It looks like Andrew Duthie and Rachel…

0