RegAsm works in 1.1 but not in 2.0 RRS feed

  • Question

  • 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

    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
    Thursday, February 19, 2009 5:00 PM


All replies

  • Actually, I believe I found the answer to this problem

    I have turned off User Account Control (UAC)!

    Thanks anyways...
    Thursday, February 19, 2009 5:05 PM
  • Hello James,

    Being logged on as administrator on Vista doesn't mean that every process 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).


    Thursday, February 19, 2009 7:31 PM