タグ: .NET10

  • 「ASP.NET Core does not support multiple apps in the same app pool 」のエラー

    IISにテストするアプリをデプロイして、アクセスしたら「ASP.NET Core does not support multiple apps in the same app pool 」がでた。このエラーは、1つのアプリケーションプールに対して、1つのアプリを割り当てる必要があるので、同じアプリケーションプールに複数のアプリが割当たっていた場合、2つ目のアプリで表示されるものだ。このエラーがでている場合は、アプリケーションプールを新しく作って、割り当てなおせばよい。

    なお、昔は1つのアプリケーションプールに複数アプリだった。.NET Framework 4.8系だと、このエラーが出なかったりするので、古いタイプのアプリ管理をしていると、やってしまうことがある。

    IISのアプリにアクセスしたときに表示されたエラー

    HTTP Error 500.35 - ASP.NET Core does not support multiple apps in the same app pool 
    
    Common solutions to this issue: 
    Select a different app pool to host this app. 
    Troubleshooting steps: 
    • Check the system event log for error messages 
    • Enable logging the application process' stdout messages 
    • Attach a debugger to the application process and inspect 
    
    For more guidance on diagnosing and handling these errors, visit Troubleshoot ASP.NET Core on Azure App Service and IIS.
  • .NET 10.0がリリースされた。

    .NETの新しいLTSバージョンの、.NET 10.0が2025年11月11日にリリースされた。ぼちぼち、.NET 8.0のアプリのコンバートや実行環境の変更を試さないと。Visual StudioもVisual Studio 2026(v18.0)になるので、これもインストールしなきゃ。

    https://dotnet.microsoft.com/ja-jp/download/dotnet/10.0

    前回の、.NET 6.0 から .NET 8.0 への移行で学んだことは、動くけれど、長期間動作させると新機能などにより、予期せぬ不具合が具現化するかもしれないということ。今回も気を付けないと。