Get assembly paths from the project/solution to prevent Strong name validation fails #38

Closed
praeclarum opened this Issue May 16, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

praeclarum commented May 16, 2012

System.IO.FileLoadException: Could not load file or assembly 'OpenTK, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
File name: 'OpenTK, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.IO.FileLoadException: Could not load file or assembly 'OpenTK, Version=0.9.9.3, Culture=neutral, PublicKeyToken=c4c4237547e4b6cd' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
File name: 'OpenTK, Version=0.9.9.3, Culture=neutral, PublicKeyToken=c4c4237547e4b6cd' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
The Zone of the assembly that failed was:
MyComputer
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, 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)
at QuickTest.TestPlan.CurrentDomain_AssemblyResolve(Object sender, ResolveEventArgs args) in C:\Projects\QuickTest\QuickTestVS\QuickTest.cs:line 155
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)

at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Signature..ctor(IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy()
at System.RuntimeType.FilterApplyMethodBase(MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
at System.RuntimeType.FilterApplyConstructorInfo(RuntimeConstructorInfo constructor, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at QuickTest.NewExpression.Eval(EvalEnv env) in C:\Projects\QuickTest\QuickTestVS\QuickTest.cs:line 962
at QuickTest.ObjectLiteralExpression.Eval(EvalEnv env) in C:\Projects\QuickTest\QuickTestVS\QuickTest.cs:line 1230
at QuickTest.Test.CreateObject(Type objType, String expressionText, EvalEnv env) in C:\Projects\QuickTest\QuickTestVS\QuickTest.cs:line 395
at QuickTest.Test.Run() in C:\Projects\QuickTest\QuickTestVS\QuickTest.cs:line 296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment