Thursday, June 28, 2007

Application configuration is incorrect - Redistributable Package issue

Well, I managed to break the build indirectly today. The build compiled fine, but when we ran any of our C++ applications, we got this error dialog:

Error message:
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

The problem:
I broke the build by applying Visual Studio service pack 1 to the build machine. As you can see above, the error message we received was clear as mud. With a little bit of hunting, I discovered that changes were made to the C++ redistributable, which show up in the manifest file. As you can see here, the version number in the application intermediate manifest file is 8.0.50727.762 (it was 8.0.50608.0 prior to applying the service pack):

The fix:
Applying the new redistributable to the target machine fixed our problem. You can download the Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) Version 8.0.50727.762 here.


Tuesday, June 26, 2007

Changing SQL Server 2005 authentication mode

I had to hunt around today to figure out how to change SQL Server 2005 authentication mode , so I figured I would document it here in case it slips my mind again.

1. Launch SQL Server Management Studio Express ( Start > Programs > Microsoft SQL Server 2005 > SQL Server Management Studio)

2. Right-click the Server name, select Properties > Security (see picture below)

3. Under Server Authentication, select SQL Server and Windows Authentication Mode

4. Stopped and re-started the SQL Server

Friday, June 8, 2007

Installing Cygwin with the OpenSSL package

Installing Cygwin with the OpenSSL package is fairly easy once you understand how to do it. The folks at Cygwin did a good job of building a custom installer; however, I blew right passed the option for installing the openssl package because it is not Microsoft looking. Here are the instructions for installing Cygwin with the OpenSSL package so that you don't make the same mistake that I did:

1. Download the Cygwin installer from their web site here:

I've circled the link in the picture above.

2. Run the setup.exe (see below) that you downloaded and press the next button.

3. Select "Install from Internet" and press the next button

4. Pick an installation location, select how you want cygwin to be used and then press the next button.

5. Pick a location where the setup.exe can downloaded files and press the next button.

6. Tell the Setup.exe how it should connect to the Internet and then press the next button.

7. Setup.exe will retrieve a list of sites that have the files that need to be downloaded.

8. Pick a site to download the cygwin files from and press the next button:

9. The setup.exe will download the list of packages that you can choice from:

10. Expand the Libs section of the tree, find the OpenSSL package, and left click the arrow in the new column till the text changes from "skip" to a version number:

I did NOT find this portion of the interface intuitive. I just thought that it wasn't available. I guess the only thing I'm use to changing in a tree view is a check box. Oh well, don't make this mistake.

11. Download the files

12. Decide if you want to create a desktop icon or add a start menu icon and press the next button.

13. Delete the Setup.exe and the files that it created in the download directory you specified in step 5.

14. Your done.