Tag | FAIL Posts

The Development Fabric has playing Boon or Bane for quite some time with us Azure developers. While the elevated privileges it runs under is still an unresolved issue, with a few things believed to work under the DevFab would inevitably fail in the cloud. While MS is still working on a better DevFab. We have other issues to take care of. Oftentimes we are faced with a dead Development Fabric and would love our code to deal with it. Its time we tamed it. The Windows Azure SDK contains the ServiceHosting ...
I recently developed a WCF solution with SharePoint that once I deployed cause so many issues with memory leak that it service was shutting down. If you are having issues with a WCF service that hits the SharePoint object model and it is unexpectedly shutting down, most likely it is because memory leaks. I will not write about simple memory leaks since there are lots of great blogs which cover the topic really well. I have had issues with LINQ and SharePoint and I wrote several .Net method extensions ...
Just ran into this one. The following is the code I was working with:$.ajax({ type: "GET", url: 'http://services.somewhere.... data: { 'param1':'something', 'param2': 'somethingElse' }, cache: false, dataType: 'json', success: function(view) { alert('success'); }, error: function(xhr, ajaxOptions, thrownError) { alert(xhr.status); alert(xhr.responseText); alert(xhr.statusText); } }); This worked in IE 8, but not FF 3.5. The strange part, though, was that the xhr object in my error function ...
Recently I was working on a hardware architecture project for a client. The final architecture for one of the websites consisted of 3 web servers hosting windows 2008 and IIS 7 being load balanced. When setting up the websites we decided to use the Shared Configuration hosting built into IIS7. Shared configuration allows you to deploy and propagate IIS configuration changes to all servers by changing one configuration file. This post explains it in more detail: http://learn.iis.net/page.a... ...
In an astonishing interview, the Kop boss has confessed for the first time that Fernando Torres, Steven Gerrard, Javier Mascherano and Pepe Reina may have to be sacrificed if the Reds fail to claim the top-four place that will secure the club financially. Benitez said that: He may not be able to reject a big-money offer for any of his star performers without the consent of owners Tom Hicks and George Gillett. The futures of his highly-coveted players are likely to hinge on Liverpool qualifying for ...
Well, another year, and heck …. even another decade and 2010 is going to be such an important year, or kick-off year for technology that I thought I would take a stab at making some technology predictions on what I think might happen this year. Technology always has these “next thing” items coming forward that it is really hard to even really know what is for real. Technologies might be quite good – but it will also take additional things like community ground swell or true behind-the-scenes business ...
Suppose you have to write a test to verify that an edit form will throw a certain exception under certain conditions. If you don't use VB 9 features, you might end up with this effusion of verbosity: Try editForm.Save(MyDataContext) Throw New AssertFailedException("Save should have thrown an exception") Catch ex As Exception If Not (ex.GetType().Equals(GetTyp... Then Dim errorMessage = String.Format("Save should should have thrown BusinessOperationException; threw {0} ...
It's a form of procrastination. I know it, but seem unable to do anything about it. It involves doing everything imaginable around the periphery of a task, whilst avoiding the task itself. For me, one manifestation of this is writing blog posts. I'll get an idea, fail to devote the time to developing it, and shelve it until it's irrelevant. When it comes to devoting time to the peripheral activities, I'll jump at it. Evaluating a new blog engine, messing with the skins, checking out hosting services ...
It's been a while since I built a windows service and I forgot how annoying it is having to install and uninstall it using installUtil.exe from the command line every time I build it. Automating this task makes building and running windows services projects in Visual Studio much more fluent. In Visual Studio 2008 right click on your windows services project and choose properties from the context menu to open the properties window. On the compile tab, at the bottom right click the Build Events... ...
News Newell Rubbermaid - Newell Rubbermaid Expects to Save $1.5 Million Managing Brand Web Sites Over Two Years: http://www.microsoft.com/ca... BizTalk Server 2009 R2 Announced at the Microsoft PDC Conference: http://microsoftpdc.com/Ses... Windows AppFabric announced at the Microsoft PDC Conference: http://microsoftpdc.com/Ses... Documents New Features in BizTalk Server 2006 R2 SP1 (pre-release): http://go.microsoft.com/fwl... ...
This series of posts discusses the use of an Aspect-oriented programming approach for implementing the validation part of a business domain, using the ValidationAspects aspect library, that sits on top of the PostSharp aspect weaver and allows for placing Design by Contract - style attributes on properties and method arguments, as well as for easy runtime validation of an object's state. This is the third post of a three-part series that discusses the use of these validation aspects throughout the ...
Let's face it, it needed a rename. Mitch.Web just lacks everything in terms of marketing, so I've re-branded my (currently error logging :P) framework to "The Evil Little Developer's Toolbox" in game with my EvilDev theme. I've also made advancements (not guaranteed to work yet) on my error logging framework, mostly in terms of a new Services Project, and the Logging Service. The logging service, is a WCF Service, designed to log errors to a database. The idea behind it, well, I generally focus my ...
After the first two tutorial steps were published on this blog I received many requests about using images inside a Silverlight for Windows Embedded application. This is the topic of this post. To be able to load and use image files (jpegs,bmps,gifs) inside your application you should include the imaging library components in your OSDesign. Those component are not included automatically when you add the XAML runtime (the runtime can run also without the imaging components, it will simply not load ...
Ok, I’ve been bitten twice in the past week on this. If you have InfoPath 2010 Beta installed and you’ve also got SharePoint 2007 running, at least with the latest SP2 and October CU, you run into an issue that surfaces in the logs as follows One or more types failed to load. Please refer to the upgrade log for more details When you pull that log apart, you’ll see that it’s attempting to load a few types such as Microsoft.Office.InfoPath.S... from assembly 'Microsoft.Office.InfoPath.... ...
When I started using SQLExpress 2005, everything works on my development machine – however when I wanted to access the database from another machine (trying to access the sqlexpress database remotely) I was not successful. I discovered the solution way back then, also through Google searches, which still yield a valid result. However, every now and then my peers would ask me this same question again. Thus I’m creating this blog so I can forward them to this page (instead of talking about it); it’ll ...
Every now and then, I end up writing and re-writing the same code (or very, very similar) to achieve a functionality that I’ve had before. Sometimes I can remember where I wrote it, so I can just copy and paste. At other times, I have to redo it again since I forgot where it was. So I’d like to put it up on my blog so I have access to it. If anyone else gets to see it and can use it, so much the better for everyone. Of course, I’d also accept criticism to the code too . So, this is my first one; ...
Back Links LINQ Overview, part zero LINQ Overview, part one (Extension Methods) LINQ Overview, part two (Lambda Expressions) Note: I realize it has been a really long time since I've posted anything. It is both exciting and humbling that I continue to receive such positive feedback on these articles. In fact, that is why I am trying to put in the effort and finish off this series before moving on to more recent topics. This nomad has been on some interesting journeys these past months, and I am really ...
WCF REST Starter Kit Preview 2 contains not only tools for creating REST services. It include rich set of client tools, that allow to do HTTP-requests and process service response in more convenient way. I create small overview of it basic features. We’ll create a simple WPF desktop client for Yahoo Shopping Web Services. Our client sill search products by the keyword. Details of Search API is available here, but information about GET-request format and service URI is enough. For example, if we want ...
Someone that I respect in software development recommended this book to me. Pragramatic Thinking & Learning by Andy Hunt. I got it in the mail last evening and have already read half of it. He talks about the Dreyfus Model Stages. These stages apply to any profession and were first implemented in the early 1980s with nurses. He says skills in a profession are distributed in 5 levels from lowest to highest: Novice, Advanced Beginner, Competent, Proficient, and Expert. Most people don't get past ...
While working on a utility project today, I stumbled upon wanting to embed an executable inside another executable. Sounds fun doesn't it? And what is even more fun is to be able to launch the embedded exe! Basically, here's how it works. You embed Foo.exe inside Bar.exe. And by embed I mean, add Foo.exe as a resource in Bar.exe. And then from Bar.exe's code, you can launch Foo.exe using CreateProcess(). So before answering the "Why?" lets answer the "How?" Rename Foo.exe to Foo.txt. We do this just ...
Today (technically yesterday, since it’s 3:26 AM already while I’m starting this), Mr. Adam Mohamed Meligy finally arrived home, after staying 9.5 days in nursery. This –dear audience- given Mr. Adam arrived to our world only in October 5, 2009, a date that the entire world will (sooner or later) always remember! Mr. Adam is now taking a personal cover, pretending to be a normal baby, while he is pretty professional, he cannot sometimes hide his special natures, being relatively quiet compared to ...
Few minutes ago a colleague and friend asked me about some problem he was having with ASP.NET themes. He was using a theme and including a CSS file in it, the CSS file was linked in the generated HTML but clearly it was not applied. Putting the URL of the CSS file in the browser address bar would return an empty result in Firefox, and a crappy DOCTYPE,HTML,HEAD,BODY tags in IE. The same website works normally with other developers running Windows XP or Windows 7. Going further to the problem, I tried ...
On Monday I presented at the St. Louis .NET User Group, and the topic was ‘What’s new in VS2010 and .NET 4.0 Framework’. Within the whirlwind look at all the new and cool stuff coming in the near future, the subject of Covariance and Contravariance support was discussed. Given the time constraint I only spent 3-4 minutes at it. I alluded to the group that the concept of Covariance/Contravariance is rather hard to understand, because it is not as intuitive as it could be; I just asked them to trust ...
Okay, so recently I was working on a new suggestion for my client. It was a fairly simple request; create a snapshot of data to be used in monthly calculations, with the option to regenerate the snapshot at a later time. The snapshot was easy. I thought regenerating the snapshot would be easy too, but somehow I found a way to make it hard. The first mistake I made was not writing a test first. Really this had a lot to do with laziness. The data that I am capturing is only available via a view into ...
A few days ago, I talked about a problem, that using an ORM like NHibernate could bring, when there's inheritance and lazy loading around (please refer to this post). Unfortunately, the example in this post turned out to be somewhat unclear. So here's a short follow-up with another example, that hopefully underpins my arguments a bit more precisely. The original example gave the impression that the problem occurs only when we would try to typecast around in some way or the other, which is in most ...
Today I ran into this problem when setting up the SQL Server Management Tools for SQL Server 2005. Like any good little code slinger, I googled (if you are particular to Microsoft, you can read that as “binged”) to see who’s had the problem, because it’s no news that when you aren’t on the crest of the tech wave that someone else has had the same issue. In particular, MSXML 6 would fail and the log would have a message similar to: MSI (s) (40:58) [22:16:00:859]: MainEngineThread is returning 1605 ...
I started to play with Moq a few weeks back under the guise of Project NEric and then… real work got in the way. However I am today revisiting mocking as I am reviewing a potential article for the Flash on, let me think, mocking. The article touches on Mocking vs Stubs which is handy, as “back in the day” my team relied heavily on stubs (clever stubs at that) and I was confused about the differences between stubbing and mocking. I’m still not 100% there but I found the following useful. Brian Guthrie ...
Running unit tests after a successful build with Team Build 2008 can be a tricky thing.... especially when you test your localization using satellite assemblies. Out of the box this cannot be done in Team Build 2008, you need to tweak some files to get it to work properly, but which ones??!! This article should help you solve similar problems in your build environment. I had this problem where all localization tests would work on my developer’s workstations but would systematically fail on the build ...

We already talked often about providing design time data to your designers in Windows Presentation Foundation and in Silverlight, thus enabling them to work visually in design editors such as Expression Blend or the Visual Studio designer (codenamed Cider).

Read the rest of this entry »

I hear this remark a lot. Whenever I show Surface to people there’s always one in the group who, after about 10 minutes, comments that Surface is just a big IPhone or a flat touch screen. Of course, it’s not. First of all, you can’t use a Surface unit out of the box to make phone calls. Second, the Surface unit is hardly portable where the IPhone most definitely is. To these commentators, Surface is like an IPhone but with less features. Again, of course, it’s not. Usually I can convince these skeptics ...
In large projects you may have have a big number of enumerations in your domain code that have all to be kept in sync with some corresponding database stuff. Ensuring this correspondence is boring, repetitive and error-prone. Because it is such a tedious task, chances are that you don't check this at all, opening the door for serious runtime failures - especially when the project is nearing the deadline and things generally tend to become a bit more chaotic. I love enums. I use them wherever possible. ...
I am writing this with a sense of defeat. In my post about monitoring for registry changes (see Windows CE: Monitor for Registry Changes) I showed how to monitor for registry changes using CeFindFirstRegChange() and CeFindNextRegChange() but left the code for determining what changed empty. Honestly, I gave it a shot with the new function CeRegGetNotificationInfo() available in Windows CE 6.0. I simply cannot get it to work, and my searching on the WEB didn’t turn up anything that tells me that it ...
I'd like to compare the java language to .net as I'm experiencing it. First of all, I'd like to point out that the differences are less than the similarities. Purely seen from a syntax point there really are no differences. Except of course if you're used to .net 3.5. This is irritating at first, but after a while you're just resigned to it. Take the simple properties we're so used to in .net Compare these two identical pieces of code: java: private int counter; public int getCounter(){ return counter; ...
It's been years now that unit testing frameworks and tools have grabbed our attention, made their way into our favorite IDE and sparked yet another wave of seemingly endless "my framework is better than yours" wars. And then there are the principal wars of whether TDD is better than Test After Development. And most excitingly the automated testing tools etc. Oh, and let's not forget mocks! So we have all the tools we need – right? Well, kind of, no. I recently attended a talk by Llewellyn Falco and ...
Introduction: In this post, I will explain you how can we write a unit test in c#. It is a basic guideline for those who wants a quick start. Unit testing is an integral part of any software that is developed. It is an advantage which most of us are either not aware of or we are neglecting it. It actually helps a developer to write error free code. To write unit test, we will first install a unit-testing framework. About Unit-Testing Framework: Well, Unit-Testing Frameworks are useful to simplify ...
With pride we announce that the next meeting of the Dutch Surface User Group will have Dr. Neil Roodyn as a speaker! This is the abstract of his talk: Surface has sex appeal, people are attracted to Surface as a sexy new technology. The development tools make it easy to build Surface applications and yet so many Surface applications fail to deliver the true value of Surface. In this session Dr. Neil will explore some of the things you can do to enable your Surface applications to deliver more than ...
I recently heard a presentation from David Chappell talking about how SOA is failing in many organizations. Below is not a summary of what he talked about but my own new thoughts on a subject I am still learning much about while listening to his presentation..... I have to give it to David Chappell. He has a way of bringing together concepts in a very simple and engaging way. At a recent architecture conference ( video http://channel9.msdn.com/po... ...
Incorporating the jQuery Grid With ASP.NET MVC Scenario: You have an ASP.NET MVC application and don't want to custom build smart controls like the ASP.NET GridView, ListView, etc, that support sorting and paging, as well as filtering and searching for data, and all of this using Ajax. Solution: The jQuery Grid plug-in. What tools/plug-ins do I need? jQuery version 1.3 and up jqGrid version 3 and up (this post references version 3.4.4) A strong cup of coffee In the past you had to also add the jQuery ...
Bing is a new search engine from Microsoft that has been released exactly one month ago. During this month it has created a lot of buzz. Bing is advertised by Microsoft to be a “Decision Engine” and it seems like there is a general feel, or at least enquiry, about bing constituting serious competition to Google search. After reading Scott Hanselman’s recent blog post comparing Lenovo’s ThinkPad W700 with the W500, I decided to give bing a little try. Google VS. Bing I decided to use google-vs-bing.com ...
BDUF was especially interesting when I heard Peter Provost and Billy Hollis speak on this topic during their presentations at the PnP Summit last year. Both made points that I could definitely relate to. You see the (embarrassing) thing about this post is that I didn’t know what BDUF was, and was living it everyday, but waterfall was supposed to be OK? I never heard anyone say BDUF until I hooked up with .NET a few years ago (I wrote my first line in December of 2003), even having done a few tours ...
If the first day of DevTeach is any indication I’m going to be a wreck by the end of the week thanks to a lack of sleep and copious amounts of double quarter pounders with cheese at late night feedings. Flew in yesterday morning pretty early and got to the hotel at like 9ish. Luckily they had a room available and got me into my room. Four Seasons FTW! After meeting up with the usual suspects for breakfast (Donald, Rob, Gary, and my Winnipeg compadre Dylan) and some hang time, we headed to Microsoft’s ...
In Part 1 we create a project. In Part 2 we set up the Build Configuration. This time we will Run the build. Run the Build Project 1. Click on Projects. 2. You can see that the new project has not run before due to the question mark. 3. Let’s kick it off. Click {Run |…}. 4. The page refreshes automatically to show that we are running. 5. NOTE: The first build may fail due to folder cleaning that is happening at the same time. You will see a note in the build log that it is deleting items at the same ...
If you don't care about retaining all the history of one of the repositories, you can just create a new directory under one project's repository, then import the other. If you care about retaining the history of both, then you can use 'svnadmin dump' to dump one repository, and 'svnadmin load' to load it into the other repository. The revision numbers will be off, but you'll still have the history. The above quote is from the Subversion FAQ at Tigris.org. After reading it, one might get the impression ...
Recently, I was trouble shooting an error for my friend. Despite having all the necessary framework and service packs installed, this error “Could not load file or assembly 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934... or one of its dependencies. The module was expected to contain an assembly manifest.” was surfacing, every time we tried connecting to a SQL Server instance using SQL Server Management Studio. At first, I thought the issue must be with SQL ...
So now you are rolling with UppercuT, but you don’t yet have Continuous Integration (CI). You can make that happen with CruiseControl.NET (or any other CI server like TeamCity or Hudson). This article is geared to CruiseControl.NET (CC.NET), although there will be future articles on other CI servers. This is specifically geared towards CC.NET 1.4 and above, because it takes advantage of preprocessors. First a few sideline notifications and then we'll get right into it. UppercuT Compatibility with ...
Uhh What? DevPath is an environment variable that allows you specify global directories which are searched just like GAC. If you ever had the urge to load dlls from your application from subdirectories you need a probing element in your app.config which allows exactly that. The only problem with that is that you cannot escape from your application root directory. When you try to load something from ..\Centralbin it is ignored. In that cases you need to use the GAC if you like it or not. Since DevPath ...
[Source: http://geekswithblogs.net/E... If you have a solution with secure HTTPS endpoints but no suitable certificate for development and test environments, you can self-certify using a combination of IIS 6 Resource Kit tools, and manual steps. Chris Adams gives a good overview in this post, but there are a couple of additional things to consider in a distributed environment, which I'll cover in this walkthrough. The walkthrough is based on the following infrastructure: - where XYZ-FRONTEND ...
The scenario: You have 2 Entity Models, and you need to call operations on the ObjectContext of each of them, the operations should be atomic, in that either both operations should succeed or fail so that your databases are consistent. This is fairly straightforward to accomplish using a TransactionScope. ObjectServices is smart enough to detect if the ObjectContext is in a surrounding TransactionScope and if so,use that scope. NOTE:If a scope is not specified, then ObjectContext by default creates ...
Well, I was recently laid off from my Job of 5 years at Sage Software.. Sage has gone through 2 or 3 rounds of layoffs so far, the latest letting go of 500 employees in North America.. ..."To help us better bring our costs in line with revenues, we are reducing staff by about 500 positions across the company, which includes employees as well as open positions that are being closed permanently. " So, I've decided to take the opportunity to upgrade my Microsoft Certifications to the latest and greatest.. ...
*Moved to: Fail a build if tests failIt took me longer than I thought it would to find this, but is you are using TFS2008 and you want builds to fail if any of the tests fail then you can add the following to the tests properties group in your build project (TFSBuild.prof) <PropertyGroup> <!-- TEST ARGUMENTS If the RunTest property is set to true, then particular tests within a metadata file or test container may be specified here. This is equivalent to the /test switch on mstest.exe. <TestNames>BVT;HighPr... ...