Friday 28 January 2011

Error 1001. Error 1001. Unable to get installer types in the assembly. --> Unable to load one or more of the requested types

today, a non-Telerik blog post,

We have several Visual Studio solutions here. Some are .NET 4.0, and some are .NET 2.0. The one that we were having an issue with was an older .NET 2.0 solution that we decided to start developing in Visual Studio 2010, but still targeting the .NET 2.0 runtime.

No changes were made to the projects in the solution. We just re-compiled in Visual Studio 2010. However, when we came to run the install, it would fail with the following error message:

Error 1001. Error 1001. Unable to get installer types in the assembly. --> Unable to load one or more of the requested types

There are several ways of finding out what the issue is here though we were up against a tight deadline. The issue though I think is due to the main executable in the solution having an installer file and therefore a custom action in the set up project. Even though the target framework is still .NET 2.0, the resulting Setup.exe and msi were different sizes to those produced under VS2005. The solution was to start a new blank solution and re-import all the .NET 2.0 projects back into that again. The installation then went through with no issues first time.

Hope that helps someone.

1 comment:

  1. Thank u very much Richard, I had the same reason for this error. Best regards from Russia!!
    Thank u!

    ReplyDelete