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 19 views 19 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 Why Texas is the ideal home for Apple’s AI Data Center February 27, 2025 AdTAC Agency Cheg has sued Google in AI Overviews February 26, 2025 Apple’s iPhone 16-Launch Launch Event: A sign of things coming? February 25, 2025 Intel’s Modular concept: Why is the time to rewrite the laptop design February 24, 2025 Ride-sharing and Robotaxis Decopled Revenue Model Problems February 17, 2025 Web Raiders run the Global Brut Force attack from 2.5M IPS February 12, 2025 Leave a Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.