Problem with Regasm Tool

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We have just set up a Small Business Server 2003 machine and encountered a
problem when using the .NET regasm tool.

I have to install a .NET dll file to be used by a COM application. I used
the gacutil tool to install the dll in the GAC. When I ran the regasm tool to
register the dll, I got the following error:
[Resource lookup failed - infinite recursion detected. Resource name:
Arg_NullReferenceException].
I also tried it on another machine but it worked fine.

Does anyone encounter a similar problem before or have any idea what causes
the problem? Any help will be greatly appreciated.
 
A couple of thoughts:
1) Do you get the same error if you put the assembly in an application
folder and use regasm with /codebase? It doesn't always need to be in the
GAC to expose COM to clients.
2) Was the assembly created for a 1.0 framework? I'm wondering if you're
using a 1.1 regasm to register a 1.0 framework assembly and that's got
something to do with it.
 
I think somehow the Regasm Tool on my server is corrupted. What I find out
is that even if I just type "regasm" on the command line without the name of
the dll file, I will still get the same error message.

Anyway, thanks for your tips.


Phil Wilson said:
A couple of thoughts:
1) Do you get the same error if you put the assembly in an application
folder and use regasm with /codebase? It doesn't always need to be in the
GAC to expose COM to clients.
2) Was the assembly created for a 1.0 framework? I'm wondering if you're
using a 1.1 regasm to register a 1.0 framework assembly and that's got
something to do with it.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

jmok said:
We have just set up a Small Business Server 2003 machine and encountered a
problem when using the .NET regasm tool.

I have to install a .NET dll file to be used by a COM application. I used
the gacutil tool to install the dll in the GAC. When I ran the regasm tool
to
register the dll, I got the following error:
[Resource lookup failed - infinite recursion detected. Resource name:
Arg_NullReferenceException].
I also tried it on another machine but it worked fine.

Does anyone encounter a similar problem before or have any idea what
causes
the problem? Any help will be greatly appreciated.
 
Back
Top