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 :
Microsoft Dynamics AX (Archived)

Application pool 'AOSService' is being automatically disabled due to a series of failures in the process(es) serving that application pool.

(0) ShareShare
ReportReport
Posted on by

I previously logged a problem with accessing the OData interface on our Azure DEV instance on Dynamics 365 for Operations. (https://community.dynamics.com/ax/f/33/t/237419). I have received no replies indicating what the problem with this is, but, as it didn't seem to affect the UI, I've continued to use the instance for testing configuration. Specifically, I've configured the SMTP service on the VM and tested workflow notifications.

Today, I decided to start looking at the OData issue, and, with no changes, now find that attempting to connect to the OData service actually kills the AOSService and, after a few attempts, disables it altogether resulting in a "Service Unavailable" response.

Looking in the VM's system error log, the first Warning from WAS is an Event ID 5011: "A process serving application pool 'AOSService' suffered a fatal communication error with the Windows Process Activation Service. The process id was '8532'. The data field contains the error number." The data contains 0x8007006D, which a search indicates is "Broken Pipe". This warning gets repeated 5 times , with differing process IDs, until WAS reports an Event ID 5002: "Application pool 'AOSService' is being automatically disabled due to a series of failures in the process(es) serving that application pool." Rebooting the VM allows the UI to be active, but accessing ".../Data" initially gets the "key has already been added error" and attempting to access a custom data entity will crash the AOSService again. Simply restarting the AOSServer application pool, the UI attempts to start, but fails, reporting lost connections 5 times followed by "Service Unavailable"; the System Event Log records the same set of five 5011 events followed by the AOSService application pool being disabled.

Since this system was working prior to refreshing the data from our UAT instance using a BacPac copy, I assume there is something wrong in the database, but am currently at a loss to know where to start. As mentioned before, I have used Visual Studio to do a complete rebuild and resynchronise database, but this hasn't fixed it.

My next step will be to build a local VM and refresh it with the same data to see if it has the same problem. If it doesn't I can just delete/redeploy the cloud instance, however, if it has the same error, then I am not sure how to proceed, since there don't seem to be any pointers as to what the issue is.

Obviously, I would prefer to simply fix whatever data is causing this, since building a new instance will take significant time, but without some indication of where the problem is, I'm stuck.

Any help would be gratefully received.

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,917 Super User 2025 Season 2 on at

    Hi Derek,

    It could be indeed something related to the database. Do you have a backup of the former DEV database? If so, did you try to restore it and see if then the environment is working correctly then?

  • Verified answer
    StarNamer Profile Picture
    on at

    OK, so I swapped back to the old database and found an error when I tried to sync. It seems some partially finished code had been checked in which was trying to create a relation on a data entity extension with the same name as an existing relation on the extension in the (sys) layer. Once I deleted it all was well with the old db, and, unsurprisingly, everything worked on the new one too.

    I think I need some way to test that what's been checked in works!

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans