Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Transportation management engine. The ResolveAssemblyReference task failed unexpectedly.

(1) ShareShare
ReportReport
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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans