Open
Description
Failed Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests.StartupTests.CheckInvalidHostingModelParameter [3 s]
Error Message:
No entries matched by 'Could not load configuration. Exception message:
Unknown hosting model 'bogus'. Please specify either hostingModel="inprocess" or hostingModel="outofprocess" in the web.config file.'
Expected: True
Actual: False
Stack Trace:
at Microsoft.AspNetCore.Server.IIS.FunctionalTests.EventLogHelpers.AssertEntry(String regexString, IEnumerable`1 entries, Boolean allowMultiple) in /_/src/Servers/IIS/IIS/test/Common.FunctionalTests/Infrastructure/EventLogHelpers.cs:line 72
at Microsoft.AspNetCore.Server.IIS.FunctionalTests.EventLogHelpers.VerifyEventLogEvents(IISDeploymentResult deploymentResult, String[] expectedRegexMatchString) in /_/src/Servers/IIS/IIS/test/Common.FunctionalTests/Infrastructure/EventLogHelpers.cs:line 44
at Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests.StartupTests.CheckInvalidHostingModelParameter() in /_/src/Servers/IIS/IIS/test/Common.LongTests/StartupTests.cs:line 543
--- End of stack trace from previous location ---
Standard Output Messages:
| [0.001s] TestLifetime Information: Starting test CheckInvalidHostingModelParameter at 2024-03-26T18:55:28
| [0.006s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Deploying [Variation] :: ServerType=IIS, Runtime=CoreClr, Arch=x64, BaseUrlHint=, Publish=True
| [0.006s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Microsoft Windows NT 10.0.22000.0
| [0.007s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Using prepublished application from C:\h\w\A3C208DD\w\9AB6090E\e\InProcessNewShimWebSite-Portable
| [0.012s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50\runtimes\win-x64\nativeassets\netcoreapp2.2
| [0.012s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying aspnetcorev2_inprocess.dll
| [0.013s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50\runtimes\win-x64\nativeassets
| [0.013s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50\runtimes\win-x64
| [0.014s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50\runtimes\win-x86\nativeassets\netcoreapp2.2
| [0.014s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying aspnetcorev2_inprocess.dll
| [0.015s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50\runtimes\win-x86\nativeassets
| [0.015s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50\runtimes\win-x86
| [0.015s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50\runtimes
| [0.015s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50\wwwroot
| [0.015s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying static.txt
| [0.016s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Processing C:\h\w\A3C208DD\t\b3856bfd8c8148dfb0772a3862bf5f50
| [0.016s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying InProcessWebSite.deps.json
| [0.016s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying InProcessWebSite.dll
| [0.021s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying InProcessWebSite.exe
| [0.022s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying InProcessWebSite.pdb
| [0.022s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying InProcessWebSite.runtimeconfig.json
| [0.023s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Authentication.Abstractions.dll
| [0.024s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Authentication.Core.dll
| [0.024s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Connections.Abstractions.dll
| [0.025s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Hosting.Abstractions.dll
| [0.025s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Hosting.dll
| [0.026s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Hosting.Server.Abstractions.dll
| [0.026s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Http.Abstractions.dll
| [0.027s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Http.dll
| [0.027s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Http.Extensions.dll
| [0.028s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Http.Features.dll
| [0.032s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.HttpOverrides.dll
| [0.033s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.HttpsPolicy.dll
| [0.033s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.ResponseCompression.dll
| [0.034s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Server.IIS.dll
| [0.034s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Server.IISIntegration.dll
| [0.035s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Server.Kestrel.Core.dll
| [0.036s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Server.Kestrel.dll
| [0.036s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Server.Kestrel.Https.dll
| [0.037s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.dll
| [0.038s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
| [0.042s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.AspNetCore.WebUtilities.dll
| [0.043s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Configuration.Abstractions.dll
| [0.043s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Configuration.Binder.dll
| [0.044s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Configuration.dll
| [0.045s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Configuration.EnvironmentVariables.dll
| [0.045s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Configuration.FileExtensions.dll
| [0.046s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Configuration.Json.dll
| [0.046s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.DependencyInjection.Abstractions.dll
| [0.047s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.DependencyInjection.dll
| [0.047s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.FileProviders.Abstractions.dll
| [0.048s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.FileProviders.Physical.dll
| [0.054s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.FileSystemGlobbing.dll
| [0.080s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Hosting.Abstractions.dll
| [0.084s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Logging.Abstractions.dll
| [0.084s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Logging.Configuration.dll
| [0.085s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Logging.Console.dll
| [0.085s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Logging.dll
| [0.086s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.ObjectPool.dll
| [0.087s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Options.ConfigurationExtensions.dll
| [0.087s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Options.dll
| [0.088s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Extensions.Primitives.dll
| [0.088s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Microsoft.Net.Http.Headers.dll
| [0.089s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying Newtonsoft.Json.dll
| [0.093s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying System.IO.Pipelines.dll
| [0.093s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying web.config
| [0.094s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Debug: Copying xunit.assert.dll
| [0.099s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: applicationhost.config path C:\h\w\A3C208DD\t\c83fe87f-15af-4f8d-8eff-dcff20e18eb6
| [0.131s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: W3SVC status Running
| [0.157s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Starting pool, state: Started
| [0.200s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Starting site, state: Started
| [0.222s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Site has started.
| [0.224s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Successfully finished IIS application directory setup.
| [0.224s] Default Web Site Debug: Method: GET, RequestUri: 'http://localhost:57550/HelloWorld', Version: 1.1, Content: <null>, Headers:
| {
| }
| [0.878s] Default Web Site Warning: StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
| {
| Server: Microsoft-IIS/10.0
| Date: Tue, 26 Mar 2024 18:55:29 GMT
| Content-Type: text/html
| Content-Length: 0
| }
| [0.878s] Default Web Site Warning:
| [0.891s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Stopping site, state: Stopped
| [0.894s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Stopping pool, state: Stopping
| [3.485s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Site has stopped successfully.
| [3.555s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Host process shutting down.
| [3.555s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: [2024-03-26T18:55:29.104Z, PID: 2088] [aspnetcorev2.dll] Initializing logs for 'C:\h\w\A3C208DD\w\9AB6090E\e\ANCM\x64\aspnetcorev2.dll'. Process Id: 2088. File Version: 19.0.24086.0. Description: IIS ASP.NET Core Module V2. Commit: .
| [3.555s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: [2024-03-26T18:55:29.114Z, PID: 2088] [aspnetcorev2.dll] Event Log: 'Could not load configuration. Exception message:
| [3.555s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: Unknown hosting model 'bogus'. Please specify either hostingModel="inprocess" or hostingModel="outofprocess" in the web.config file.'
| [3.555s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: End Event Log Message.
| [3.555s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: [2024-03-26T18:55:29.142Z, PID: 2088] [aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::OnGlobalStopListening
| [3.555s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: [2024-03-26T18:55:29.154Z, PID: 2088] [aspnetcorev2.dll] Stopping application '/LM/W3SVC/1/ROOT'
| [3.555s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: [2024-03-26T18:55:30.287Z, PID: 2088] [aspnetcorev2.dll] ASPNET_CORE_GLOBAL_MODULE::Terminate
| [3.576s] Microsoft.AspNetCore.Server.IntegrationTesting.IIS.IISDeployer Information: [Time]: Total time taken for this test variation '3.5695353' seconds
| [3.742s] Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests.StartupTests Error: Test threw an exception.
| Xunit.Sdk.TrueException: No entries matched by 'Could not load configuration. Exception message:
| Unknown hosting model 'bogus'. Please specify either hostingModel="inprocess" or hostingModel="outofprocess" in the web.config file.'
| Expected: True
| Actual: False
| at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
| at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 116
| at Microsoft.AspNetCore.Server.IIS.FunctionalTests.EventLogHelpers.AssertEntry(String regexString, IEnumerable`1 entries, Boolean allowMultiple) in /_/src/Servers/IIS/IIS/test/Common.FunctionalTests/Infrastructure/EventLogHelpers.cs:line 72
| at Microsoft.AspNetCore.Server.IIS.FunctionalTests.EventLogHelpers.VerifyEventLogEvents(IISDeploymentResult deploymentResult, String[] expectedRegexMatchString) in /_/src/Servers/IIS/IIS/test/Common.FunctionalTests/Infrastructure/EventLogHelpers.cs:line 44
| at Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests.StartupTests.CheckInvalidHostingModelParameter() in /_/src/Servers/IIS/IIS/test/Common.LongTests/StartupTests.cs:line 543
| at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass48_0.<<InvokeTestMethodAsync>b__1>d.MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 264
| --- End of stack trace from previous location ---
| at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in /_/src/xunit.execution/Sdk/Frameworks/ExecutionTimer.cs:line 48
| at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /_/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90