
I just recently installed the Dynamics 365 Developer Toolkit on VS2012. Whenever I right-click on the package project and deploy I get the following error.
Error 102 Could not load file or assembly 'CrmLibraries, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
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.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Runtime.Serialization.FormatterServices.LoadAssemblyFromString(String assemblyName)
at System.Reflection.MemberInfoSerializationHolder..ctor(SerializationInfo info, StreamingContext context)
at System.AppDomain.add_AssemblyResolve(ResolveEventHandler value)
at Microsoft.Crm.Tools.Libraries.AssemblyResolver.AttachResolver(AppDomain domain)
at Microsoft.Crm.Tools.Libraries.AppDomainContext`1..ctor(String domainName, String appPathName)
at Microsoft.Crm.Tools.Libraries.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly, String appPath)
at Microsoft.CrmDeveloperTools.CrmClient.Deployment.PRT_RegisterPluginsAndWorkflows.ExecutePluginAssemblyRegistrationWithUpdate(SolutionType PluginAsm, CRMDeveloperToolsPackage package, PluginSerializationType Selectedplugin, WorkflowType SelectedWorkflow)
at Microsoft.CrmDeveloperTools.CrmClient.Deployment.PRT_RegisterPluginsAndWorkflows.RegisterPlugins(CRMDeveloperToolsPackage FeaturePackage, Boolean& isPackageEmpty, List`1 selectedPlugin, List`1 selectedWebResource, List`1 selectedSolution)
at Microsoft.CrmDeveloperTools.CrmClient.Deployment.DeployToCRM.DeployToCrmSync(IVsOutputWindowPane output, UInt32 options) Build Process 1 1
*This post is locked for comments
I have the same question (0)My mistake I didn't have the paths to the Plugin-Registration and Bin Directory set:
Tools -> options -> Dynamics 365 Developer Toolkit -> Tool Paths