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
    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
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,034 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans