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 :
Finance | Project Operations, Human Resources, ...
Answered

Error when rebuilding business event catalog

(3) ShareShare
ReportReport
Posted on by 60
When I try to rebuild the business event catalog the following error appears:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
{"ExceptionDetails":"System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.Assembly.GetTypes() at Microsoft.Dynamics.Ax.Xpp.DictClass.Getattributedclasses(String attrName) in D:\dbs\sh\l23t\1211_211612\cmd\o\Source\Kernel\xppil\XppSupport\DictClass.cs:line 547 at Dynamics.AX.Application.BusinessEventsCatalogHelper.`addCodeBusinessEvents() at Dynamics.AX.Application.BusinessEventsCatalogHelper.addCodeBusinessEvents() at Dynamics.AX.Application.BusinessEventsCatalogHelper.buildBusinessEventsCatalogInternal(Boolean _throwOnException)","TypeLoaderExceptions":["System.Threading.LockRecursionException: Recursive write lock acquisitions not allowed in this mode. at System.Threading.ReaderWriterLockSlim.TryEnterWriteLockCore(TimeoutTracker timeout) at System.Threading.ReaderWriterLockSlim.TryEnterWriteLock(TimeoutTracker timeout) at Microsoft.Dynamics.Ax.Xpp.TypeLoading.XppTypeLoader2.OnAssemblyResolve(Object sender, ResolveEventArgs args) in D:\dbs\sh\l23t\1211_211612\cmd\o\Source\Kernel\xppil\XppSupport\TypeLoading\XppTypeLoader2.cs:line 360 at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)"]}
 
When debugging I discovered that the LoaderException property returns the following message:
 
Recursive write lock acquisitions not allowed in this mode.
 
And that the error happens in the function:
 
BusinessEventsCatalogHelper::addCodeBusinessEvents();
 
Specifically in the line:
 
Array codeBusinessEvents = DictClass::getAttributedClasses(classStr(BusinessEventsAttribute));
Does anyone know how to fix this error? Thanks in advance
Categories:
I have the same question (2)
  • Layan Jwei Profile Picture
    8,118 Super User 2025 Season 2 on at
    Hi,

    What is your environment version number?
  • EM-16011954-0 Profile Picture
    60 on at
     
    Installed product version : 10.0.42 (10.0.2095.59)
     
    Installed platform version : Update66 (7.0.7452.66)
     
    Thanks in advance
  • Verified answer
    EM-16011954-0 Profile Picture
    60 on at
    It's probably not the right thing to solve this issue, but after restarting the machine the issue was solved. 

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans