Skip to main content

Notifications

Announcements

No record found.

Supply Chain Management forum
Unanswered

Transportation management engine. The ResolveAssemblyReference task failed unexpectedly.

Posted on by 3
We are creating TMS engine based on the https://learn.microsoft.com/en-us/dynamics365/supply-chain/supply-chain-dev/create-new-transportation-management-engine

The solution compiles successfully until we add the reference to one of the following assemblies:
Microfoft.Dynamics.Ax.Framework.Linq.Data
Microfoft.Dynamics.Ax.Framework.Linq.Data.AdoNet
Microfoft.Dynamics.Ax.Framework.Linq.Data.Msil
Microsoft.Dynamics.Ax.Data.Core
Microsoft.Dynamics.Ax.Server.Core
Microsoft.Dynamics.AX.Xpp.AxShared
Microsoft.Dynamics.AX.Xpp.Support


In that case we get the following error


Severity    Code    Description    Project    File    Line    Suppression State
Error        The /ResolveAssemblyReference/ task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Build.Tasks.ReferenceTable.GetReference(AssemblyNameExtension assemblyName)
   at Microsoft.Build.Tasks.Reference.SetFinalCopyLocalState(AssemblyNameExtension assemblyName, String[] frameworkPaths, ProcessorArchitecture targetProcessorArchitecture, GetAssemblyRuntimeVersion getRuntimeVersion, Version targetedRuntimeVersion, FileExists fileExists, GetAssemblyPathInGac getAssemblyPathInGac, Boolean copyLocalDependenciesWhenParentReferenceInGac, Boolean doNotCopyLocalIfInGac, ReferenceTable referenceTable)
   at Microsoft.Build.Tasks.ReferenceTable.GetReferenceItems(ITaskItem[]& primaryFiles, ITaskItem[]& dependencyFiles, ITaskItem[]& relatedFiles, ITaskItem[]& satelliteFiles, ITaskItem[]& serializationAssemblyFiles, ITaskItem[]& scatterFiles, ITaskItem[]& copyLocalFiles)
   at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, DirectoryExists directoryExists, GetDirectories getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, GetLastWriteTime getLastWriteTime, GetAssemblyRuntimeVersion getRuntimeVersion, OpenBaseKey openBaseKey, GetAssemblyPathInGac getAssemblyPathInGac, IsWinMDFile isWinMDFile, ReadMachineTypeFromPEHeader readMachineTypeFromPEHeader)
   at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

What could be a cause of the error and how to fix it?
  • Cihan Durmaz Profile Picture
    Cihan Durmaz 17 on at
    Transportation management engine. The ResolveAssemblyReference task failed unexpectedly.
    I faced the same issue and I noticed that the problem is ApplicationSuite.dll
     
    You can try setting its "CopyLocal" property value to false then build the solution.
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Transportation management engine. The ResolveAssemblyReference task failed unexpectedly.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans