Posts
832
Comments
691
Trackbacks
1
.NET
T4MVC RedirectToAction problem

I tried to find similar issues but Google-fu failed me. With TVMVC, you should be able to get rid of some magic strings.  So, for instance, if you have this: return RedirectToAction("Index", “Foo", new FooViewModel {SomeProperty = false }); you should be able to replace it with: return RedirectToAction(MVC.Foo.Index(new FooViewModel {SomeProperty = false})); However, the FooViewModel is always null when it gets to the controller.  I always assume user error, since johnny developer is an idiot, but nothing seems to be working.

posted @ Friday, June 08, 2012 2:17 PM | Feedback (2)
First impression of Visual Studio 2012 RC

Holy crap.  Is that thing f%^&ing ugly or what?

posted @ Thursday, June 07, 2012 2:36 PM | Feedback (0)
Faulting Module Kernel32.dll: One solution

This is one solution to this error, hardly the only one. Sometimes when you try to run a .NET application, you get a completely generic error message in event viewer that includes “faulting module kernel32.dll” in the description.  If you Google this, you will see that there is a wide and nearly useless range of cases where this can occur. In my particular case, though it took a little while to figure out, the cause and solution were fairly straightforward. The application was a windows service, and would throw an error when started.  It worked in other...

posted @ Sunday, October 30, 2011 4:18 PM | Feedback (5)
Review: Tekpub Webcast - Full Throttle : TDD with Brad Wilson

So, after going through the signup process, I finally gained access to this episode.  Leading up to this review, I have watched the episode in total 3 times:  the first time I watched straight through while taking quick short hand notes, the second time, I watched portions of it in succession, stopping to take more in-depth notes, the third time, I watched it to fine-tune my comments on specific sections. Since I’ve been ragging on Tekpub, it is only fair to start off with a positive general note. Tekpub’s Production Quality Rob has been doing...

posted @ Tuesday, September 20, 2011 8:07 PM | Feedback (0)
Visual Studio 2011 Developer Preview doesn’t always like Visual Studio 2010 Projects

I installed the Visual Studio 2011 Developer Preview on one of my machines, as it is supposedly safe to install side by side with Visual Studio 2010. One of its supposed features is its ability to open Visual Studio 2010 projects/solutions without modifying them, which can then be re-opened in Visual Studio 2010. It turns out this isn’t always the case, though I’m not sure why. I have a solution that is (more or less) a silverlight application, and it simply won’t open the web project that hosts the silverlight app.  When the solution is opened, it...

posted @ Saturday, September 17, 2011 11:53 AM | Feedback (1)
Why do I have to use NuGet?

NuGet is Microsoft’s attempt to copy Ruby gems, as far as I can tell.  Great.  All for it. But why is it that I have to use it, instead of getting the option to install normally through some MSI or other option? Maybe I’m missing something, but if I want to install, say, EF 4.2 Beta 1, why can’t I have an option to install it globally, as opposed to having to install it within some specific project/solution?  I’m using a Microsoft release as an example, but I could just as easily use, e.g. AutoMapper as an example....

posted @ Monday, August 22, 2011 8:53 PM | Feedback (4)
Does anyone actually do TDD?

Obviously, the answer is yes.  The person who first convinced me that “all that agile stuff” was really the direction to look towards (note, that’s “a direction to look towards”, not “embrace uncritically”, but I digress) practiced it.  Or at least, he always had his NUnit test runner up, and I could tell when he was too busy to chat by looking at the status of his tests (when they were all green, I figured he was probably goofing off). I ask the rhetorical question though based on the lead to one of Rob’s posts: “One thing I've...

posted @ Sunday, August 21, 2011 8:06 PM | Feedback (2)
Implementing multiple joins using EF

From Rob’s post, I decided to double-check how you would transform his ‘semi-complex query’ into EF syntax and see what the resulting SQL was.  His initial query was: var results - DynamicModel.Open(connectionString).Query(@"  SELECT Orders.OrderNumber, Categories.Name FROM Products  INNER JOIN Categories ON Categories.CategoryID = Products.CategoryID  INNER JOIN OrderItems ON OrderItems.ProductID = Products.ID  INNER JOIN Orders ON Orders.OrderID = OrderItems.OrderID  WHERE Orders.OrderDate > @0", DateTime.Now.AddYears(-1)); Now, I have no idea what database he was hitting against.  To make it easy, I decided to run it against our BFF Northwind, and so I had to reformulate it as follows:...

posted @ Tuesday, August 09, 2011 8:30 PM | Feedback (0)
VS Studio Debugging: The server committed a protocol violation

Thank goodness for that internet thing.  Because Mr. Kulov recorded his pain, I was able to recover from this issue quickly. If a process already owns port 80 and you try to debug in Visual Studio where you are trying to use your local IIS installation, you will get this error.  Like in Martin’s case, the offending application was Skype (which has an option in tools to use port 80 and 443, uncheck this) which was using the port.  If you don’t have Skype installed or running, run netstat –b to find the application causing the issue. Also,...

posted @ Sunday, August 07, 2011 6:05 PM | Feedback (0)
Why isn’t TFS more like ? Blame Visual Studio

Brian Harry, the Product Unit Manager for Team Foundation, has a post about some of the coming improvements to TFS 11.  It’s an interesting informational read for many reasons, but includes this: “A little background before I talk about the improvements we are making. When we designed TFS 2005, one of our design goals was to build a system that we could use for developing Visual Studio. VS is a VERY large code base. Last I checked, each branch was around 5 million files and I suspect it’s a good bit larger than that now. Your average developer needs...

posted @ Wednesday, August 03, 2011 7:58 PM | Feedback (0)
Full .NET Archive