2

When I am trying to create a satellite assembly by using al.exe from the command prompt I am getting the following error.

ALINK: error AL1019: Metadata failure while creating assembly -- Access is denied.

How can I fix this problem?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
sanjeev
  • 31
  • 2

2 Answers2

3

I meet the same error when building project have .resx files. it is caused by without permission of 'C:\Users\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys' Signing assembly Access Is Denied I hope this can help to your question.

xiaoquan
  • 31
  • 4
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes https://stackoverflow.com/help/how-to-answer – Shanteshwar Inde Jan 25 '19 at 06:08
  • 2
    I also had this error when assembly signing in VS project was enabled (and no error after disabling signing). I resolved his problem by running VS 2019 as admin. – Sam Mar 26 '19 at 09:07
-1

According to MSDN, "For example, this error occurs if a file that you specify with the /win32res option is not found."

Check if all the files referenced exist, if you're creating this on a local drive (rather than a network drive), and that you have full rights to the directories involved.

TrueWill
  • 25,132
  • 10
  • 101
  • 150