Watch PDC Videos Online

PDC is almost over, did you know that you can access the recorded sessions online? Go to http://www.microsoftpdc.com, and click on Agenda on the top. then click on Sessions tab. Pick the session that you want to watch, scroll down, you should see a Video tab. Much shorter shortcut, got to this link https://sessions.microsoftpdc.com/public/timeline.aspx. Today…


Advice for New Programmers

I was reading an old post that Chuck Jazdzewski wrote. This one is really good, it is not applicable only for new programmers, if you are a seasoned programmer, this article is still a good read. Jump to Chuck’s fatherly advice for new programmers.


In God We Trust, Everybody Else Must Bring Data

One day, I was presented with a problem, that the finalizer was not called during application pool recycle. I was busy, so I did not have chance to respond. Later on, I checked the code, it was modified to inherit from CriticalFinalizerObject class, and a comment saying that even though the class is inherited from…


The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error

I am playing around with WCF, and I got that error message above. Searching did not really help in defining what was going on. And yes, it was working on my previous test environment. 🙂 Luckily, I still had one of my test method, which just ping the service and did nothing else. That method…


Replacing ASMX Web Service with WCF Web Service

I found a good article about replacing ASMX web wervice with WCF web service here (ASMX to WCF migration). Very cool, and my client application do not need to be recompiled. Just one thing that I notice, I believe on step 3, instead of XmlSerializerAttribute it should be XmlSerializerFormat. Have fun!


Boosting Performance with READ_COMMITTED_SNAPSHOT

I had a problem with one of our database in our testing environment, it performs OK, but we know it can be faster. There are millions of data in that database. Everything are properly indexed and the stored procedure plan is optimum. I was not aware about read committed snapshot option when the dba suggested…


Editing Share Permission

In my previous post, I have shown you how to set up permission on a share. The thing with Win32_Share, when you set the permission, you basically overwrites the existing permission. If you want to edit permission on the share (grant a new user access to the share, or revoke an existing user’s permission), then…

3

Database Design – Designing Primary Key

One of the key of designing a database is picking the right primary key. I keep in mind several things when I design a database: If possible, primary key should not have a business meaning. Business meaning changes, some attribute that is unique now, may not be unique in the future. Related to that point…


Common AccessMask value when Configuring Share Permission Programmatically

In my previous post, I have shown you how to modify share permission using .Net framework. Access Mask is quite granular, most likely you will need to assign a particular user as ‘Full Control’, ‘Change’, or ‘Read’. In Vista or Server 2008, it will be ‘Co-Owner’, ‘Contributor’, or ‘Reader’. The literal values for those permissions…


Programmatically Configuring Permissions on a Share

I was asked this problem on how to set up permission for a share programmatically using .Net Framework. Well, I am not aware of any API that can do that. Searching does not return any good result. There are lot of resources on how to configure permission settings for local folder, but not so much for UNC path. At the end,…

35