This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Managed Code Custom Action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2010
11:23 AM
Managed Code Custom Action
Hello, I am trying to write a managed code custom action on a 64-bit Windows 7 OS. I get an error message "Unable to load one or more of the requested types" when the .dll has been compiled to target the .NET Framework v4.0. However, if I recompile the same .dll to target the .NET Framework v2.0, I do not get the error message and things work normally.
Does anyone know if this is a limitation of IS2011 or if I am doing something wrong? If there is a workaround for this, I would like to know as I really need to target the .NET Framework v4.0.
Thanks!
Tim
Does anyone know if this is a limitation of IS2011 or if I am doing something wrong? If there is a workaround for this, I would like to know as I really need to target the .NET Framework v4.0.
Thanks!
Tim
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2010
01:38 PM
I am actually having the same exact issue.
I upgraded to 2011 because .NET 4 managed code custom actions weren't working at all. I just ran into this issue trying to set up a new one. All of the old ones are working properly, just having an issue setting up a new one is all.
I upgraded to 2011 because .NET 4 managed code custom actions weren't working at all. I just ran into this issue trying to set up a new one. All of the old ones are working properly, just having an issue setting up a new one is all.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2010
02:43 PM
Hi,
Please refer to this old thread, where Michael Urman had suggested that this could be due to missing dependencies on the machine --> http://community.flexerasoftware.com/showthread.php?t=185639.
Please refer to this old thread, where Michael Urman had suggested that this could be due to missing dependencies on the machine --> http://community.flexerasoftware.com/showthread.php?t=185639.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2010
09:49 PM
Actually, I have resolved it by recompiling my assembly to the .NET Framework 3.5. I believe this to be a bug in InstallShield 2011.
:mad:
:mad:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2010
06:55 PM
Hi,
Thanks for the update. We are looking into this issue internally.
Thanks!
Thanks for the update. We are looking into this issue internally.
Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 06, 2011
10:13 AM
Alpesh wrote:
Hi,
Thanks for the update. We are looking into this issue internally.
Thanks!
From Fusion logs I could get, it seems that for some reason InstallShiled 2011 uses CLR 2.0 assembly loader even if assembly is built for CLR 4.0.
Is there any update on this issue, please?
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)