Здравствуйте.
Есть два разных сервера.
- Версия 3.48.4 на Win 11 SQL 2019
- Версия 3.47.5 на Win 7 SQL 2012
И на обоих серврах в логах одинаковые ошибки и странный отсутствующий путь…
00-34a6e2e271eda70898de1babaaa89817-eefd326da9e2d197-00
2022-11-14 02:51:22.8600 E:93 Microsoft.AspNetCore.Server.Kestrel Connection id “0HMM5AOC351T5”, Request id “0HMM5AOC351T5:00000002”: An unhandled exception was thrown by the application. 1. [Microsoft.AspNetCore.SpaServices.Extensions] System.InvalidOperationException: The SPA default page middleware could not return the default page ‘/index.html’ because it was not found, and no other middleware handled the request.
Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
Стек вызовов:
at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.b__1(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 121
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
HResult:-2146233079
00-41dd1133761933721e629a09b1db9999-60105e13d1123486-00
2022-11-14 04:09:44.4036 E:131 Microsoft.AspNetCore.Server.Kestrel Connection id “0HMM5AOC352KT”, Request id “0HMM5AOC352KT:00000002”: An unhandled exception was thrown by the application. 1. [Microsoft.AspNetCore.SpaServices.Extensions] System.InvalidOperationException: The SPA default page middleware could not return the default page ‘/index.html’ because it was not found, and no other middleware handled the request.
Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
Стек вызовов:
at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.b__1(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 121
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
HResult:-2146233079
2 лог
2022-11-10 00:00:13.6786 E:39 Microsoft.AspNetCore.Server.Kestrel Connection id “0HMLMI8R636LS”, Request id “0HMLMI8R636LS:00000002”: An unhandled exception was thrown by the application. 1. [Microsoft.AspNetCore.SpaServices.Extensions] System.InvalidOperationException: The SPA default page middleware could not return the default page ‘/index.html’ because it was not found, and no other middleware handled the request.
Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
Стек вызовов:
at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.b__1(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 121
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
HResult:-2146233079
00-909c2e44019381a426e51d71a44d11c8-c3061452c8528b6f-00
2022-11-10 00:00:15.4012 E:39 Microsoft.AspNetCore.Server.Kestrel Connection id “0HMLMI8R636LT”, Request id “0HMLMI8R636LT:00000002”: An unhandled exception was thrown by the application. 1. [Microsoft.AspNetCore.SpaServices.Extensions] System.InvalidOperationException: The SPA default page middleware could not return the default page ‘/index.html’ because it was not found, and no other middleware handled the request.
Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.
Стек вызовов:
at Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware.<>c__DisplayClass0_0.b__1(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 121
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
HResult:-2146233079
Может кто подскажет, что это и как исправить…