Developping for the translation industry RSS 2.0

 Thursday, May 22, 2008

All the Mix08 sessions are online !

I also found this blog post with links to the wmv of all 88 sessions if you want to watch them offline.

Thursday, May 22, 2008 9:15:28 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
General | News
 Wednesday, May 21, 2008

At my company, we have a windows service, built in C#, that makes automatic modifications to Active Directory groups. This process use the function call “FindAll()” from the System.DirectoryServices.DirectorySearcher class.

It seems that the SearchResultCollection returned by the FindAll method can’t release it’s unmanaged resources by itself, so you need to call explicitly the Dispose() method.

From MSDN:

Due to implementation restrictions, the SearchResultCollection class cannot release all of its unmanaged resources when it is garbage collected. To prevent a memory leak, you must call the Dispose method when the SearchResultCollection object is no longer needed.


Wednesday, May 21, 2008 2:54:00 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
 Friday, May 16, 2008

Today’s tool is for all of you programmers/bloggers, who want to have that perfectly syntax highlighted code for your posts.  CopySourceAsHtml is a Visual Studio 2005 addin that does all the dirty work for you.


You get also a lot of options for font selection, line numbering, indentation and setting custom CSS styles.


Friday, May 16, 2008 7:24:24 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
 Tuesday, May 06, 2008

This code example sets the permission to create files and update them in a folder for a particular user but doesn’t propagate these permissions to the subfolders.


using System.Security.AccessControl;


System.IO.DirectoryInfo folderInfo = new System.IO.DirectoryInfo(folder);

DirectorySecurity folderSecurity = folderInfo.GetAccessControl();


FileSystemAccessRule rule =

      new FileSystemAccessRule(


      FileSystemRights.ReadAndExecute |

        FileSystemRights.AppendData |

        FileSystemRights.CreateFiles |








Tuesday, May 06, 2008 5:52:15 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
.NET | C# | Code Snippet
 Thursday, May 01, 2008

The Office Labs at Microsoft gave us a nice (and free) product.

Community Clips is a free tool that can be used to do screencasts and help videos.  It integrated directly in the quick access bar in office 2007 applications and can also be used outside of these applications with the tray icon it creates.

It generates very lightweight .wmv files and is really easy to use.


Thursday, May 01, 2008 6:24:19 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
 Friday, February 29, 2008

Originally taken from

Programming is like sex because :

  • One mistake and you have to support it for the rest of your life. (Michael Sinz)
  • Once you get started, you'll only stop because you're exhausted.
  • It often takes another experienced person to really appreciate what you're doing.
  • Conversely, there's some odd people who pride themselves on their lack of experience.
  • You can do it for money or for fun.
  • If you spend more time doing it than watching TV, people think you're some kind of freak.
  • It's not really an appropriate topic for dinner conversation.
  • There's not enough taught about it in public school.
  • It doesn't make any sense at all if you try to explain it in strictly clinical terms.
  • Some people are just naturally good.
  • But some people will never realize how bad they are, and you're wasting your time trying to tell them.
  • There are a few weirdos with bizarre practices nobody really is
    comfortable with.
  • One little thing going wrong can ruin everything.
  • It's a great way to spend a lunch break.
  • Everyone acts like they're the first person to come up with a new technique.
  • Everyone who's done it pokes fun at those who haven't.
  • Beginners do a lot of clumsy fumbling about.
  • You'll miss it if it's been a while.
  • There's always someone willing to write about the only right way to do things.
  • It doesn't go so well when you're drunk, but you're more likely to do it.
  • Sometimes it's fun to use expensive toys.
  • Other people just get in the way.
Friday, February 29, 2008 4:51:24 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
 Thursday, February 07, 2008

The company where I work is currently hiring.  We’re searching for two superstar C# developers for a Research and Development project.

So, if you live near Montreal (Canada) or wish to move here and want to contribute to a great team, send me your CV at and I’ll contact you individually for more details.


Thursday, February 07, 2008 9:23:01 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
 Thursday, December 20, 2007

If you’re using SQL Server 2005, you probably have encountered this error at least once.  When people see this error, they may not know where to start searching.  This post is a recap of every possible cause to this problem (that I know of).

The error message you get is :

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connection. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

The possibles causes are:

Server accessibility and availability:

  • Depending on your connection type, make sure that TCP/IP or Named Pipes are enabled in the Surface Area Configuration tool.
  • Also make sure that TCP/IP or Named Pipes are enabled in the SQL Server Configuration Manager.
  • Make sure that you can ping the server from the client.
  • Make sure that your SQL Server is started (obvious but still needs to be on the list).

Connection String:

  • You should also double check your connection string to be sure that there is not a typo in the server name or instance name.
  • You also should try both Server\Instance and Server\\Instance in your connection string.  This is because some applications convert \\ to \. 
  • You may also try to add the SQL port to the connection string (ex: Data Source=mysqlserver\myinstance,1433).

If you are using SQL Server Express:

  • Check that SQL Server Browser is enabled and is started in the SQL Server Configuration Manager.  If it was disabled, also make sure that you set the Start Mode to “Automatic”.

If your SQL Server is behind a Firewall:

  • Check that there is an exception in your firewall configuration to let the traffic through port 1433 (for SQL Server) and 1434 (for an UDP packet sent to get information on the SQL Instance like the protocol, the TCP port to use, etc).

 If your SQL Instance is on a cluster:

  • UDP packets are dropped in some cases when dealing with an instance on a cluster.  This is a known issue and I don’t know if Microsoft will do something about it.  For more details and workarounds, you can go here, here or here.

if you’re trying to connect to your SQL Server with an ASP.NET application:

  • Make sure that the version of the .NET Framework loaded in IIS on the server for this specific Web Site is the right one (I experienced this error when I deployed an application built with the version 2.0 Framework on a web server with 1.1 loaded by default).
  • The process account of the ASP.NET application must have rights to connect to the SQL Server database.

This list may not be complete. So if you know another cause or element that needs to be checked for this particular scenario, drop me a line at and I’ll update this post.

Thursday, December 20, 2007 5:37:05 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -

About the author/Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2019
Stanislas Biron
Sign In
Total Posts: 135
This Year: 0
This Month: 0
This Week: 0
Comments: 1
All Content © 2019, Stanislas Biron