Posts
201
Comments
1111
Trackbacks
51
.NET 2.0
ConfigurationErrorsException - The configuration is read only.
The .NET 2.0 Configuration API is a huge step up from the previous versions of the framework rendering many other previous configuration framework (Enterprise Library Configuration block, etc.) virtually obsolete. However, one thing that can trip people up is when they try to assign to a configuration property at run-time you can get a ConfigurationErrorsException - The configuration is read only even when a setter is defined on their property: [ConfigurationProperty(item... DefaultValue = ......
Posted On Tuesday, August 14, 2007 10:23 PM | Comments (14)
WinDbg real world example
I recently had to debug a problem for my current client which was exceptionally weird and I was able to utilize WinDbg to help get to the bottom of the problem relatively quickly. Basically the application in question is an asp.net application that takes a custom object and puts in in an MSMQ message (which currently uses the default binary serializer). The class in question is marked with the Serializable attribute, has a couple of primitive members (e.g., ints, strings) and a couple of NameValueCollections. ......
Posted On Tuesday, August 14, 2007 9:16 PM | Comments (0)
WinDbg / SOS Cheat sheet
This is a great post that anyone who works with WinDbg should check out:

http://geekswithblogs.net/.netonmymind/archive/2006/03/14/72262.aspx

Bookmark it - it will come in handy anytime you're debugging with WinDbg.
Posted On Tuesday, August 14, 2007 8:30 PM | Comments (0)
Build 64-bit MSI file on Cruise Control
There is a known bug when trying to build 64-bit MSI files. That is, the wrong InstallUtilLib.dll is embedded in the MSI. A workaround to that problem is to use Orca to manually manipulate the MSI file in embed the correct version - the workaround is documented here. However, what if you want to automate this process on your build server? Orca is a windows appication requiring user input. To automate this from the command line, you can leverage a few lines of VBScript code that essentially duplicates ......
Posted On Saturday, March 17, 2007 8:44 PM | Comments (2)
Validation framework on CodePlex

This past summer I had an article published in Visual Studio magazine in which I outlined a Validation framework that I created to declaratively validate business objects.  Simon Cropp has taken the initiative to put the source code up on CodePlex as an open source community project.  It can be found here:

http://www.codeplex.com/ValidationFramework

Posted On Thursday, November 23, 2006 7:14 PM | Comments (1)
Error MSB6006: "aspnet_merge.exe" exited with code 1 - Web Deployment Project
This error often rears its ugly head when compiling an ASP.NET 2.0 Web Deployment Project. At first glance, it is extremely difficult to troubleshoot because there is not much information along with the error. In order to troubleshoot this, you need to use a higher level of verbosity. If you're using MSBuild from the command line you can use the /verbosity switch like this (and then look at Output window for build): C:\projects>msbuild YourSolutionFile.sln /t:Rebuild /p:Configuration=Release /verbosity:detailed ......
Posted On Monday, July 31, 2006 6:47 PM | Comments (50)
Visual Studio Magazine Article on Validating Business Objects
I just had an article published in the June issue of Visual Studio magazine. The article essentially presents a flexible framework for validating business objects utilizing attributes. http://www.visualstudiomaga... This is my first time in “print”! The direct link to my article is: http://visualstudiomagazine... A couple of people had trouble downloading the code from the VSM site. Alternatively, it can be downloaded here: http://www.4shared.com/file... ......
Posted On Tuesday, June 27, 2006 5:45 PM | Comments (2)
Visual Studio Magazine Article on Validating Business Objects
I just had an article published in the June issue of Visual Studio magazine. http://www.visualstudiomaga... This is my first time in “print”! The direct link to my article is: http://visualstudiomagazine... A couple of people had trouble downloading the code from the VSM site so I'm happy to provide directly. The article essentially presents a flexible framework for validating business objects utilizing attributes ......
Posted On Tuesday, June 27, 2006 5:19 PM | Comments (0)
GridView - Set column properties at run-time
An interesting issue came up today that, although it now looks simple, did not have an immediately obvious solution. Specifically, what if you want to set properties of individual columns of a GridView at run-time (via C# code) rather than at design time in the aspx code. For example, let's say you want to set the DataFormatString property of a BoundField column. In short, it is a 2-part solution. First, you must positionally extract your column out of the GridView's Columns property while casting ......
Posted On Thursday, March 30, 2006 6:51 PM | Comments (31)
Real world example of C# Anonymous Methods
Often when a new language features come out (in this case anonymous method) we often see syntax examples like this: delegate void SomeDelegate();public void InvokeMethod(){ SomeDelegate del = delegate() { MessageBox.Show("Hello"); }; del(); } and we say, great but when is code like THAT ever going to be useful to me? In that trivial example, of course that's not very useful. But when you consider the power anonymous methods gives you both to pass in parameters and also make use of local objects then ......
Posted On Tuesday, March 21, 2006 8:51 AM | Comments (6)
Full .NET 2.0 Archive

View Steve Michelotti's profile on LinkedIn

profile for Steve Michelotti at Stack Overflow, Q&A for professional and enthusiast programmers




Google My Blog

Tag Cloud