Register .Net Assemblies for COM on WIn 2008 Server

Got a problem you cannot solve? Try here.
NormanDerrick
Posts: 33
Joined: Sun Jul 11, 2010 2:06 pm

Register .Net Assemblies for COM on WIn 2008 Server

Postby NormanDerrick » Mon Mar 11, 2013 5:04 am

Hi,

I have an application for a client that is a combination of VB COM and C# .Net Assemblies. The assemblies are marked for COM interop.

The install script works great when the application is installed to a user's workstation both on Windows XP and Windows 7 (32 and 64-bit). However, they have a requirement to also install the same application on a Windows 2008 R2 server that is hosting a Citrix server for clients use from remote offices or while on the road.

When we install this to the Windows 2008 server, the install completes without any error but no TLB files are generated and the assemblies do not get installed to the GAC. If I run a separate BATCH file to invoke regasm and gacUtil and ngen, everything will register and get installed to the GAC on this "Citrix / Windows 2008" server environment.

I have tested the same IA install script on a Windows 2008 server in my local environment and everything works OK. I suspect that there might be some Group Policy setting that my client has enabled or configured that is preventing the IA script from performing the regasm step. I have compared the log files from the installation on a Windows 7 workstation and this Windows 2008 server and they are identical except where certain flags like Terminal Server are interrogated.

Any assistance in resolving this problem is greatly appreciated.

Thanks,
Norm

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Register .Net Assemblies for COM on WIn 2008 Server

Postby FrancescoT » Mon Mar 11, 2013 11:57 am

Dear Norm,

Just a question, have you tried what happens turning off the anti-virus app (if any) on those machines?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

NormanDerrick
Posts: 33
Joined: Sun Jul 11, 2010 2:06 pm

Re: Register .Net Assemblies for COM on WIn 2008 Server

Postby NormanDerrick » Wed Mar 13, 2013 1:02 am

Hi Francesco,

No, they did not try disabling their anti-virus software.

But, I had a research session with one of my client's IT staff and he was able to get the .Net assemblies to register when he logged onto the server as a domain administrator and then ran the installation "as a local administrator" of the server. His thought is that there may be a permissions issue within the registry. For my test in my development environment I was logged in as a domain administrator and did not need to perform as "Run As ..."

I will ask him to try it after disabling their anti-virus software for that server.

Thanks,
Norm

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Register .Net Assemblies for COM on WIn 2008 Server

Postby FrancescoT » Wed Mar 13, 2013 8:28 am

Dear Norm,

Doing a quick google search, I found the following topics about a security policy that should be enabled by default with all most recent WIN OS server versions.

http://technet.microsoft.com/en-us/library/hh831534.aspx
http://msdn.microsoft.com/en-us/library/aa368304.aspx
http://www.beepthegeek.com/2011/09/the-system-administrator-has-set-policies-to-prevent-this-installation.html

Maybe you could find the above interesting.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

NormanDerrick
Posts: 33
Joined: Sun Jul 11, 2010 2:06 pm

Re: Register .Net Assemblies for COM on WIn 2008 Server

Postby NormanDerrick » Wed Mar 13, 2013 8:35 am

Thanks Francisco,

I will pass these links along to them for review and research today.

Norm

NormanDerrick
Posts: 33
Joined: Sun Jul 11, 2010 2:06 pm

Re: Register .Net Assemblies for COM on WIn 2008 Server

Postby NormanDerrick » Thu Mar 14, 2013 3:56 pm

Hi Francesco

We tried the installation after disabling the anti-virus software on the server and it still failed to generate the type libs files.

Thanks,
Nor


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 90 guests