Active Directory Replication Status Tool crashing

Last week I was trying to test one replication scenario for AD, and I downloaded latest AD replication status tool (Product version: 3.22.415.100). After I installed it, i tried to run it but it crashed. Event log give next error.

Application: repl.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Sirona.PackagingException
at Microsoft.Sirona.Packaging.PackageHelper.ValidatePackage(System.IO.Stream, System.String, Boolean, Boolean)
at Microsoft.Sirona.Packaging.PackageManager.LoadInternal(System.IO.Stream, Boolean, Boolean, System.String, System.String, Boolean)
at Microsoft.Sirona.Packaging.PackageManager.Load(System.String, Boolean, Boolean)

There is more error text but I don’t want to culprit this post. I found workaround on reddit. To repair it you need to use dnSpy. When you open .NET Decompiler open Microsoft.Sirona.dll and go to Microsoft.Sirona.Packaging -> PackageHelper -> IsSigned(Stream, string)

You will need to right click Edit Method and change function to this content (see picture also). After that click compile and save module to same name.

public static bool IsSigned(Stream packageStream, string packageName)
{
    return true;
}

After you save it run ADREPLSTATUS tool and it will run now. Microsoft please fix this. It is not that big problem as it seems. 🙂

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.