I'm getting this error:
File or assembly name VaultLib, or one of its dependencies, was not found.
at System.Reflection.CustomAttribute.CreateCAObject(Int32& propNum, Assembly& assembly)\r\n at System.Reflection.CustomAttribute.GetObject()\r\n at System.Reflection.CustomAttribute.CheckConsistencyAndCreateArray(CustomAttribute caItem, Type caType)\r\n at System.Reflection.CustomAttribute.GetCustomAttributes(MemberInfo member, Type caType, Boolean inherit)\r\n at System.Reflection.CustomAttribute.GetCustomAttributes(Type type, Type caType, Boolean inherit)\r\n at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)\r\n at System.Xml.Serialization.XmlReflectionImporter.IncludeTypes(ICustomAttributeProvider provider)\r\n at System.Web.Services.WebMethodReflector.IncludeTypes(LogicalMethodInfo[] methods, XmlReflectionImporter importer)\r\n at System.Web.Services.Protocols.SoapClientType..ctor(Type type)\r\n at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()\r\n at VaultClientNetLib.ClientService.VaultService..ctor()\r\n at VaultClientNetLib.VaultConnection.InitService(AccessLevelType accessLevel)\r\n at VaultClientOperationsLib.ClientInstance.Init(AccessLevelType accessLevel)\r\n at WebProjectProp.Propper.LoginVault() in c:\\dev\\webprojectprop\\propper.cs:line 55
What's strange is that I can fix it if I put the VaultLib.dll in the SAME directory as the *executable*. i.e. regardless of working directory or path, it doesn't seem to find it.
Thoughts? I'm making a VS addin, so putting vaultlib.dll in VS's dir seems just evil.
Vault client API error
Moderator: SourceGear