340 references to Error
Aspire.Dashboard (6)
Aspire.Hosting (6)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (5)
Aspire.Playground.Tests (2)
Aspire.RabbitMQ.Client (1)
Aspire.RabbitMQ.Client.Tests (3)
BuildValidator (1)
HttpStress (1)
IIS.Tests (1)
InMemory.FunctionalTests (20)
ResponseTests.cs (15)
982var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
1021var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
1061var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
1096var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
1294var error = LogMessages.Where(message => message.LogLevel == LogLevel.Error);
1332Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error);
1368Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error);
1404Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error);
2464Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count());
2524Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count());
2664Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count());
2711Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
2756Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error);
2789Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error);
4133Assert.Contains(TestSink.Writes, w => w.EventId.Id == 13 && w.LogLevel == LogLevel.Error
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (12)
LoggingExtensions.cs (12)
95[LoggerMessage(12, LogLevel.Error, "Message contains error: '{Error}', error_description: '{ErrorDescription}', error_uri: '{ErrorUri}'.", EventName = "ResponseError")]
98[LoggerMessage(52, LogLevel.Error, "Message contains error: '{Error}', error_description: '{ErrorDescription}', error_uri: '{ErrorUri}', status code '{StatusCode}'.", EventName = "ResponseErrorWithStatusCode")]
101[LoggerMessage(17, LogLevel.Error, "Exception occurred while processing message.", EventName = "ExceptionProcessingMessage")]
119[LoggerMessage(43, LogLevel.Error, "Unable to read the 'id_token', no suitable ISecurityTokenValidator was found for: '{IdToken}'.", EventName = "UnableToReadIdToken")]
122[LoggerMessage(40, LogLevel.Error, "The Validated Security Token must be of type JwtSecurityToken, but instead its type is: '{SecurityTokenType}'", EventName = "InvalidSecurityTokenType")]
125[LoggerMessage(41, LogLevel.Error, "Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{IdToken}'.", EventName = "UnableToValidateIdToken")]
155[LoggerMessage(47, LogLevel.Error, "The remote signout request was ignored because the 'sid' parameter " +
159[LoggerMessage(48, LogLevel.Error, "The remote signout request was ignored because the 'sid' parameter didn't match " +
169[LoggerMessage(54, LogLevel.Error, "The remote signout request was ignored because the 'iss' parameter " +
173[LoggerMessage(55, LogLevel.Error, "The remote signout request was ignored because the 'iss' parameter didn't match " +
177[LoggerMessage(56, LogLevel.Error, "Unable to validate the 'id_token', no suitable TokenHandler was found for: '{IdToken}'.", EventName = "UnableToValidateIdTokenFromHandler")]
180[LoggerMessage(57, LogLevel.Error, "The Validated Security Token must be of type JsonWebToken, but instead its type is: '{SecurityTokenType}.'", EventName = "InvalidSecurityTokenTypeFromHandler")]
Microsoft.AspNetCore.Authentication.WsFederation (1)
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components.Server (7)
Microsoft.AspNetCore.Components.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.DataProtection (13)
LoggingExtensions.cs (13)
103[LoggerMessage(21, LogLevel.Error, "An exception occurred while processing the revocation element '{RevocationElement}'. Cannot continue keyring processing.", EventName = "ExceptionWhileProcessingRevocationElement")]
112[LoggerMessage(24, LogLevel.Error, "An exception occurred while processing the key element '{Element}'.", EventName = "ExceptionOccurredWhileProcessingTheKeyElement")]
121[LoggerMessage(28, LogLevel.Error, "An error occurred while encrypting to X.509 certificate with thumbprint '{Thumbprint}'.", EventName = "ErrorOccurredWhileEncryptingToX509CertificateWithThumbprint")]
127[LoggerMessage(30, LogLevel.Error, "An exception occurred while trying to resolve certificate with thumbprint '{Thumbprint}'.", EventName = "ExceptionOccurredWhileTryingToResolveCertificateWithThumbprint")]
169[LoggerMessage(43, LogLevel.Error, "An exception occurred while trying to decrypt the element.", EventName = "ExceptionOccurredTryingToDecryptElement")]
181[LoggerMessage(47, LogLevel.Error, "An error occurred while refreshing the key ring. Will try again in 2 minutes.", EventName = "ErrorOccurredWhileRefreshingKeyRing")]
184[LoggerMessage(48, LogLevel.Error, "An error occurred while reading the key ring.", EventName = "ErrorOccurredWhileReadingKeyRing")]
187[LoggerMessage(49, LogLevel.Error, "The key ring does not contain a valid default protection key. The data protection system cannot create a new key because auto-generation of keys is disabled. For more information go to http://aka.ms/dataprotectionwarning", EventName = "KeyRingDoesNotContainValidDefaultKey")]
202[LoggerMessage(54, LogLevel.Error, "An error occurred while encrypting to Windows DPAPI.", EventName = "ErrorOccurredWhileEncryptingToWindowsDPAPI")]
208[LoggerMessage(56, LogLevel.Error, "An error occurred while encrypting to Windows DPAPI-NG.", EventName = "ErrorOccurredWhileEncryptingToWindowsDPAPING")]
253[LoggerMessage(72, LogLevel.Error, "The key ring's default data protection key {KeyId:B} has been revoked.", EventName = "KeyRingDefaultKeyIsRevoked")]
262[LoggerMessage(75, LogLevel.Error, "Failed to delete file '{FileName}'. Not attempting further deletions.", EventName = "FailedToDeleteFile")]
268[LoggerMessage(77, LogLevel.Error, "Failed to delete registry key '{RegistryKeyName}', value '{ValueName}'. Not attempting further deletions.", EventName = "FailedToRemoveDataFromRegistryKeyValue")]
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (5)
DiagnosticsEntityFrameworkCoreLoggerExtensions.cs (5)
10[LoggerMessage(1, LogLevel.Error, "No context type was specified. Ensure the form data from the request includes a 'context' value, specifying the context type name to apply migrations for.", EventName = "NoContextType")]
13[LoggerMessage(3, LogLevel.Error, "The context type '{ContextTypeName}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<>() inside the UseServices(...) call in your application startup code.", EventName = "ContextNotRegistered")]
25[LoggerMessage(7, LogLevel.Error, "An error occurred while applying the migrations for '{ContextTypeName}'. See InnerException for details:", EventName = "MigrationsEndPointException")]
46[LoggerMessage(5, LogLevel.Error, "The context type '{ContextTypeName}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<>() inside the UseServices(...) call in your application startup code. Skipping display of the database error page.", EventName = "ContextNotRegistered")]
49[LoggerMessage(7, LogLevel.Error, "An exception occurred while calculating the database error page content. Skipping display of the database error page.", EventName = "DatabaseErrorPageException")]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Http.Connections (3)
Microsoft.AspNetCore.Http.Connections.Client (7)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.HttpSys (21)
HttpSysListener.Log.cs (5)
12[LoggerMessage(LoggerEventIds.ListenerDisposeError, LogLevel.Error, "Dispose", EventName = "ListenerDisposeError")]
18[LoggerMessage(LoggerEventIds.HttpSysListenerCtorError, LogLevel.Error, ".Ctor", EventName = "HttpSysListenerCtorError")]
21[LoggerMessage(LoggerEventIds.ListenerStartError, LogLevel.Error, "Start", EventName = "ListenerStartError")]
27[LoggerMessage(LoggerEventIds.ListenerStopError, LogLevel.Error, "Stop", EventName = "ListenerStopError")]
33[LoggerMessage(LoggerEventIds.RequestValidationFailed, LogLevel.Error, "Error validating request {RequestId}", EventName = "RequestValidationFailed")]
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\LoggerExtensions.cs (3)
29[LoggerMessage(4, LogLevel.Error, BadDeveloperCertificateStateMessage, EventName = "BadDeveloperCertificateState")]
35[LoggerMessage(6, LogLevel.Error, "The certificate file at '{CertificateFilePath}' can not be found, contains malformed data or does not contain a certificate.", EventName = "MissingOrInvalidCertificateFile")]
38[LoggerMessage(7, LogLevel.Error, "The certificate key file at '{CertificateKeyFilePath}' can not be found, contains malformed data or does not contain a PEM encoded key in PKCS8 format.", EventName = "MissingOrInvalidCertificateKeyFile")]
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.Session.Tests (4)
Microsoft.AspNetCore.SignalR.Client.Core (22)
HubConnection.Log.cs (19)
78[LoggerMessage(7, LogLevel.Error, "Sending Invocation '{InvocationId}' failed.", EventName = "FailedToSendInvocation")]
102[LoggerMessage(12, LogLevel.Error, "Connection is shutting down due to an error.", EventName = "ShutdownWithError")]
132[LoggerMessage(23, LogLevel.Error, "Unsolicited response received for invocation '{InvocationId}'.", EventName = "ReceivedUnexpectedResponse")]
144[LoggerMessage(27, LogLevel.Error, "An exception was thrown in the handler for the Closed event.", EventName = "ErrorDuringClosedEvent")]
153[LoggerMessage(34, LogLevel.Error, "Invoking client side method '{MethodName}' failed.", EventName = "ErrorInvokingClientSideMethod")]
156[LoggerMessage(35, LogLevel.Error, "The underlying connection closed while processing the handshake response. See exception for details.", EventName = "ErrorReceivingHandshakeResponse")]
159[LoggerMessage(36, LogLevel.Error, "Server returned handshake error: {Error}", EventName = "HandshakeServerError")]
165[LoggerMessage(38, LogLevel.Error, "Received close message with an error: {Error}", EventName = "ReceivedCloseWithError")]
180[LoggerMessage(43, LogLevel.Error, "Error starting connection.", EventName = "ErrorStartingConnection")]
209[LoggerMessage(50, LogLevel.Error, "The server connection was terminated with an error.", EventName = "ServerDisconnectedWithError")]
236[LoggerMessage(57, LogLevel.Error, "Failed to bind arguments received in invocation '{InvocationId}' of '{MethodName}'.", EventName = "ArgumentBindingFailure")]
257[LoggerMessage(67, LogLevel.Error, "The HubConnection failed to transition from the {ExpectedState} state to the {NewState} state because it was actually in the {ActualState} state.", EventName = "StateTransitionFailed")]
263[LoggerMessage(69, LogLevel.Error, "HubConnection reconnecting due to an error.", EventName = "ReconnectingWithError")]
278[LoggerMessage(74, LogLevel.Error, "An exception was thrown in the handler for the Reconnecting event.", EventName = "ErrorDuringReconnectingEvent")]
281[LoggerMessage(75, LogLevel.Error, "An exception was thrown in the handler for the Reconnected event.", EventName = "ErrorDuringReconnectedEvent")]
284[LoggerMessage(76, LogLevel.Error, $"An exception was thrown from {nameof(IRetryPolicy)}.{nameof(IRetryPolicy.NextRetryDelay)}().", EventName = "ErrorDuringNextRetryDelay")]
299[LoggerMessage(81, LogLevel.Error, "Received an invalid handshake response.", EventName = "ErrorInvalidHandshakeResponse")]
305[LoggerMessage(82, LogLevel.Error, "The handshake timed out after {HandshakeTimeoutSeconds} seconds.", EventName = "ErrorHandshakeTimedOut")]
308[LoggerMessage(83, LogLevel.Error, "The handshake was canceled by the client.", EventName = "ErrorHandshakeCanceled")]
Internal\InvocationRequest.cs (3)
250[LoggerMessage(5, LogLevel.Error, "Invocation {InvocationId} caused an error trying to write a stream item.", EventName = "ErrorWritingStreamItem")]
253[LoggerMessage(6, LogLevel.Error, "Invocation {InvocationId} received a completion result, but was invoked as a streaming invocation.", EventName = "ReceivedUnexpectedComplete")]
258[LoggerMessage(7, LogLevel.Error, "Invocation {InvocationId} received stream item but was invoked as a non-streamed invocation.", EventName = "StreamItemOnNonStreamInvocation")]
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (5)
Internal\RedisLog.cs (5)
40[LoggerMessage(7, LogLevel.Error, "Not connected to Redis.", EventName = "NotConnected")]
46[LoggerMessage(9, LogLevel.Error, "Connection to Redis failed.", EventName = "ConnectionFailed")]
55[LoggerMessage(12, LogLevel.Error, "Received a client result for protocol {HubProtocol} which is not supported by this server. This likely means you have different versions of your server deployed.", EventName = "MismatchedServers")]
58[LoggerMessage(13, LogLevel.Error, "Error forwarding client result with ID '{InvocationID}' to server.", EventName = "ErrorForwardingResult")]
61[LoggerMessage(14, LogLevel.Error, "Error connecting to Redis.", EventName = "ErrorConnecting")]
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.SpaProxy (2)
Microsoft.CodeAnalysis.LanguageServer (4)
Microsoft.Extensions.Diagnostics.HealthChecks (4)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (10)
Logging\FakeLoggerTests.cs (9)
46Assert.Equal(LogLevel.Error, records[1].Level);
54Assert.Equal(LogLevel.Error, logger.LatestRecord.Level);
71logger.Log<int>(LogLevel.Error, new EventId(0), 42, null, (_, _) => "MESSAGE");
99logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE");
113logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE");
129logger.Log(LogLevel.Error, new EventId(0), dt, null, (_, _) => "MESSAGE");
155Assert.True(logger.IsEnabled(LogLevel.Error));
166Assert.True(logger.IsEnabled(LogLevel.Error));
206options.FilteredLevels.Add(LogLevel.Error);
Microsoft.Extensions.Hosting (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (6)
Microsoft.Extensions.Http.Diagnostics.Tests (6)
Microsoft.Extensions.Logging (2)
src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
37LogLevel.Error,
Microsoft.Extensions.Logging.Abstractions (5)
LoggerExtensions.cs (4)
312logger.Log(LogLevel.Error, eventId, exception, message, args);
329logger.Log(LogLevel.Error, eventId, message, args);
346logger.Log(LogLevel.Error, exception, message, args);
362logger.Log(LogLevel.Error, message, args);
src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
37LogLevel.Error,
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.Console (4)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (2)
Microsoft.Extensions.Logging.TraceSource (1)
Microsoft.Extensions.ML (3)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.Telemetry.PerformanceTests (8)
Microsoft.Extensions.Telemetry.Tests (5)
Logging\ExtendedLoggerTests.cs (4)
213logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0");
214logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0b"), null, null, (_, _) => "MSG0b");
451logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0");
452logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0b"), null, ex, (_, _) => "MSG0b");
Microsoft.Gen.Logging.Generated.Tests (66)
LogMethodTests.cs (17)
69fakeLogger.ControlLevel(LogLevel.Error, false);
76LevelTestExtensions.M8(logger, LogLevel.Error);
230ConstructorVariationsTestExtensions.M1(logger, LogLevel.Error, "One");
233Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
246ConstructorVariationsTestExtensions.M3(logger, LogLevel.Error, "Three");
249Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
262ConstructorVariationsTestExtensions.M5(logger, LogLevel.Error, "Five");
265Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
363Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
419Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
465LevelTestExtensions.M11(logger, LogLevel.Error);
467Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
494instance.NoParamsWithLevel(LogLevel.Error);
497Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
547ExceptionTestExtensions.M3(exception, logger, LogLevel.Error);
553Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
592Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
test\Generators\Microsoft.Gen.Logging\TestClasses\ArgTestExtensions.cs (10)
11[LoggerMessage(0, LogLevel.Error, "M1")]
14[LoggerMessage(1, LogLevel.Error, "M2 {p1}")]
17[LoggerMessage(2, LogLevel.Error, "M3 {p1} {p2}")]
20[LoggerMessage(3, LogLevel.Error, "M4")]
23[LoggerMessage(4, LogLevel.Error, "M5 {p2}")]
26[LoggerMessage(5, LogLevel.Error, "M6 {p2}")]
29[LoggerMessage(6, LogLevel.Error, "M7 {p1}")]
33[LoggerMessage(7, LogLevel.Error, "M8{p1}{p2}{p3}{p4}{p5}{p6}{p7}")]
36[LoggerMessage(8, LogLevel.Error, "M9 {p1} {p2} {p3} {p4} {p5} {p6} {p7}")]
40[LoggerMessage(9, LogLevel.Error, "M10{p1}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\CollectionTestExtensions.cs (9)
10[LoggerMessage(0, LogLevel.Error, "M0")]
13[LoggerMessage(1, LogLevel.Error, "M1{p0}")]
16[LoggerMessage(2, LogLevel.Error, "M2{p0}{p1}")]
19[LoggerMessage(3, LogLevel.Error, "M3{p0}{p1}{p2}")]
22[LoggerMessage(4, LogLevel.Error, "M4{p0}{p1}{p2}{p3}")]
25[LoggerMessage(5, LogLevel.Error, "M5{p0}{p1}{p2}{p3}{p4}")]
28[LoggerMessage(6, LogLevel.Error, "M6{p0}{p1}{p2}{p3}{p4}{p5}")]
32[LoggerMessage(7, LogLevel.Error, "M7{p0}{p1}{p2}{p3}{p4}{p5}{p6}")]
35[LoggerMessage(8, LogLevel.Error, "M8{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\EnumerableTestExtensions.cs (15)
12[LoggerMessage(0, LogLevel.Error, "M0")]
15[LoggerMessage(1, LogLevel.Error, "M1{p0}")]
18[LoggerMessage(2, LogLevel.Error, "M2{p0}{p1}")]
21[LoggerMessage(3, LogLevel.Error, "M3{p0}{p1}{p2}")]
24[LoggerMessage(4, LogLevel.Error, "M4{p0}{p1}{p2}{p3}")]
27[LoggerMessage(5, LogLevel.Error, "M5{p0}{p1}{p2}{p3}{p4}")]
30[LoggerMessage(6, LogLevel.Error, "M6{p0}{p1}{p2}{p3}{p4}{p5}")]
35[LoggerMessage(7, LogLevel.Error, "M7{p0}{p1}{p2}{p3}{p4}{p5}{p6}")]
38[LoggerMessage(8, LogLevel.Error, "M8{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}")]
41[LoggerMessage(9, LogLevel.Error, "M9{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}{p8}")]
44[LoggerMessage(10, LogLevel.Error, "M10{p1}{p2}{p3}")]
47[LoggerMessage(11, LogLevel.Error, "M11{p1}")]
50[LoggerMessage(12, LogLevel.Error, "M12{class}")]
53[LoggerMessage(13, LogLevel.Error, "M13{p1}")]
56[LoggerMessage(14, LogLevel.Error, "M14{p1}")]
Sockets.BindTests (1)
Sockets.FunctionalTests (1)
TestProject.AppHost (1)