Register Assembly does not work reliably

Got a problem you cannot solve? Try here.
Craig Daniel
Posts: 36
Joined: Tue Aug 07, 2007 11:25 am

Register Assembly does not work reliably

Postby Craig Daniel » Fri Aug 17, 2007 6:08 pm

I'm using IA 7, and I'm having trouble with the Register Assembly command. My assemblies require .NET 2.0

I am installing the dlls using Install Files (also tried install assembly) because they are NOT going into the GAC, and then I call Register Assembly after Apply Install.

If I install on my Vista machine, my assemblies get registered no problem. On my Server 2003 test machine, they do NOT get registered. I even tried calling regasm directly to make sure it was using the 2.0 regasm and not the 1.1 version (in case that matters). No help. If I call regasm manually from the command prompt, it works fine and my program works fine.

This test machine has had a lot of security related settings done to it (military requirements) which may be affecting this (I'm just guessing here). I'm curious, during install, what user context will programs be run in when I use Run Program or when the Register Assembly command runs? Whichever user launched the install (administrator in my case)? Local System?

Oh yeah, using my old installer built as a Visual Studio Setup project, there is no problem installing on this locked-down system. It works perfectly.

H4nd0
Posts: 92
Joined: Thu Nov 09, 2006 8:16 am
Location: Sydney, AU
Contact:

Postby H4nd0 » Tue Aug 21, 2007 12:01 pm

Never had any luck with installing/uninstall .NET2 assemblies with IA6. I manage assembly installation/uninstallation into the GAC and NGEN via a batch file (ugly but works). The other problem is that some of our DLLs are loosly bound so they don't get picked up via the built in NGEN. Hence, all I do is install the assembly into the TARGETDIR and then NGEN into the GAC.

I've just got IA7 ... and havn't tested it yet.
FireDaemon Technologies Limited
http://www.firedaemon.com


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 19 guests