FileLoadException when installing Application Block Factory

Topics: Enterprise Library Core, General discussion
Jul 3, 2008 at 12:25 PM

Hello,

I've been trying to install the Application Block Factory for Enterprise Library without any success.

When installing the Application Block Factory, I get almost all the way through and then get the following message:

Error 1001 Exception occurred while initializing the installation:
System.IO.FileLoadException: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.BlockFactoryInstaller, Version=0.0.0.0,
Caulture-neutral, PublicKeyToken=b02f5f7f11d50a3a' or one of its dependencies. String...


I've tried to search for the BlockFactoryInstaller but can't find it anywhere. 

My environment is as follows:
* Vista Business 64bit
* Visual Studio Pro 2008
* Enterprise Library 4.0 - May 2008
* Guidance Automation Extensions
* Guidance Automation Toolkit For VS2008.


Can someone please help.

Regards,
Bernie.

Jul 3, 2008 at 2:34 PM
Hi,

How are you installing it? The ABSF works with VS 2005, and the installer assemblies for GAX packages are typically located in the VS folder.

Fernando

bsircelj wrote:

Hello,

I've been trying to install the Application Block Factory for Enterprise Library without any success.

When installing the Application Block Factory, I get almost all the way through and then get the following message:

Error 1001 Exception occurred while initializing the installation:
System.IO.FileLoadException: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.BlockFactoryInstaller, Version=0.0.0.0,
Caulture-neutral, PublicKeyToken=b02f5f7f11d50a3a' or one of its dependencies. String...


I've tried to search for the BlockFactoryInstaller but can't find it anywhere. 

My environment is as follows:
* Vista Business 64bit
* Visual Studio Pro 2008
* Enterprise Library 4.0 - May 2008
* Guidance Automation Extensions
* Guidance Automation Toolkit For VS2008.


Can someone please help.

Regards,
Bernie.




Jul 3, 2008 at 11:00 PM
Hi,

thanks for your reply, I've been trying to install it via the compiled msi thats located in the debug folder, with no success. In addition I've looked in the Visual Studio folder and still can't find the dll. I've tried coping the dll's from another machine that has XP 32bit with Visual Studio 2005 and Enterprise Library 3, and I still get the same error. 

I've also tried to rebuild the installer, but there are so many broken references.

Any other suggestions?
Jul 4, 2008 at 2:11 PM
Hi,

Try running the msi with logging enabled (msiexec /i [msi file name] /l*v log.txt) and post the error entries. Also, enable the fusion log viewer (fuslogvw.exe) to try to get the exact details about the log failure.

Fernando
Jul 6, 2008 at 12:43 PM
Hello,

After running "msiexec /i BlockFactorySetup.msi /l*v log.txt" i still get the error. After reviewing the log I believe the error to be the following:


MSI (s) (D8:74) [22:12:25:918]: Hello, I'm your 32bit Elevated custom action server.
DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog,
Error 1001. Error 1001. Exception occurred while initializing the installation:
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.BlockFactoryInstaller, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A).
MSI (s) (D8!4C) [22:12:29:350]:
MSI (s) (D8:30) [22:12:29:350]: Leaked MSIHANDLE (17) of type 790531 for thread 4684
MSI (s) (D8:30) [22:12:29:350]: Note: 1: 2769 2: _B07BFCE2_C4B5_4381_8975_9F5BEB7DDAD7.install 3: 1
DEBUG: Error 2769:  Custom Action _B07BFCE2_C4B5_4381_8975_9F5BEB7DDAD7.install did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: _B07BFCE2_C4B5_4381_8975_9F5BEB7DDAD7.install, 1,
Action ended 22:12:29: InstallExecute. Return value 3.


How can i fix the ErrorIcon issue?
Jul 7, 2008 at 5:41 PM
Hi,

The issue that causes the installation to fail is not the missing error icon, it's the fact that the binaries you're using are delay signed.

If I understand correctly you're trying to install the MSI found in Application Block Factory\BlockFactory\BlockFactorySetup\Debug. It looks like this MSI doesn't belong in the source tree, as it's the output of a delay-signed debug build. You should instead build your own binaries, which will require you to provide your own key file and update the strong name references as necessary.

Hope this helps,
Fernando



bsircelj wrote:
Hello,

After running "msiexec /i BlockFactorySetup.msi /l*v log.txt" i still get the error. After reviewing the log I believe the error to be the following:


MSI (s) (D8:74) [22:12:25:918]: Hello, I'm your 32bit Elevated custom action server.
DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog,
Error 1001. Error 1001. Exception occurred while initializing the installation:
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.BlockFactoryInstaller, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A).
MSI (s) (D8!4C) [22:12:29:350]:
MSI (s) (D8:30) [22:12:29:350]: Leaked MSIHANDLE (17) of type 790531 for thread 4684
MSI (s) (D8:30) [22:12:29:350]: Note: 1: 2769 2: _B07BFCE2_C4B5_4381_8975_9F5BEB7DDAD7.install 3: 1
DEBUG: Error 2769:  Custom Action _B07BFCE2_C4B5_4381_8975_9F5BEB7DDAD7.install did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: _B07BFCE2_C4B5_4381_8975_9F5BEB7DDAD7.install, 1,
Action ended 22:12:29: InstallExecute. Return value 3.


How can i fix the ErrorIcon issue?