.NET

.NET: Open Source Workflow Engine

NetBpm is a .Net Port of JBpm1. NetBpm is an open source platform for building, executing and managing workflows. It is very simple to use and integrate in other .Net applications.
As quoted from the website, it features

100% .Net and browser hosted
100% Open Source
works on Microsoft .Net and Mono
Human-Oriented Collaborative Features
Powerful Process Automation with Flexibility
Support for […]

Piccolo: A Structured 2D Graphic Framework

Piccolo is a toolkit that supports the development of 2D structured graphics programs, in general, and Zoomable User Interfaces (ZUIs), in particular. A ZUI is a new kind of interface that presents a huge canvas of information on a traditional computer display by letting the user smoothly zoom in, to get more detailed information, and […]

WinDbg: Free Debugging Tool for Windows

As quoted from the documentation., Microsoft Windows Debugger (WinDbg) is a powerful Windows-based debugging tool. It is capable of both user-mode and kernel-mode debugging.
WinDbg provides full source-level debugging for the Windows kernel, kernel-mode drivers, and system services, as well as user-mode applications and drivers.
WinDbg uses the Microsoft Visual Studio debug symbol formats for source-level […]

Microsoft Enterprise Library

Most .NET developers should know about Microsoft Enterprise Library. The current release is 4.0 as of May 2008.
As quoted from the website, the patterns & practices Enterprise Library is a collection of reusable software components (application blocks) designed to assist software developers with common enterprise development challenges (such as logging, validation, data access, exception handling, […]

.NET: MTOM Enabled Your Application Using WSE

One of my user encountered the following error when he is trying to use .NET to connect to the web services which are running under Apache CXF.

Client found response content type of ‘multipart/related; type=”application/xop+
xml”; boundary=”—-=_Part_0_9519730.1210566764662″; start=”<root.message@cxf.ap
ache.org>”; start-info=”application/soap+xml”‘, but expected ‘application/soap+x
ml’.
The request failed with the error message:

 
——=_Part_0_9519730.1210566764662
Content-Type: application/xop+xml; charset=UTF-8; type=“application/soap+xml; ch
arset=UTF-8″
Content-Transfer-Encoding: binary
Content-ID: root.message@cxf.apache.org
 

The web services have […]

Coding4Fun Developer Kit

C4F Developer Kit project was created to demonstrate the power and ease of creating fun, cool applications with the new Visual Studio 2008 Express Editions.

It features

Easy to use drag ‘n drop controls including 10+ Windows Vista APIs and 8+ Web Service wrappers
Complete source code in both Visual Basic and Visual C# for all […]

SubSonic: Help a WebSite Build Itself

As quoted from the website, SubSonic is a toolset that helps a website build itself. Basically, it generates the DAL (Data Access Layer) on the .NET platform for you.

Currently SubSonic supports MS SQL Server, MySQL and Oracle. 
I particularly like the design concept using ActiveRecord. SubSonic uses the ActiveRecord pattern for the data-aware base […]

CSLA.NET

This is the framework I am looking at currently.
CLSA.NET by Rockford Lhotka is an application development framework that reduces the cost of building and maintaining applications. It stands for Component-based, Scalable Logical Architecture.
I am trying to build a trading system with complex business logic using it.

xUnit.net - Unit Testing for .NET

TestDriven.NET is one of my favorite add-in for Visual Studio for unit testing. Normally I used NUnit or MbUnit for my unit testing. Recently I was trying on xUnit.net which is still not supported by TestDriven.NET yet. However, it has a a TestDriven.net 2.x test runner (inside Visual Studio) which you can use.
I am not […]

.NET: Error Adding Web Reference for Soap 1.2 Web Service

There is a weird error that I encountered when I tried to add a web reference in .NET. Look like Microsoft is not following the standard ?
There is no SoapTransportImporter that understands
the transport
‘http://www.w3.org/2003/05/soap/bindings/HTTP/’

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode […]

.NET: Detect Incoming Call or SMS in Windows Mobile Phone

Download Sample Code
I was looking for way to detect incoming call or SMS in Nokia Symbian phones and Windows Mobile Phone. It was not easy to do this in Symbian OS but to do it in .NET is very straightforward.

messageInterceptor = new MessageInterceptor();
messageInterceptor.InterceptionAction =
InterceptionAction.NotifyAndDelete;
//messageInterceptor.MessageCondition.CaseSensitive = […]

.NET: Create MSDN Style Documentation using Sandcastle

Before this, I normally used either NDoc or Doxygen to generate my help or documentation file from my source code. NDoc looks like not in active development anymore, and Doxygen cannot generate MSDN style documentation as what I wanted.
So I stumbled upon Sandcastle. As quoted from the website, Sandcastle produces accurate, MSDN style, comprehensive documentation […]

Design Pattern in .NET 101 - Factory Method Pattern (Creational Pattern)

Download Sample Code
Factory Method Pattern defines an interface for creating an object, but let subclasses decide which class to instantiate. It lets a class defer instantiation to subclasses.
E.g., I defined a abstract News class.

using System;
using System.Collections.Generic;
using System.Text;

namespace FactoryPattern
{
abstract class News
{
}
}

Different kinds of […]

Design Pattern in .NET 101 - Facade Pattern (Structural Pattern)

Download Sample Code
Facade Pattern provides a unified interface to a set of interfaces in a subsystem. It defines a higher-level interface that makes the subsystem easier to use.
E.g.
I have a Call Details Record (CDR) to be processed by different systems. It is defined in the CDR class

using System;
using System.Collections.Generic;
using System.Text;

namespace FacadePattern
{
class […]

Design Pattern in .NET 101 - Decorator Pattern (Structural Pattern)

Download Sample Code
Decorator Pattern attaches additional responsibilities to an object dynamically and provides a flexible alternative to subclassing for extending functionality.
E.g.
BaseMessage is defined

using System;
using System.Collections.Generic;
using System.Text;

namespace DecoratorPattern
{
abstract class BaseMessage
{
private string sender;
[…]

Design Pattern in .NET 101 - Proxy Pattern (Structural Pattern)

Download Sample Code
Proxy Pattern provides a surrogate or placeholder for another object to control access to it.
E.g.
I defined a IGreeting interface

using System;
using System.Collections.Generic;
using System.Text;

namespace ProxyPattern
{
interface IGreeting
{
void SayHello();
}
}

Greeting implements IGreeting

using System;
using System.Collections.Generic;
using System.Text;

namespace ProxyPattern
{

[…]

Serialize .NET Object to JSON String

Download Source
This is another variation of my previous post, Serialize Java Object to JSON String. Here I rewrite the code using Json.NET

Use JSON to Transfer Data between .NET and Java Web Services

In my previous post, Java - Use JSON for Data Transfer, I showed you how I passed an array of objects between my Java processes. Here I am going to show you how I used it to pass values between .NET and Java web services.
In the project that I worked on before this, I need […]

Framework for .NET mobile programmer- OpenNETCF Smart Device Framework

Smart Device Framework from OpenNETCF is a very useful framework for .NET mobile programmer. It complements .NET Compact Framework in the sense that it supplies you with the missing features that are available in .NET Framework. Besides, it also comes with some of the libraries available in Microsoft Enterprise Library.
Here I showed some of the […]

FileHelpers - A .NET Equivalent to Java Super Csv

I came across Super Csv at DZone, which has just released a new version. In fact I used Super Csv in one of my previous projects and found that is very convenient. I also need to parse Csv file in some of my .NET projects. For .NET, I use FileHelpers.
FileHelpers is a delimited (CSV) or […]