Hi all,
Has anyone faced this exception and how to fix it?
Exception thrown: System.TypeInitializationException: The type initializer for 'Skyline.Protocol.PowerShellApi.Commands.CommandMapper' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeModule.GetTypes() at System.Reflection.Assembly.GetTypes() at Skyline.Protocol.PowerShellApi.Commands.CommandMapper..cctor() --- End of inner exception stack trace --- at Skyline.Protocol.PowerShellApi.Commands.CommandMapper.GetMappedCommands() at Skyline.Protocol.ProtocolApi.Controllers.CommandsConfigurationController.OnInitialization(SLProtocol protocol) at QAction.Run(SLProtocol protocol)
This happened after the Nuget migration.
I tried to catch System.Reflection.ReflectionTypeLoadException exception, but without success.
Elmaza Kurtanović [SLC] [DevOps Advocate] Selected answer as best 24th July 2023
Hi Elmaza,
These errors sometimes happened in our environments and fixed by the following operation.
- Stop DataMiner
- Remove Skyline DataMiner\Scripts\*.txf files
- Remove all file in Skyline DataMiner\Scripts\Compiled folder
- Start DataMiner
I hope these solve your issues.
Hideyuki Imaida [DevOps Advocate] Answered question 21st July 2023