-
I just read this article by DigiMortal about List<T>.ForEach and exceptions . His assumption was that if an exception occurs while processing one of the items that the next item would still be processed which is not that case. Maybe he was aware of this (well he is now!) and somebody did not add...
-
We developed an ASP.NET page (A) to be wrapped in an existing PHP page (B) using an inline wrapper. After a few days in which both pages displayed nicely, our page (A) suddenly got displayed twice inside the existing page (B). And even weirder was that the postbacks of the first occurrence didn...
-
StyleCop version 4.3 was released last tuesday. A short summary of what version 4.3 brings us: Various bugfixes, including fixes for VS integration issues Rules documentation is included and integrated into VS "Show Error Help" New rules, see blogpost for the rules Branding change from Source...
-
A while back I created a little utility to upload files to MediaFire which is a file hosting service. MediaFire supports uploading of files up to 100 MB in a free account with unlimited storage, and is in my opinion one of the best free online storage possibilities out there. It has galleries for pictures...
-
The .NET Framework 3.5 Service Pack features new abstractions for working with data, smaller client profiles and performance updates to Windows Presentation Foundation (WPF). It will ship before the end of the summer, Microsoft said. In a July 31 meeting with SD Times, Shanku Niyogi, product unit manager...
-
It depends on the situation if I self-identify as a geek or not. Today, I thought it would be fine, so I signed up for the Geek Dinner organized by Scott Hanselman in Bellevue, WA . Quite a lot of people showed up. I went there with my colleague Erwin van der Valk . He was a Development Consultant, like...
-
When you want to implement a custom stsadm for SharePoint, all you realy have to do is implement the Microsoft.SharePoint.StsAdmin.ISPStsadmCommand interface. Because I develop on a machine with no SharePoint installed, I (only) copy the assemblies I need to develop locally. For the stsadm command I...
-
While writing a custom stsadm command for SharePoint (more on that in a future post) and having to do something based on the command the user typed in, I used ToLower( CultureInfo.InvariantCulture ) on the command string to be able to check without the hassle of differences in casing. When I ran code...
-
One of the posts that is being read quite frequently over here is HOWTO: Encode a password using MD5 in C# (or: howto calculate the MD5 hash for a string) . One of the (many) reactions to that post was from one Simucal, stating: Also, to the original poster, Rick van den Bosch... shame on you for using...
-
The situation I talked about in my previous post had one very big issue: LINQ sometimes just is too dynamic... ;) The fact that I changed the value for the Ranking property for each SpecificObject that got matched, made the primary LINQ query have a different outcome. LINQ uses lazy evaluation and because...
-
While developing an algorithm to match preferences to possibilities, I had to sort a generic list of a specific object type (SpecificObject). The first x objects would be matched, the rest would be excluded because of the number of available places. To determine the group of objects that would be matched...
-
After developing a custom Web Service to be hosted in SharePoint (based on this HowTo article on MSDN ) and deploying it on a testing environment, I got some entries in the EventLog over there, stating: " Unable to connect publishing custom string handler for output caching. IIS Instance Id is 'xxxxxxxxx'...
-
After extending a textbox with a NumberUpDownExtender, which comes with the AJAX Control Toolkit, I recieved the error "the number of fractional digits is out of range". This happened when debugging my web application and using the extender. When using the web app in non-debug mode, nothing...
-
While developing a web application for a friend of mine, I ran into a Visual Studio error message I hadn't seen before: Error connecting to undo manager of source file 'D:\Development\SomeWeb Application\Default.master.designer.cs'. The error occured whenever I tried to start the (web) application...
-
We probably all worked with dynamically generated controls on forms, ASP.NET pages or (user) controls. And I guess we've all written for-each statements to loop through the ControlCollection and filter out all the controls of a specific type, right? I wanted to do the same today, so I started by...