Bdsproj2mak Throws OLE Error on ClassID {F8FEDD39...}

Abstract: Installing .NET 2.0 causes bdsproj2mak to fail with OLE errors

Symptom: Running bdsproj2mak on a BDS C++ project file results in the error:

OLE error 80131040, ClassID: {F8FEDD39-E3CE-4B8D-A657-9CA24686881F}
Exception EOleSysError in module rtl100.bpl at 00044A1D.
OLE error 80131040, ClassID: {F8FEDD39-E3CE-4B8D-A657-9CA24686881F}.

Cause: Installation of the .NET 2.0 framework on a machine causes the wrong .NET runtime to be invoked when bdsproj2mak is executed.

Solution: Create a manifest for bdsproj2mak that forces the system to load the .NET 1.1 runtime when it is executed.

Create a bdsproj2mak.exe.config file in the same directory as bdsproj2mak (...\BDS\4.0\Bin) with the following content:

<?xml version="1.0"?>

<configuration>

<startup>

<requiredRuntime version="v1.1.4322" />

</startup>

</configuration>

[This solution was posted to the newsgroups by Vladimir Ulchenko aka vavan.]