By Carl DuFault 1365442
#519371 I had to start everything from scratch as I had to clean my computer. I've installed Vpilot back but get an error message: Unhandled exception. Unable to obtain public key for Strong name key pair. Please advise..
By Robert Grant 812419
#519799 Hi Ross. I just got this as well. Been OK up till today.
Yes I am running as ADMIN. Trying to use in host mode with voice and a remote on a client machine. Even when I try to run on the server I get the error.
By Ross Carlson 887155
#519808 Both of you please check if there is a GlobalExceptions.txt file in your vPilot.exe folder. If so, you'll see that a chunk of information is written to that file each time an unhandled exception occurs. Please post the LAST chunk here, showing this error with any details.
By Robert Grant 812419
#519814 Hi Ross. Attached is the GE file from the Host. There was no log on the remote machine.
I ran vPilot on the server again in local mode and it worked but not in the host/remote config.

Here is the last chunk of text in the file

DateStamp: 27/11/2017 9:35:54 PM
Details: System.ArgumentException: Unable to obtain public key for StrongNameKeyPair.
at System.Reflection.StrongNameKeyPair.nGetPublicKey(Boolean exported, Byte[] array, String container)
at System.Reflection.StrongNameKeyPair.get_PublicKey()
at System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 unsafeAssemblyAttributes)
at System.AppDomain.DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access)
at Castle.DynamicProxy.ModuleScope.CreateModule(Boolean signStrongName)
at Castle.DynamicProxy.ModuleScope.ObtainDynamicModuleWithStrongName()
at Castle.DynamicProxy.ModuleScope.ObtainDynamicModule(Boolean isStrongNamed)
at Castle.DynamicProxy.ModuleScope.DefineType(Boolean inSignedModulePreferably, String name, TypeAttributes flags)
at Castle.DynamicProxy.Generators.Emitters.ClassEmitter.CreateTypeBuilder(ModuleScope modulescope, String name, Type baseType, IEnumerable`1 interfaces, TypeAttributes flags, Boolean forceUnsigned)
at Castle.DynamicProxy.Generators.Emitters.ClassEmitter..ctor(ModuleScope modulescope, String name, Type baseType, IEnumerable`1 interfaces, TypeAttributes flags, Boolean forceUnsigned)
at Castle.DynamicProxy.Generators.InvocationTypeGenerator.GetEmitter(ClassEmitter class, Type[] interfaces, INamingScope namingScope, MethodInfo methodInfo)
at Castle.DynamicProxy.Generators.InvocationTypeGenerator.Generate(ClassEmitter class, ProxyGenerationOptions options, INamingScope namingScope)
at Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor.GetInvocationType(MetaMethod method, ClassEmitter emitter, ProxyGenerationOptions options)
at Castle.DynamicProxy.Contributors.InterfaceProxyWithoutTargetContributor.GetMethodGenerator(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod)
at Castle.DynamicProxy.Contributors.CompositeTypeContributor.ImplementMethod(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod)
at Castle.DynamicProxy.Contributors.CompositeTypeContributor.Generate(ClassEmitter class, ProxyGenerationOptions options)
at Castle.DynamicProxy.Generators.InterfaceProxyWithoutTargetGenerator.GenerateType(String typeName, Type proxyTargetType, Type[] interfaces, INamingScope namingScope)
at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.<>c__DisplayClass1.<GenerateCode>b__0(String n, INamingScope s)
at Castle.DynamicProxy.Generators.BaseProxyGenerator.ObtainProxyType(CacheKey cacheKey, Func`3 factory)
at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.GenerateCode(Type proxyTargetType, Type[] interfaces, ProxyGenerationOptions options)
at Castle.DynamicProxy.DefaultProxyBuilder.CreateInterfaceProxyTypeWithoutTarget(Type interfaceToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions options)
at Ninject.Extensions.Factory.BindToExtensions.ToFactory[TInterface](IBindingToSyntax`1 syntax, Func`2 instanceProvider, Type factoryType)
at Ninject.Extensions.Factory.BindToExtensions.ToFactory[TInterface](IBindingToSyntax`1 syntax)
at gm.a()
at Ninject.Modules.NinjectModule.OnLoad(IKernel kernel)
at Ninject.KernelBase.Load(IEnumerable`1 m)
at Ninject.KernelBase..ctor(IComponentContainer components, INinjectSettings settings, INinjectModule[] modules)
at Ninject.KernelBase..ctor(INinjectModule[] modules)
at Ninject.StandardKernel..ctor(INinjectModule[] modules)
at bx.a(String[] A_0)
============================================================
By Ross Carlson 887155
#519822 I'm afraid that info didn't help ... everything I've found online suggests that this error is related to file permissions, so if you're running as an admin, you should be all set, but obviously that's not the case.
By Robert Grant 812419
#519823 Thanks Ross. I will check the permissions but always run as admin etc.
Only issue I can think of is a Windows 10 update a couple of days ago. I noticed just this morning the setting in my system had changed. Ill check and advise.
By Robert Grant 812419
#519829 Ross.
Problem solved!
Put it down to my stupidity.
When I reinstalled vPilot I forgot to add Run as Administrator to the shortcut.
DOH! :mrgreen: