Page 1 of 2

Adding .NET 4 assemblies to the GAC

Posted: Fri Apr 23, 2010 4:35 am
by alma88
Hi,

IA can add our .NET 3.5 assemblies into the GAC. Is there any way that IA can add our .NET 4 assemblies to the GAC?

TIA

Re: Adding .NET 4 assemblies to the GAC

Posted: Fri Apr 23, 2010 5:42 am
by MichaelNesmith
What happens when you try to add a .NET 4 assembly to the GAC? Feel free to attach the assembly in question so we can take a look.

Re: Adding .NET 4 assemblies to the GAC

Posted: Fri Apr 23, 2010 7:31 am
by alma88
When I try to mark our assemblies for installation into the GAC folder, IA 8 doesn't show the assembly version numbers of our .NET 4 assemblies. Also, upon compilation the project fails with the following message:

Error during build: Unable to get assembly information for D:\Development\Distribution\Development Toolkit\WCFX\Trial\Assembly\Noemax.WCFX.Net4.Trial.dll

Maybe this has changed since IA 8 that I am using, and IA 9 can actually work with .NET 4 assemblies?

Re: Adding .NET 4 assemblies to the GAC

Posted: Fri Apr 23, 2010 8:41 am
by MichaelNesmith
Per my earlier request, could you attach the .NET 4 assembly in question?

Re: Adding .NET 4 assemblies to the GAC

Posted: Fri Apr 23, 2010 9:45 am
by MichaelNesmith
R&D says this new file should make it work for you. Enjoy :)

Re: Adding .NET 4 assemblies to the GAC

Posted: Fri Apr 23, 2010 10:11 am
by alma88
Thanks! Just one more question.... is this supposed to work with IA 8 too?

Re: Adding .NET 4 assemblies to the GAC

Posted: Fri Apr 23, 2010 11:35 am
by MichaelNesmith
We have validated only on InstallAware 9, but it won't hurt to try! Just backup the old file.

Re: Adding .NET 4 assemblies to the GAC

Posted: Sat Apr 24, 2010 2:35 am
by alma88
Seems to be working fine with IA 8.

Many thanks for your support, I appreciate it!

Alexander

Re: Adding .NET 4 assemblies to the GAC

Posted: Tue Feb 08, 2011 8:25 am
by Dave.Parsons
I too am having trouble with this. I get the same message when building the installer during the copying stage when IA attempts to copy the first of the .Net 4.0 assemblies required. After updating the copy of gacnet20x.exe to the one attached to this post, I now get a prompt saying "The publisher could not be verified. Are you sure you want to run this software", when clicking Run I get the same error message as the original version of the file; "Error during build: Unable to get assembly information for C:\Install_Set_Creation\......"

Running the same Installer project for the previous version of our software (before we updated to use .Net 4.0) works correctly.

Project is being run using IA 9 on Windows Server 2008 R2 x64 and is built from local files on the C:\ drive.

Any suggestions?

Cheers
D

Re: Adding .NET 4 assemblies to the GAC

Posted: Tue Feb 08, 2011 12:26 pm
by giaviv
Dear D,

I have recently played around quite a bit with InstallAware and .NET 4 assemblies. Note that the error you are getting most likely has to do with your assembly, rather than with InstallAware. It could also be that you need to re-install InstallAware. Please refer to this thread:

viewtopic.php?f=2&t=4804&start=15

Re: Adding .NET 4 assemblies to the GAC

Posted: Wed Feb 09, 2011 8:24 am
by Dave.Parsons
Hi,

I have tried reinstalling IA but this made no difference. I don't think the issue is with our assemblies as we are getting exactly the same error message as TIA had at the beginning of this post. The solution for this issued by Michael Nesmith in April of last year was to issue a patched copy of gacnet20x.zip. However this doesn't work for me when using IA 9 (Build Moya.sp1.070409)

I have read through the other forum post, however this seemed (as I interpreted the problem) to be an issue when installing onto the target machine. I am unable to create the installation package as I get the "Error during build: Unable to get assembly information for C:\Install_Set_Creation\......" message during the build.

Any suggestions?

Cheers
D

Re: Adding .NET 4 assemblies to the GAC

Posted: Thu Feb 10, 2011 4:12 pm
by giaviv
Dear D,

Could you possibly send your assemblies over to support at installaware.com?

Re: Adding .NET 4 assemblies to the GAC

Posted: Fri Feb 11, 2011 10:09 am
by Dave.Parsons
Email sent, thanks for your help.

Cheers
D

Re: Adding .NET 4 assemblies to the GAC

Posted: Sun Feb 13, 2011 5:40 am
by giaviv
Dear D,

I got your assembly, and I was able to add it and build my installer no problem on my InstallAware 10.10. Could you please describe the steps you are taking in order to register your assembly?

Re: Adding .NET 4 assemblies to the GAC

Posted: Mon Feb 14, 2011 5:04 am
by Dave.Parsons
The assemblies were simply added in the project view of IA using the Setup Architecture - Assemblies screen by browsing to the location to add it to the installer. I have since tried this again with a brand new project created using the wizard, pointing it to a new empty directory then added the assembly I sent you and on building to a single file installer I get the same error message.

D