Posts
808
Comments
668
Trackbacks
1
.NET
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 (4)
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 <insert alternative here>? 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)
Glitches when running Microsoft Expression Blend under Parallels on a Mac

Thankfully, others have experienced this as well, but suddenly I had a weird issue with trying to run Expression Blend from my Macbook Air, which hosts a Windows 7 installation under Parallels.  When I would run it, it would look like it was running under 4-bit graphics or something, and totally unusable. Apparently, it is due to how WPF apps (which I take Expression is, though I haven’t had a problem with Visual Studio 2010, which I think is a WPF app as well) work with hardware acceleration in this environment.  In any event, the fix is fairly simple. ...

posted @ Saturday, July 30, 2011 6:34 PM | Feedback (0)
Juneau CTP3 breaks Visual Studio 2010 Entity Model Designer

So, this is supposed to allow you to do “database design work for any SQL Server platform” within Visual Studio, blah blah blah. Unfortunately, it throws this error in Visual Studio 2010: Uninstalling Juneau doesn’t fix it, neither does reinstalling SP1, nor following some other things I’ve seen suggested on the InterWeb. Luckily I have a half dozen machines so it only happened on two of them (note to self: remember not to randomly start loading every CTP that looks interesting on multiple machines at once before determining if it hoses them). Still looking...

posted @ Sunday, July 24, 2011 7:37 PM | Feedback (1)
Full .NET Archive