views:

1268

answers:

4

When trying to run regasm in Win2008 Server:

regasm "C:\Program Files\FooProg\Bar.dll" /tlb:"C:\Program Files\FooProg\Bar.tlb"

I get the following error:

RegAsm : error RA0000 : An error occurred while saving the exported type library: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

what does this mean

+2  A: 

The account you are using needs administrator privileges.

scottm
+3  A: 

The account under which you run regasm doesn't have rights to write to C:\Program Files\FooProg\ and that's why regasm fails to write the .tlb. Run regasm under an account with administrator priviledges.

sharptooth
A: 

That error mostlikely comes up because you can't delete a corresponding .tlb file. Two other suggestions: 1. Stop IIS and attempt to register again: 2. Stop IIS, remove .tlb files from wherever your DLL file is and then attempt to register again.

Dominik Ras
+1  A: 

That error mostlikely comes up because you can't delete a corresponding .tlb file. Two other suggestions:

  1. Stop IIS and attempt to register again:
  2. Stop IIS, remove .tlb files from wherever your DLL file is and then attempt to register again.
  3. Close all IE/IIS/DEV tools (they might be keeping some files in read-only state) and then attempt to register your DLL
Dominik Ras