Error is thrown while running “FNMS Windows Authentication Config.xml” at “Executing step Configure FNMP database for operators” with assembly error An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted. Run the query again, or check documentation to see how to solve the assembly trust issues...
You will observe the following error in during the execution of powershell script:
This error occurs due TRUSTWORTHY setting for the database. You can see the current TRUSTWORTHY setting for a database by running this query:
SELECT is_trustworthy_on FROM sys.databases WHERE name = 'DatabaseName';
You would need to run the management studio with sysadmin rights. And run the below command to verify the issue is due to TRUSTWORTHY settings:
SELECT is_trustworthy_on FROM sys.databases WHERE name = 'DatabaseName';
To resolve this issue you would need to run Management Studio with user who have sysadmin rights on SQL server.
You would see the result like below:
ALTER DATABASE DataBaseName SET TRUSTWORTHY ON;
Once the above is completed, you should be able to successfully run the xml script.
Author: Fawad Laiq
Date published: 17/03/2020