web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Could not load file or assembly 'Microsoft.ApplicationInsights

(2) ShareShare
ReportReport
Posted on by 106
Hi All,
I'm getting this error when using Microsoft ApplicationInsights for logging purposes.
 
Ex: 'System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ApplicationInsights
 
An exception occurred while executing request. CorrelationId: 'XXXXXa-6da9-4bc4-9b87-7ee4b6fa585e'. Ex: 'System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'Microsoft.ApplicationInsights, Version=2.22.0.997, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at XXX.CommerceRuntime.RequestHandlers.GetReceiptRequestHandler.Execute(Request request)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at XXX.CommerceRuntime.RequestHandlers.GetReceiptRequestHandler.Execute(Request request)
   at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.ExecuteCore[TResponse](Request request, RequestContext context, IReadOnlyCollection`1 handlersToInvoke, Boolean skipRequestTriggers, Boolean isAsyncExecution)'. ExceptionType: 'System.IO.FileNotFoundException'. ErrorResourceId: ''. HandlerTypeName: 'XXX.CommerceRuntime.RequestHandlers.GetReceiptRequestHandler'. RequestTypeName: 'Microsoft.Dynamics.Commerce.Runtime.Messages.GetReceiptRequest'. HandlerAssemblyName: 'XXX.CommerceRuntime'. HandlerAssemblyPublicKeyToken: ''. UnscrubbedException: '(null)'.
 
FYI -> I'm using this document for implementing that functionality (https://learn.microsoft.com/en-us/dynamics365/commerce/dev-itpro/commerce-application-insights)
 
 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 128 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 79

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 75 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans