Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » How to   (RSS)

How to Programmatically Modify the IIS Virtual Directory

If you have more than a dozen web servers in a cluster with identical setting, and you need to update the virtual directory, it is much more convenient to write a simple program to update it. This example shows how to do it. In this case, this snippet

How to Create Custom Event Log for Windows Service

When you created a Windows Service, you usually add a Service Installer to allow this service to be installed using InstallUtil or installing it programmatically like this post shows you. The service installer will create the Event Log for the service,

How to Install Windows Service Programmatically

Sometimes you may want to install a Windows Service programmatically, but the target machine does not have InstallUtil.exe. To install a Windows Service programmatically, you can build an application to install that Windows Service. Add a reference to

How to Install Assemblies to the GAC Programmatically?

You can add or remove assemblies from the GAC using code. You can use Publish.GacInstall method to install an assembly to the GAC, or Publish.GacRemove method to remove that assembly from the GAC. If you are using Vista, and enable UAC, you have to run

How to Find Out Which Column Caused SSIS to Fail?

In my previous post , I explained how you can find out the error description for the error id that is returned by SSIS. Of course, that information is only half helpful, debugging the issue also involve knowing which column caused that error. The Error
Posted by HelloWorld | 3 Comments
Filed under: , , ,

Switching Between Applications, Using Vista Flip3D

I like Flip3D, but I rarely use it, as I am accustomed switching between applications by pressing alt-tab. Using mouse to click that 'switch between Windows' is too slow. Did you know that you can activate Flip3D by pressing the Win key + tab? Switch
Posted by HelloWorld | 0 Comments

How to Decipher/Understand SSIS Error Code?

If you have worked with SSIS, you may have been doing something like this, in case of errors, you saved the error code and the error column to a text file or some other media. If you get the error within the IDE, that is cool, as you can get more readable
Posted by HelloWorld | 11 Comments
Filed under: , ,

How to Convert a list of Object/String to an Array Using LINQ?

This is something that I really like, I can convert a list of objects into an array of something. I had a need to convert a list of string into an array of string, of course it can be done easily in several different ways, creating an array of int, converting
Posted by HelloWorld | 1 Comments
Filed under: , ,

How to Build TFS Build Locally?

If you need to test your TFS build after playing around with the TFSBuild.proj, you can do that by do the following: Synchronize the source control to your workspace. Open Visual Studio 2005 Command Prompt (or Visual Studio 2008 Command Prompt), located

How to Make Sure InstallState Files Are Removed After Uninstall?

If you are building setup using Visual Studio and you have several custom actions and you noticed you see one or more .InstallState files in the target path after uninstall, most likely you have added your custom action to the Install custom action, but

How to Correctly Pass TARGETDIR to A Custom Action?

If you have a custom action setup, passing TARGETDIR to the custom action, and suddenly you are experiencing weird error, you may have incorrectly passed the TARGETDIR. Sometimes the Event Viewer have this entry: The description for Event ID ( 11001 )
Posted by HelloWorld | 0 Comments
Filed under: ,
 
Page view tracker