Error after upgrade to SCSM 2016: Unable to determine Cireson Licensing Client version
I am preparing my SCSM 2012 R2 enviroment for upgrading to SCSM 2016. I have installed a laboratory with productive data and I did all steps suggested by Microsoft. After check all, I installed Cireson 2016. Then I have started upgrading components from 2012 to 2016 o his last version.
In SCSM Console, in Settings, all settings are accessible and I can configure them except one "Cireson - Console App Licensing". If I open it in console, SCSM console crashes. Lg file shows the error wrote in the last part.
I have copied .dll and the management pack version to Cireson Console App Licensing is 7.10.2016.8
any idea how I can resolve it please? many thanks
--------------------------
b: Unable to determine Cireson Licensing Client version during initalization. ---> System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files\Microsoft System Center 2012 R2\Service Manager\Cireson.Console.Licensing.Workflows.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
--- End of inner exception stack trace ---
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)
at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at System.AppDomain.CreateInstanceFromAndUnwrap(String assemblyName, String typeName)
at System.AppDomain.CreateInstanceFromAndUnwrap(String assemblyName, String typeName)
at Cireson.Console.Licensing.Workflows.Classes.VersionsCheck.LoadLicensingFunctions(EnterpriseManagementObject appSettings, String productKey)
--- End of inner exception stack trace ---
at Cireson.Console.Licensing.Workflows.Classes.VersionsCheck.LoadLicensingFunctions(EnterpriseManagementObject appSettings, String productKey)
at Cireson.Console.Licensing.Classes.AdminSettingsData.a(EnterpriseManagementObject A_0)
at Cireson.Console.Licensing.Classes.AdminSettingsData.b()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Best Answer
-
john_doyle Cireson Support Ninja IT Monkey ✭✭✭✭Hi Wolfgang,
It looks like you extracted the contents of the zip file containing the licensing app without unblocking it first. This has marked any executables extracted from the zip file as unsafe.
Open a PowerShell prompt on the server. Run these commands:
cd "C:\Program Files\Microsoft System Center 2012 R2\Service Manager"
gci *.dll -Recurse | Unblock-File
1
Answers
It looks like you extracted the contents of the zip file containing the licensing app without unblocking it first. This has marked any executables extracted from the zip file as unsafe.
Open a PowerShell prompt on the server. Run these commands:
cd "C:\Program Files\Microsoft System Center 2012 R2\Service Manager"
gci *.dll -Recurse | Unblock-File
following your advice licensing is working.
Great advise, thanks