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

Cannot start AOS web service after opening visual studio project and IIS worker process starts

(1) ShareShare
ReportReport
Posted on by 2,707
Hi,
 
Recently hit a problem on my dev environment, my D365 Finance and Operations tier 1 environment works fine until I open visual studio 2022 and open a development project (any one).
 
What appears to happen is the IIS worker process task starts up and kills the AOS service task.  When I try to restart the AOS service it tells me the worker IIS process has the port 443.
 
If I kill that process I can start the application again.
 
Can anyone help me out here?
 
Thanks
Kauto.
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,277 Super User 2026 Season 1 on at
    Hi Kauto,
     
    This is intended behavior. IIS express is used when development process is active in a cloud hosted development environment. The application should be available using both modi. 
  • Kauto Profile Picture
    2,707 on at
    Hi Andre
     
    Yes I have been a developer with this and AX for over 20 years.
     
    But never encountered this behaviour - the net effect is that I cannot debug or simulatenously run D365 application and visual studio.
     
    Are there certain settings I need to tweak or change?
  • Syed Amir Ali Profile Picture
    205 on at
    Hey, 

    Option: 1 
    Run the iisreset command in Command Prompt. Then try to restart the AOS Web Service manually if it does not start automatically.



    Option: 2

    Rebuild your custom models without performing a database synchronization, and then attempt to restart the AOS services again.


    Regards,
    Amir. 
  • Kauto Profile Picture
    2,707 on at
    Hi Amir
     
    Whilst that work normally this still doesn't fix my inability to run visual studio with the IIS worker process and run the application at the same time.
     
    Opening visual studio starts the IIS worker process which kills the AOS service and runs the worker process on the 443 port stopping the AOS service from restarting.
     
    This prevents me using visual studio (build and debug) and run the application at the same time. 
     
    I have started deployment of a replacement enviroment because I cannot work out what has gone wrong.
  • André Arnaud de Calavon Profile Picture
    303,277 Super User 2026 Season 1 on at
    Hi Kauto,

    A follow up question would be to validate this in another environment. You are already deploying a new one. What I noticed the past years is that sometimes the application was not running where starting Visual Studio solved that. Your issue is vice versa. 
     
    Please let us know the result when you test it in the new environment.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 510 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans