Fix Application Pool Conflicts on IIS by info.odysseyx@gmail.com August 28, 2024 written by info.odysseyx@gmail.com August 28, 2024 0 comment 6 views 6 When hosting a web application on IIS, you may encounter HTTP Error 500.35: “ASP.NET Core does not support multiple apps in the same app pool.” This error typically occurs when you try to run two or more ASP.NET Core applications in the same application pool. This issue can be frustrating, especially if you are not aware of the boundaries that lead to this issue. Cause of the problemASP.NET Core applications have specific hosting requirements, especially when running on IIS. Unlike traditional ASP.NET applications, ASP.NET Core restricts you from running multiple applications within the same application pool. The root cause of HTTP Error 500.35 lies in the way ASP.NET Core manages dependencies and the runtime environment. When multiple applications share the same app pool, each application attempts to initialize and manage its own version of the .NET runtime, which can lead to instability and crashes. way out To work around this issue, you can assign a separate application pool by following these steps:• Open IIS Manager.• In the Connections pane, expand the server node and click Application Pools.• Right-click an existing application pool or select Add Application Pool to create a new application pool.• Assign each ASP.NET Core application its own dedicated application pool. If you use the out-of-process hosting model, ensure that the .NET CLR version is set to “No Managed Code.”• To associate each application with its own application pool, right-click the application, select Application Management > Advanced Settings, and then select the appropriate application pool. This should fix the issue. You can also check the event log and stdout log to see where and why it’s failing. System Event Log • Open Event Viewer on the server. • Go to Windows Logs > System to review any error messages or warnings that indicate why the application did not start. Standard output logging • Navigate to the root directory of your ASP.NET Core application. • Open the web.config file in a text editor. • Locate the aspNetCore element and set stdoutLogEnabled=”true” and specify the path to the stdoutLogFile. For example: conclusionHTTP Error 500.35 occurs because ASP.NET Core restricts running multiple applications within the same application pool in IIS. You can effectively resolve this issue by assigning each application to its own application pool, checking the system log, and enabling stdout logging if necessary. Ensuring that each application runs in a separate environment prevents runtime conflicts and improves the stability of your hosted application. For more information and troubleshooting steps, see the official documentation. Troubleshoot ASP.NET Core on Azure App Service and IIS | Microsoft Learn. Source link Share 0 FacebookTwitterPinterestEmail info.odysseyx@gmail.com previous post Azure bot as skill to PVA next post Learn about CAST AI’s transactable partner solutions in Azure Marketplace You may also like Insights from MVPs at the Power Platform Community Conference October 10, 2024 Restoring an MS SQL 2022 DB from a ANF SnapShot October 10, 2024 Your guide to Intune at Microsoft Ignite 2024 October 10, 2024 Partner Blog | Build your team’s AI expertise with upcoming Microsoft partner skilling opportunities October 10, 2024 Attend Microsoft Ignite from anywhere in the world! October 10, 2024 Get tailored support with the new Partner Center AI assistant (preview) October 10, 2024 Leave a Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.