.NET Framework Bookmark and Share   
 index > Common Language Runtime > RegAsm works in 1.1 but not in 2.0
 

RegAsm works in 1.1 but not in 2.0

Dear MSDN,

I am using the .NET 2.0 regasm command line to generate a type library from a .DLL

I get the error below (must have admin credentials) though I have admin rights. I've checked a number of other postings (including ensuring certain regedit keys are accessible) but no joy.

I am running .NET 2.0 (50727) SDK with on windows vista utlimate, 64 bit processor.

(I did not have this problem with the 1.1 .NET framework, but different machine)

Kind regards
Jim




RegAsm : error RA0000 : An error occurred while writing the registration information to the registry. You must have administrative credentials to perform this task. Contact your system administrator for assistance
James Noctor
Actually, I believe I found the answer to this problem

I have turned off User Account Control (UAC)!

Thanks anyways...
James Noctor
Actually, I believe I found the answer to this problem

I have turned off User Account Control (UAC)!

Thanks anyways...
James Noctor

Hello James,

Being logged on as administrator on Vista doesn't mean that everyprocess has administrator rights. You can keep UAC on. Just run regasm from elevated command line instead (right click on cmd.exe or VS command prompt| Run as Administrator, run regasm.exe).

-Karel

Karel Zikmund

You can use google to search for other answers

Custom Search

More Threads

• weird gc behaviour, involving a form with a bindingsource
• lock free multi threading .NET programming (volatile, MemoryBarrier, SpinWait and such)
• Treeview problem
• How do I invoke "hidden" interface functions in a COM vtable?
• win32 api calls within .net
• Threading question about different types...
• Unnecessary lock in this case?
• Convert Java SHA1 computation to .NET
• Immdeiate 'FileNotFoundException'
• Sluggish COM Interop with Delphi 7 app