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!

  • SergeyP Profile Picture
    2,928 on at
    RE: Run Retail SDK sample extension project get error, could not load file or assembly

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

  • Community Member Profile Picture
    on at
    RE: Run Retail SDK sample extension project get error, could not load file or assembly

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

  • Adolfome9 Profile Picture
    110 on at
    RE: Run Retail SDK sample extension project get error, could not load file or assembly

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

  • Suggested answer
    Ramune Profile Picture
    on at
    RE: Run Retail SDK sample extension project get error, could not load file or assembly

    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.

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,001 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,837 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans