DAL Generator failed : Critical error Failed to compile shadow assembly error CS1548 Cryptographic failure while signing assembly
search cancel

DAL Generator failed : Critical error Failed to compile shadow assembly error CS1548 Cryptographic failure while signing assembly

book

Article ID: 411042

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

After replacing the NS Web Site certificate, the following error started to happen:

NS log entry:

DAL Generator failed : Critical error Failed to compile shadow assembly error CS1548 Cryptographic failure while signing assembly.

Environment

ITMS 8.7.x, 8.8

Cause

It was found that in some occasions the permissions in the machine keys directory needed to have the service account (App Identity or AppID) added instead of just having it as part of the administrators group.

Resolution

Try the following:

Option 1:

Give your App Identity Full Control in NTFS security permissions to the following folder: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys 


Option 2:

    1. Change security on directory: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys
    2. Add your App Identity account, with the following minimum "Advanced" set of NTFS permissions (Full Control is a better setting):
      • Create files / write data
      • Create folders / append data
      • Write attributes
      • Write extended attributes
      • Delete
    3. After hitting apply, accept that 5 directories were "Access is denied", if any.