Troubleshooting App Manager vanishing on launch, with error "System.NotSupportedException" in Event Viewer
Who is this article for?IT Administrators attempting to run App Manager.
IT Administrator permissions are required to resolve the issue.
You might find that when you launch App Manager:
- It does not appear on the screen.
- Event Viewer shows the error System.NotSupportedException.
This article explains what causes the issue and how to resolve it.
1. Issue
If you attempt to run App Manager from a UNC path, then it will not load. Windows Event Viewer will show this error:
The full error text is:
Application: AppManager.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NotSupportedException
Exception Info: System.IO.FileLoadException
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.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.InternalCreateInstanceFromWithNoSecurity(String assemblyName, String typeName)
at System.AppDomain.InternalCreateInstanceFromWithNoSecurity(System.String, System.String)
at System.Activator.CreateInstanceFrom(System.AppDomain, System.String, System.String)
at Pentana.Tng.Core.PluginFactory.AssemblyHasPlugins(System.String)
at Pentana.Tng.Core.PluginFactory.InsertPluginsFromAssembly(System.String)
at Pentana.Tng.Core.PluginFactory.InsertPlugins(System.Collections.Generic.IEnumerable`1<System.String>)
at Pentana.Tng.Core.TngLog+TngLogInternal.GetStrategies(System.String)
at Pentana.Tng.Core.TngLog+TngLogInternal.get_TraceStrategies()
at Pentana.Tng.Core.TngLog+TngLogInternal.Trace(System.String)
at Pentana.Tng.AppManager.UI.App..ctor()
at Pentana.Tng.AppManager.UI.App.Main()
2. Solution
Ensure that you run App Manager from a local drive, rather than a UNC path.
In addition, note that App Manager is designed to be run from a remote desktop session on the application server, so that it can connect to each of the config files in the application. Running it from a PC rather than the app server will limit its functionality.