Tag | FAIL Posts

For a few weeks now we have had some problems with BizTalk tracking data not being right in some testing environments on a large project. The link below is to a forum post which discusses our problems (thanks Thiago for your help troubleshooting this): http://forums.microsoft.com... The basic problem was that for some reason tracking data seemed to be backing up in the messagebox and not getting through to the Tracking Database. We went through all ...
*Moved to: Unlikely bloggers…I always like to see people for whom it is traditionally unlikely to blog to start contributing to that big knowledgebase in the either that is the blogosphere. I would like to call attention to Eric McCarthy who started blogging today and call out to all other helpdesk Hero’s to join the fray… Technorati Tags: Personal Fail *Moved to: Unlikely bloggers…Read more...Follow my new blog on http://blog.hinshelwood.com ...
A blog that provides details but not a solution which compiles and installs is not very helpful as there is just too much going on and assumptions about the knowledge of the reader are impossible to make! I have tried to follow many step by step tutorials and had the final product fail because of missing steps or my understanding of the steps! If you add this solution, you must activate the feature stapler at the site collection level prior to creating a new site. If you create a new site collection ...
I pulled some old source code off the shelf recently, dusted it off and started modifying it. Okay, that was my first mistake… I really should have tested it first but that actually would not have helped this time. When the system booted up, it successfully loaded drivers and then when it came to loading Explorer.exe all heck broke loose. Sometime the desktop would appear and other times it would not. When the desktop would appear, GWES would data abort. The system was a mess, and needed to be fixed. ...
You may be surprised to find that classes are serialized by WCF without any [DataContract] attribute attached to them. I certainly was. When WCF came out, there was much fanfare of the new, improved, superior WCF serializer (justified IMHO). The main policy sizzle was that unlike the [Serializable] marking a POCO object and then [NonSerialized] attribute marking specific fields (opt-out), WCF will now use "opt-in": Only properties specifically decorated will be serialized. This serialization policy ...
When testing, I find that it is important to be cognizant of what you’re testing. I’ve seen (and done) tests where I was using my IoC container to inject a dependency. You may think, “That’s the way it will work in the real world.” The problem is, it may have nothing to do with the System Under Test (SUT). So, you’re test might fail because something went wrong with your IoC container or configuration and have nothing to do with your SUT failing at all. The important thing to remember is test what ...
I've seen a few questions in the forums where the poster wants the build to fail for certain projects but not others. This can be accomplished through metadata and item batching. Here is the item group that defines the projects. <ItemGroup> <Projects Include="$(MSBuildProjectDi... <Group>Build</Grou... <Title>Data Access</Title> <Description>Data Access Layer</Description> <ContinueOnError>Fals... ...
Here we are at the second week's task for the Manhattan Project: switching the user's database to MSSQL instead of SQLite. I'll be honest, there weren't any valuable resources I found for assistance in the creation of this tutorial. Mostly it was a combination of Try / Fail and guessing based on what I saw in the code for the MSSQL dll in the project. I might say that there weren't resources, but what I mostly mean is no tutorial. There are some .sql files to help get the database started, but that's ...
I'm about to set up a new website, powered by DotNetNuke (my favourite CMS at the moment, mainly because it's free), and I want to install a Counter-Strike game server onto the same machine. I also want a little module that will show visitors to my site how many people are logged onto the CS server and some basic stats. Sounds simple right? The problem is that when Counter-Strike server is installed, the database name is generated at random. So I can't create a connection string that points to a ...
Gael Fraiteur reported differing behavior with the Exists condition in MSBuild 3.5, which has been verified to be a bug by Microsoft. Here is the setup. Have one file import a file from a different folder. Have that imported file import another relative to that file's path. Add a condition to check if the file exists to the Import task. File 1 (foo.proj): <Project DefaultTargets="Build" xmlns="http://schemas.micro... <Import Project="..\Bar\bar.targets" /> ...
Everything worked fine the last time I gave my MSBuild presentation. There were no changes to my files, so imagine my surprise when I load things up to practice today only to be met by failures. "C:\Demos\Introducing MSBuild\AccountManager\exam... (default target) (1) -> "C:\Demos\Introducing MSBuild\AccountManager\Acco... (default target) (2) -> (ValidateSolutionConfiguration target) -> C:\Demos\Introducing MSBuild\AccountManager\Acco... error ...
*Moved to: A problem with Diarist 2!{Rant} I think that it would be good to remove the drop down to select your blog from the main blog writing page. Read more...Follow my new blog on http://blog.hinshelwood.com ...
I recently went to check the configuration of my SQL Server 2008 Reporting Services instance (which is a named instance called "SQL08") and it came up with a "connect" dialog and when I clicked on the "find" button I got an "invalid namespace" error. I found a few threads on the MSDN forums about this and eventually a Microsoft guy came up with a solution. The post at the end of this thread http://forums.microsoft.com... had the solution which worked for ...
Jeff Atwood talks about what he considers the “Golden Rule” of source control: Check in early, check in often. For Jeff, it seems, going more than 1 day without checking in code is too long and will cause integration headaches down the road. I completely agree with this sentiment, and the idea of not going dark, up to a point. Where Jeff's arguments start to fail is long-running development tasks that have large (or fundamental) impact on an existing code-base, particularly one that is heavily used. ...
Many of you use timestamp in LINQ to SQL because it's easier for us figure out if an object is new or not. This is specially useful when we need to track the state of objects in disconnected/N-tier scenarios. An important thing to note, though, is that the timestamp column is mapped as a System.Data.Linq.Binary property in the LINQ generated object so it is part of the XML serialization when you use the LINQ to SQL objects in Web Services/WCF services. The real problem is that System.Data.Linq.Binary ...
Every now and then I have a need to call a generic method, but I can't quite call it generically. Usually that particular situation involves needing to call a generic method, and I have the type for that generic method. There are various reasons/examples of why anyone would get to this point, in my case we have an infrastructure code that can deal with objects generically, but because it is infrastructure code, we can't have it refer to the actual entity classes that are in the higher layer/tier. ...
Ran into a serialization problem with WCF the other day that was rather interesting to find and fix. It wasn't a problem with WCF, in the end, but rather with what we were telling WCF to do. So we have some complex entities that we're shoving through the serialization layer. We also send through lists of these entities, and the list may have references to itself. To keep our list sizes small, we've implemented a DataContractSerializerOpera... where when we create the data serializer, we ...
You just created a new Stream Interface driver, but it isn’t being loaded. I hear this a lot and thought it would be good to look into the possible causes. Hopefully, if you are here you have already reviewed Windows CE: A Stream Interface Driver Shell which provides a very basic driver an all of code and other files to demonstrate a driver that actually loads. The first things to check: 1. Is the driver in you OS image? Check to see that it is in %_FLATRELEASEDIR%\ce.bib. 2. Do all of the functions ...
How old were you when you started programming? Well, most people don't know that I am still kind of new to computers. I grew up poor and my first experience with computers was in high school (Apple IIs and Craptastic Macs). I almost failed keyboarding class in 7th grade (required a minimum of 27 WPM with less than 4 errors/minute). I actually didn't own a computer until I was in my second semester of college. It was a Gateway and it broke so much I got good at fixing computers. That was 1998. I have ...
This post is part of a series called Ignite Your Life. For background info on the series, please refer to previous posts on introducing the series and The 5 R's. In the last two installments of this series we looked at freeing ourselves from the Cult of Personality: freeing our importance, self worth, and self image from the grip of others. We also talked about using your illusion, and creating a self portrait of who you are and who you will become (lots of great discussion in the comments section, ...
This will be the first in a series to document my organization's adoption of an agile development process (specifically Extreme Programming). I want to document this process for three main reasons: 1. Basic posterity. I may want to look back on this process and reflect on the mistakes we made. 2. So that others can learn from our mistakes. 3. So that others can possibly help keep me from making their mistakes. Seems like a lot of mistakes being made in agile development. That's actually kind of the ...
Again, maybe old news but I thought I would post something interesting that happened during a recent upgrade from SPS 2003 to MOSS. SharePoint is very finicky when it comes to database transactions and sizing during the gradual upgrade process. Here are a couple of things to note: 1. Make sure you have enough size - When upgrading a site that had about 150GB in content, we needed about 500GB in space to complete the migration. 2. Make sure you know where your _Pair DB's Are - SharePoint for some ...
*THIS POST HAS SPOILERS!!! If you haven’t seen the movie and don’t want to have any of the plot told to you, stop reading now! Go check out whatever Chris Williams is doing on his blog. For those of you wanting to read this entry, scroll down. No seriously, there are spoilers. Last chance. The storyline in this movie was deceiving. This wasn’t about Batman vs. the Joker…this wasn’t about Gotham trying to divert a criminal mastermind. No, this was a movie about terrorism. The Joker himself was labeled ...
In one of my previous article (October 2006) on this topic , I’ve shown how to use the Exists() method of a list in order to find an object in the list that matched a certain value. However there I also mentioned about one disadvantage “the value to be checked needs to be more or less predetermined (hardcoded) as the delegate method does not take any other parameters.” Therefor it meant that an Exists method can only find an object in a lIst , if it contained on perdetermined serach condition, it ...
When Win32 API functions fail it is possible to learn more about the cause of the error by calling GetLastError(). GetLastError() returns an error number that is set by the API by calling SetLastError(). It is important to read the documentation before using GetLastError() to ensure that the API actually sets a error, if it doesn’t GetLastError() will happily return an error number set by a different function call. Of course the next step is to figure out what that number means. It is important to ...
Back in March of '07 I blogged about a great book I read called The 5 Dysfunctions of a Team. Looking back I realize that blog post was supposed to be the first of a series that went in depth to each of the Dysfunctions. I might actually finish off that series, but regardless of what I blog about you should pick it up. Great book for organizations to help evaluate their team...remember: nobody is perfect and there's always room for improvement. This all leads me to another recommendation. I recently ...

Read a great article on how to make agile fail today.  Very entertaining and educational!

Technorati Tags:
A common problem that developers run into is that when they change the build from debug to release, their application or dll no longer works, or doesn’t run at all. Here are some of the causes that I can think of: 1. The application or driver wasn’t actually in the OS image. This happens a lot because of a handy feature of KITL and the CEShell, which is the Release folder. The Release folder is a folder on the device which is linked to the _FLATRELEASEDIR on your development workstation. When a dll ...
We are working through a beta release of an internal project so I'm getting a chance to solve many different problems right now. Today I had to update a report that has an issue where its count at the bottom was displaying the total number or records instead of just those that were visible. Basically this is a report of applicants who have passed all tests during a job recruitment process. If they fail any step then they shouldn't show on the list. I did some tricks with the data of the report to ...
Prior to Windows CE 5.0, you could only have up to 10 instances of a driver with the same prefix, like COM. So you could only CreateFile on COM0: through COM9:. Starting with Windows CE 5.0, there is support for BUS mount points ($bus\USBFN_1_0) and device mount points ($device\COM8) which can be used to open a handle to a driver. Platform Builder Help documents these in Device File Names, which isn’t so easy to find. I created a little test to show how to use the different names: void OpenADriver( ...
Agility Starts With Sales How many of us have had a sales rep sell us something we didn't need as a solution for a problem we needed solved and solved well. Everybody? That's what I thought. Often times, we as consumers get sold things that unnecessarily do more than just meet our basic need. Other times, we get told a product can do something when it can't. We want marketing to be enthusiastic about our software, but there are limits to everything. Better make sure marketing has actually used the ...
With the increase in CPU speeds more data can be processed per unit time, requiring more data to be transferred to or from storage devices which are increasingly unable to meet this demand. In spite of this, it should be noted that there are more sophisticated proof procedures that will not loop with transitive relation definitions, according to Practical Evidence. The numeric derivation of f will never deliver the function g on source form. Many teams have gotten hung up in pursuit of documentation ...
Recently a friend asked me how you might create a Windows Forms application that only allows a single instance per computer. A print driver might make use of this functionality, for example, to launch a print job management dialog whenever a document prints. Never having needed this sort of functionality before, my initial answer wasn't very helpful. But being both curious and disinclined to back down from a technical challenge, I just had to figure this one out. As I was looking for an inter-process ...
Using the VS2008 unit testing framework, if you want to check for an expected exception, sometimes your test will pass because the exception was raised by another line of code - after the line you were specifically trying to test. To resolve this you have to manually check for the expected exception - using a try-catch block. However there is a catch (excuse the pun).... Microsoft.VisualStudio.Test... will not fail when types are different as long as the actual ...
If you have the requirement to make your website accessible, unless you were given that requirement before you began the project, you will probably be converting an existing site. This was my task. After a lot of research, some work with blind users, and working with JAWS myself, here are the recommendations that I am presenting to our development team to make our ASP.NET 2.0 application more accessible. In another post, I will give some more detail about some of the specific solutions we developed. ...
Written by: Michael Stephenson (http://geekswithblogs.net/... Problem Definition It is a common design decision on BizTalk projects when you are implementing your solution and you find that you need to store some custom configuration. The challenge is where to store it. For some BizTalk components such as Adapters and Pipelines you can take advantage of the configuration meta data stored in SSO to handle this. This is the proper approach for these components and you have the BizTalk ...
Avoid Much Talk I wrote about Resharper 4 performance improvements in an earlier blog post today showing my VS Color Scheme including use of R# nightly builds. My friend Mohamed Tayseer pointed me out that Resharper 4 BETA was released yesterday. If you already know Resharper, skip the blah blah blah talk and get to the download. Resharper, AKA R#, Who ??? Resharper used to be a must-have add-in for Visual Studio. It completes the features existing in Visual Studio like intellisense (not just smarter ...
*Moved to: SharePoint Solutions Rant<Rant> There needs to be a way to easily build MOSS Solutions in Visual Studio. I know that there are a bunch of bits and pieces available form Microsoft and third parties, but I want an end to end solution.Read more...Follow my new blog on http://blog.hinshelwood.com ...
The DataContext is an object representation of the database. It is responsible for all the operations performed on the database. One of the biggest issues when working with LINQ to SQL is the life time of an object when part of the DataContext. The DataContext is designed in a way that it will only handle the objects that were created by it. Although you can attach objects of one DataContext to a different DataContext but when you do this all hell breaks loose. Let's take a look at the example below ...
Written by: Michael Stephenson (http://geekswithblogs.net/... The Scenario This is a common scenario with potential BizTalk solutions. You are implementing a process which needs to be triggered at specific points. The problem you have is that BizTalk doesn’t really do scheduling. There are service window features in BizTalk where you can control when messages can be received or sent, however this depends on a message being already there. What you really want is a trigger to start the ...
I work on a lot of different Windows CE projects. Some of them have a display, while others do not. Sometimes I just have a board laying on my desk with power and a debug serial connection. So I thought it would be handy to have a simple little app that I could use for testing my drivers. Given my constraints, the debug port would be useful for presenting the user interface. Sure I could use a serial driver for this, but would mean using two serial ports, which I don't always have available. Of course ...
Last month was a busy month for me. We deployed the first version (beta) of the product I have been working on over the last couple of months. Meeting the deadline with all of the promised features (almost) was critical. However, when you fix the time line and fix the feature set, then something else has got to give. You guessed it, quality. Quality is not just a concern over failures. There is a level of quality in your successes as well. So far, the feedback on the product has been very positive, ...
I often have found that working with small, immutable objects can be very helpful. First off, they are extremely easy to test, typically not needing any sort of mocking involved. Second, due to their immutable state, you can easily override Equals to use to your advantage. The advantage I'll talk about today is the ability to introduce a new test seam that doesn't depend upon inversion of control to be able to test an object. Suppose I'm writing an object that will represent a query. The query should ...
Mike Cohn, founder of Mountain Goat Software and long-time vocal proponent of Scrum is coming to Austin next month as part of the Agile Austin Distinguished Speaker Series. Mike is the author of Agile Estimating and Planning and User Stories Applied for Agile Software Development, among other development/programming books. He's served as technology executive and helped with the adoption of agile processes at various companies. If you are working on agile teams right now or are just interested in ...
Given the time (nearly 2 days!) it's taken me to get to the bottom of this I thought it worthy of a blog post hopefully saving someone the hours of frustration i've just been through. I know my FTP code works very well, around 50 different customer sites with very few support calls confirm this, on this one installation however my xml documents would not arrive at the web server. My logging code confirmed that we were connecting to the server ok, successfully managing to cwd to the appropriate directory ...
Note: For users of NUnit, version 2.5 will have an Assert.Throws method. This version is currently available in alpha status. On the ALT.NET mailing list, there was a discussion about using the [ExpectedException] attribute in NUnit. Most people have come to figure out that using the ExpectedException attribute on your tests has disadvantages. First, your test will not be able to pinpoint exactly where the exception is supposed to occur. You could get false negatives for having the exception thrown ...
So in this post I will revisit a post I wrote a while back TFS Server Administrators (when you can't be a Windows server administrator). Is it possible to manage a TFS instance without being a windows administrator? Well I'm aware of one thing right now I can't do as a regular application administrator. There are probably others but we are able to be pretty affective by following the steps in this and the previous post. I wrote the first post about a year and half ago and after going through many ...
In this post I’ll try to talk a little bit about how you can get msmq work and sql 2005 work to go together in a transactional context. I think it’s fair to say none of the information is new, but I did a bit of digging around the net to find it, so maybe having it all in one place would be of help. Any thoughts or suggestions are more than welcome and I’d be happy to update the post for posterity J So… …what do you do if you need to: a) Receive a message from a MessageQueue b) Based on that message, ...
Introduction I've been posting a lot about Silverlight lately, but hey, here is a WPF post, and about WPF integration, no less. Note: To fully understand this article, you should have a basic understanding of WPF, styles and templates, triggers, etc... Read the rest of this entry » ...
Recently, I came across a situation where my WebMethod was accessing the Session object. This particular WebMethod was used extensively by the application so I decided to write unit test for it. Here is a simple example of a webmethod. [WebMethod(EnableSession=tr... public int foo() { int userId = Convert.ToInt32(HttpContext... return userId; } First of all I don't really think that using HttpContext inside a WebMethod is a good idea. One of the main purpose of using web ...