web
You’re offline. This is a read only version of the page.
close
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
Suggested Answer

Run Retail SDK sample extension project get error, could not load file or assembly

(0) ShareShare
ReportReport
Posted on by 50

We are using Dynamics 365 Financial and Operations and e-commerce.
Now I am trying to run retail SDK sample extension projects, and I can successfully build the project, then I press F5 to start debugging the sample project when it runs into CommerceRuntimeManager.GetDefaultCommerceRuntimeConfiguration() method, there is error 

pastedimage1605166649130v1.png
"Microsoft.Dynamics.Commerce.Runtime.CommerceRuntimeCompositionException
HResult=0x80131500
Message=Commerce runtime failed to load 'Microsoft.Dynamics.Commerce.Runtime.MandatoryTaxGroupItaly, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL' assembly.
Source=Microsoft.Dynamics.Commerce.Runtime
StackTrace:
at Microsoft.Dynamics.Commerce.Runtime.Configuration.CompositionManager.GetAssembly(String assemblyName)
at Microsoft.Dynamics.Commerce.Runtime.Configuration.CompositionManager.CreateContainerConfiguration(IEnumerable`1 compositionElementCollection, IEnumerable`1 typeOfInterfaces)
at Microsoft.Dynamics.Commerce.Runtime.Configuration.CompositionManager.CreateContainerConfiguration(IEnumerable`1 compositionElementCollection)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntimeConfiguration..ctor(ICommerceRuntimeSection commerceRuntimeSection, ICommerceRuntimeExtensionsSection extensionsSection, ICommerceRuntimeExtensionsSection preloadCommerceRuntimeSection, ICompositionLoader compositionLoader, String connectionString)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntimeConfiguration..ctor(ICommerceRuntimeSection commerceRuntimeSection, ICommerceRuntimeExtensionsSection extensionsSection, String connectionString, IDictionary`2 storageLookupConnectionStrings, Boolean isOverride, ICompositionLoader compositionLoader, Boolean isMasterDatabaseConnectionString)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntimeConfiguration..ctor(ICommerceRuntimeSection commerceRuntimeSection, ICommerceRuntimeExtensionsSection extensionsSection, String connectionString, IDictionary`2 storageLookupConnectionStrings, Boolean isOverride, Boolean isMasterDatabaseConnectionString)
at Contoso.Commerce.Runtime.TestHost.CommerceRuntimeManager.GetDefaultCommerceRuntimeConfiguration() in C:\RetailSDK\SampleExtensions\CommerceRuntime\Extensions.TestHost\CommerceRuntimeManager.cs:line 80
at Contoso.Commerce.Runtime.TestHost.CommerceRuntimeManager.GetDefaultCommerceIdentity() in C:\RetailSDK\SampleExtensions\CommerceRuntime\Extensions.TestHost\CommerceRuntimeManager.cs:line 66
at Contoso.Commerce.Runtime.TestHost.CommerceRuntimeManager.get_Runtime() in C:\RetailSDK\SampleExtensions\CommerceRuntime\Extensions.TestHost\CommerceRuntimeManager.cs:line 50
at Contoso.Commerce.Runtime.TestHost.Program.Main() in C:\RetailSDK\SampleExtensions\CommerceRuntime\Extensions.TestHost\Program.cs:line 44

Inner Exception 1:
FileNotFoundException: Could not load file or assembly 'Microsoft.Dynamics.Commerce.Runtime.MandatoryTaxGroupItaly, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

I am using 10.0.14 version environment, and before running the project, I ran 'dotnet restore' to regenerate the dependencies.

Can anyone help point out how can I resolve this issue, to run the sample project?
Thanks very much in advance!

I have the same question (0)
  • Suggested answer
    Ramune Profile Picture
    on at

    Hi Erick,

    if you will not get any advice from the community, please create a support ticket for us so we can investigate it further.

  • Adolfome9 Profile Picture
    110 on at

    I got the same error,  but I don't know how to solve it.

  • Community Member Profile Picture
    on at

    Did any of you manage to resolve this issue? I am currently experiencing it, even tried renaming my extension DLLs...

  • SergeyP Profile Picture
    2,928 on at

    >... I am using 10.0.14 version environment, and before running the project,  ...

    Is that a typo and you instead are using 10.0.24 or you are really using the version which reached End Of Service more than 1 year ago? (UPDATE: while writing that I didn't realize I'm responding to the question which indeed was posted more than 1 year ago ).

    If you don't need that tax module then check if the file is present in the Retail Server's bin folder. If it is there - check what version you have there, if it is not there - then modify RS composition in the file commerceruntime.config by removing a reference to that assembly.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 284 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 178 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 116 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans