266 references to LogError
aspire (44)
Backchannel\AppHostCliBackchannel.cs (1)
387logger.LogError(ex, "Failed to connect to AppHost backchannel. The AppHost must be updated to a version that supports the {BaselineCapability} capability.", BaselineCapability);
Backchannel\AuxiliaryBackchannelMonitor.cs (3)
328logger.LogError(ex, "Error in auxiliary backchannel monitor"); 583logger.LogError(ex, "Failed to connect to socket: {SocketPath}", socketPath); 667logger.LogError(ex, "Failed to connect to socket: {SocketPath}", socketPath);
Backchannel\ExtensionBackchannel.cs (2)
212_logger.LogError(ex, "An unexpected error occurred while trying to connect to the backchannel."); 323_logger.LogError(ex,
Bundles\BundleService.cs (5)
188logger.LogError(ex, "Failed to extract bundle to {Path}", destinationPath); 373logger.LogError(ex, "Failed to promote {TempDir} to {ActiveDir}.", tempDir, activeVersionDir); 538logger.LogError(ex, "Failed to rename legacy directory {Path}.", linkPath); 550logger.LogError(ex, "Failed to create reparse point at {Path} -> {Target}.", linkPath, target); 581logger.LogError(ex, "Rollback failed for link {Path}.", linkPath);
Commands\AppHostLauncher.cs (1)
469logger.LogError(ex, "Failed to start child CLI process");
Commands\DashboardRunCommand.cs (1)
428_logger.LogError(ex, "Failed to start dashboard process: {DashboardPath}", dashboardPath);
Commands\ExportCommand.cs (2)
122_logger.LogError(ex, "Failed to export telemetry data from dashboard"); 129_logger.LogError(ex, "Failed to export telemetry data");
DotNet\DotNetCliRunner.cs (2)
621logger.LogError( 637logger.LogError(ex, "An unexpected error occurred while trying to connect to the backchannel.");
Interaction\ExtensionInteractionService.cs (1)
731_logger.LogError(ex, "Unexpected error in extension task channel processing loop.");
Mcp\Tools\ExecuteResourceCommandTool.cs (1)
176logger.LogError(ex, "Error executing command '{CommandName}' on resource '{ResourceName}'", commandName, resourceName);
Program.cs (4)
211logger.LogError(ex, "Failed to migrate legacy globalsettings.json to {NewPath}.", newPath); 1229logger.LogError(ex, "Failed to load configuration or start CLI."); 1349logger.LogError(ex, "An unexpected error occurred."); 1375logger.LogError(ex, "Failed to export profile capture.");
Projects\FallbackProjectParser.cs (1)
120_logger.LogError(ex, "Failed to parse project file '{ProjectFile}' using fallback parser", projectFile.FullName);
Projects\GuestAppHostProject.cs (5)
283_logger.LogError(ex, "Failed to load configuration from {Directory}", configDir.FullName); 991_logger.LogError(ex, "Code generation failed for {Language} AppHost", DisplayName); 998_logger.LogError(ex, "Failed to run {Language} AppHost", DisplayName); 1650_logger.LogError(ex, "Failed to publish {Language} AppHost", DisplayName); 1810_logger.LogError(ex, "Failed to connect to AppHost server backchannel");
Projects\PrebuiltAppHostServer.cs (2)
288_logger.LogError(ex, "Failed to prepare prebuilt AppHost server"); 298_logger.LogError(ex, "Failed to prepare prebuilt AppHost server");
src\Shared\ChildProcess.cs (3)
273_logger.LogError(terminationFailure, "Failed to stop {FileName}({ProcessId}) after cancellation.", FileName, _processId); 453_logger.LogError(ex, "Failed to verify cleanup of {FileName}({ProcessId}) within {Timeout}.", 543_logger.LogError(
src\Shared\ProcessScope.cs (1)
55_logger.LogError(ex, "Failed to clean up process scope '{Name}' (supervisor PID {Pid}).", _description, ProcessId);
src\Shared\ProcessSupervisor.cs (1)
202logger.LogError(ex, "Process supervisor failed.");
src\Shared\Telemetry\AspireTelemetryBase.cs (1)
221_logger.LogError(exception, message);
src\Shared\Telemetry\MachineInformationProviderBase.cs (1)
46_logger.LogError(ex, "Unable to calculate MAC address hash.");
src\Shared\Telemetry\UnixMachineInformationProvider.cs (3)
79_logger.LogError(ex, "Unable to create directory. {Directory}", directoryPath); 94_logger.LogError(ex, "Unable to write {Value} to disk. {FullPath}", value, fullPath); 121_logger.LogError(ex, "Unable to read value from {FullPath}", path);
src\Shared\Telemetry\WindowsMachineInformationProvider.cs (2)
40_logger.LogError(ex, "Unable to fetch {Key} value from {RegistryRoot}.", DeviceId, RegistryPathRoot); 54_logger.LogError(ex, "Unable to persist {Key} in {RegistryPath}.", DeviceId, RegistryPathRoot);
Telemetry\AspireCliTelemetry.cs (1)
285_logger.LogError(ex, "Error occurred initializing telemetry service.");
Aspire.Cli.Tests (2)
Telemetry\ReportedLogExportTests.cs (1)
166ordinaryLogger.LogError(new InvalidOperationException("local diagnostic"), "Ordinary CLI error");
tests\Shared\Processes\ProcessSupervisorLoggerTests.cs (1)
19sender.LogError(error, "Launch failed.");
Aspire.Dashboard (42)
Components\Controls\Chart\ChartContainer.razor.cs (1)
204Logger.LogError(ex, "Unexpected error in UpdateDataAsync");
Components\Controls\Chart\LiveSparklinesBase.cs (1)
189Logger.LogError(ex, "Unexpected error refreshing metric sparklines.");
Components\Controls\DashboardRunMenu.razor.cs (1)
114Logger.LogError(exception, "Failed to update the pinned state of dashboard run '{RunId}'.", run.RunId);
Components\Controls\TerminalDisconnectedBanner.razor.cs (1)
173Logger.LogError(ex, "Failed to watch the disconnected terminal resource.");
Components\Dialogs\DashboardRunsDialog.razor.cs (1)
83Logger.LogError(exception, "Failed to update the pinned state of dashboard run '{RunId}'.", run.RunId);
Components\Interactions\InteractionsProvider.cs (3)
125Logger.LogError(ex, "Unexpected error while displaying interaction dialogs."); 137Logger.LogError(ex, "Unexpected error while watching interactions."); 648Logger.LogError(ex, "Unexpected error while completing notification interaction {InteractionId}.", interaction.InteractionId);
Components\Layout\MainLayout.razor.cs (2)
139Logger.LogError(exception, "Failed to restore dashboard run '{RunId}'. Falling back to the current run.", selectedRunId); 390Logger.LogError(
Components\Layout\NavigationAvailabilityProvider.cs (1)
87Logger.LogError(ex, "Failed to watch navigation availability.");
Components\Layout\TerminalDock.razor.cs (1)
213Logger.LogError(ex, "Failed to initialize terminal dock controls.");
Components\Legacy\Layout\LegacyMainLayout.razor.cs (2)
127Logger.LogError(exception, "Failed to restore dashboard run '{RunId}'. Falling back to the current run.", selectedRunId); 341Logger.LogError(
Components\Legacy\Layout\ResourceTerminalsAvailabilityProvider.cs (1)
73Logger.LogError(ex, "Failed to watch resource terminal availability.");
Components\Legacy\Pages\ConsoleLogs.razor.cs (1)
869Logger.LogError(ex, "Error watching logs for resource {ResourceName}.", subscription.Resource.Name);
Components\Legacy\Pages\Terminals.razor.cs (1)
179Logger.LogError(ex, "Failed to watch terminal resources.");
Components\Pages\ConsoleLogs.razor.cs (1)
936Logger.LogError(ex, "Error watching logs for resource {ResourceName}.", subscription.Resource.Name);
Components\Pages\Resources.razor.cs (1)
988Logger.LogError(ex, "Error applying route change to the resources view.");
Components\Pages\Terminals.razor.cs (1)
199Logger.LogError(ex, "Failed to watch terminal resources.");
ServiceClient\DashboardClient.cs (5)
399_logger.LogError(ex, "Error loading data from the resource service. For troubleshooting, see {TroubleshootingUrl}", TroubleshootingUrl); 481_logger.LogError(ex, "Error #{ErrorCount} connecting to the resource service. For troubleshooting, see {TroubleshootingUrl}", errorCount, TroubleshootingUrl); 583_logger.LogError(ex, "Error #{ErrorCount} watching {WatchName}. For troubleshooting, see {TroubleshootingUrl}", retryContext.ErrorCount, actionName, TroubleshootingUrl); 767_logger.LogError(ex, "Error writing to interaction request stream."); 1147_logger.LogError(ex, "Error executing command \"{CommandName}\" on resource \"{ResourceName}\": {StatusCode}", command.Name, resourceName, ex.StatusCode);
src\Shared\ChildProcess.cs (3)
273_logger.LogError(terminationFailure, "Failed to stop {FileName}({ProcessId}) after cancellation.", FileName, _processId); 453_logger.LogError(ex, "Failed to verify cleanup of {FileName}({ProcessId}) within {Timeout}.", 543_logger.LogError(
src\Shared\ProcessSupervisor.cs (1)
202logger.LogError(ex, "Process supervisor failed.");
src\Shared\TaskHelpers.cs (1)
37logger.LogError(ex, logMessage ?? "Unexpected error.");
src\Shared\Telemetry\AspireTelemetryBase.cs (1)
221_logger.LogError(exception, message);
src\Shared\Telemetry\MachineInformationProviderBase.cs (1)
46_logger.LogError(ex, "Unable to calculate MAC address hash.");
src\Shared\Telemetry\UnixMachineInformationProvider.cs (3)
79_logger.LogError(ex, "Unable to create directory. {Directory}", directoryPath); 94_logger.LogError(ex, "Unable to write {Value} to disk. {FullPath}", value, fullPath); 121_logger.LogError(ex, "Unable to read value from {FullPath}", path);
src\Shared\Telemetry\WindowsMachineInformationProvider.cs (2)
40_logger.LogError(ex, "Unable to fetch {Key} value from {RegistryRoot}.", DeviceId, RegistryPathRoot); 54_logger.LogError(ex, "Unable to persist {Key} in {RegistryPath}.", DeviceId, RegistryPathRoot);
Telemetry\DashboardTelemetryService.cs (1)
252logger.LogError(ex, "Error occurred initializing dashboard telemetry metadata.");
Telemetry\TelemetryErrorRecorder.cs (1)
32_logger.LogError(exception, message);
Terminal\TerminalWebSocketProxy.cs (2)
275logger.LogError(ex, "Terminal view failed ({ConnectionId}).", connectionId); 390logger.LogError(ex, "Terminal view failed.");
Utils\CallbackThrottler.cs (1)
122_logger.LogError(ex, "Error in callback.");
Aspire.Dashboard.Tests (3)
Integration\ServerRetryHelper.cs (1)
86logger.LogError(ex, "Error running test {retryCount}. Retrying.", retryCount);
Telemetry\DashboardTelemetryLogExportTests.cs (1)
65frameworkLogger.LogError(new InvalidOperationException("secret exception"), "Raw framework error");
Telemetry\DashboardTelemetryServiceTests.cs (1)
181loggerFactory.CreateLogger<DashboardTelemetryService>().LogError(new InvalidOperationException("secret"), "Ordinary error");
Aspire.Hosting (49)
ApplicationModel\ExecutionConfigurationGathererContext.cs (2)
84resourceLogger.LogError(ex, "Failed to resolve environment variable '{EnvironmentVariable}' for resource '{ResourceName}'. A dependency may have failed to start.", kvp.Key, resource.Name); 133resourceLogger.LogError(ex, "Failed to resolve argument for resource '{ResourceName}'. A dependency may have failed to start.", resource.Name);
ApplicationModel\Hex1bAspireTerminal.cs (2)
251_logger.LogError(ex, "Terminal {TerminalId} ({Title}) failed unexpectedly and its session has ended.", Id, Title); 285_logger.LogError(ex, "Disposing terminal {TerminalId} ({Title}) failed.", Id, Title);
ApplicationModel\ResourceCommandService.cs (1)
404logger.LogError(ex, "Error executing command '{CommandName}'.", commandName);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
1854logger.LogError(ex, "Error invoking tool {ToolName} on resource {ResourceName}", toolName, resourceName); 1904logger.LogError(ex, "Error while stopping AppHost");
Backchannel\AuxiliaryBackchannelService.cs (4)
84logger.LogError(ex, "Error accepting client connection on auxiliary backchannel."); 95logger.LogError(ex, "Error in auxiliary backchannel service."); 181logger.LogError(ex, "Error handling client connection on auxiliary backchannel"); 195logger.LogError(ex, "Unexpected error while observing an auxiliary backchannel client");
ConnectionStringBuilderExtensions.cs (1)
107evt.Logger.LogError(ex, "Failed to resolve connection string for resource '{ResourceName}'", r.Name);
Dashboard\DashboardEventHandlers.cs (3)
797defaultDashboardLogger.LogError(ex, "Error reading dashboard logs."); 855defaultDashboardLogger.LogError(ex, "Error reading dashboard logs."); 924distributedApplicationLogger.LogError(ex, "Unexpected error while watching dashboard logs.");
Dashboard\DashboardService.cs (5)
176logger.LogError(ex, "Error while watching interactions."); 519logger.LogError(ex, "Error executing service method '{Method}'.", serverCallContext.Method); 679logger.LogError(ex, "Unexpected error while tunnelling terminal {TerminalId} to the dashboard.", selector.TerminalId); 734logger.LogError(ex, "Unexpected error while watching dock terminals. The dashboard terminal dock will stop receiving updates."); 781logger.LogError(ex, "Failed to dispose terminal {TerminalId}.", terminal.Id);
Dashboard\DashboardServiceData.cs (1)
113logger.LogError(ex, "Error updating resource snapshot for {Name}", @event.Resource.Name);
Dcp\DcpExecutor.cs (3)
1067resourceLogger.LogError(ex, "Failed to create resource {ResourceName}", modelResource.Name); 1109resourceLogger.LogError(ex, "Failed to create resource {ResourceName}", er.ModelResource.Name); 1319_logger.LogError(ex, "Failed to start resource {ResourceName}", resourceReference.ModelResource.Name);
Dcp\DcpHost.cs (1)
281_logger.LogError(ex, "Failed to enable orchestration logging.");
Dcp\DcpResourceWatcher.cs (2)
533_logger.LogError(ex, "Error flushing current logs for {ResourceName}.", resource.Metadata.Name); 720_logger.LogError(ex, "Error streaming logs for {ResourceName}.", resourceName);
Dcp\ExecutableCreator.cs (4)
93resourceLogger.LogError(ex, "{Message}", ex.Message); 103resourceLogger.LogError(ex, "{Message}", failureMessage); 113resourceLogger.LogError(ex, "{Message}", failureMessage); 459resourceLogger.LogError(ex, "{Message}", ex.Message);
Dcp\ResourceLogSource.cs (1)
106logger.LogError(ex, "Unexpected error happened when capturing logs for {Kind} {Name}", resource.Kind, resource.Metadata.Name);
Devcontainers\DevcontainerSettingsWriter.cs (1)
92logger.LogError(ex, "Error writing Devcontainer port forwarding settings batch");
ExternalServiceBuilderExtensions.cs (1)
143e.Logger.LogError(ex, "Failed to get value for URL parameter '{ParameterName}'", resource.UrlParameter?.Name);
Health\ResourceHealthCheckService.cs (3)
68logger.LogError(ex, "Unexpected error ended health monitoring for resource '{ResourceName}'.", resourceName); 280resourceLoggerService.GetLogger(resource).LogError(failure, "ResourceReadyEvent subscriber for '{ResourceName}' failed.", resource.Name); 281logger.LogError(failure, "ResourceReadyEvent subscriber for '{ResourceName}' failed.", resource.Name);
IInteractionService.cs (1)
284options.Logger.LogError(ex, "Error loading options for input '{InputName}'.", options.Input.Name);
Orchestrator\ApplicationOrchestrator.cs (1)
624resourceLogger.LogError(ex, "An error occurred while processing URLs for resource '{ResourceName}': {Message}", resource.Name, ex.Message);
Orchestrator\ParameterProcessor.cs (3)
105logger.LogError(ex, "Failed to handle unresolved parameters."); 124logger.LogError(ex, "Failed to cancel resolved parameter interactions."); 235.LogError(ex, "Failed to initialize parameter resource {ResourceName}.", parameterResource.Name);
Pipelines\DistributedApplicationPipeline.cs (2)
900stepContext.Logger.LogError(ex, "Step '{StepName}' failed.", step.Name); 1010stepContext.Logger.LogError(ex, "Step '{StepName}' failed.", step.Name);
Pipelines\Internal\UserSecretsDeploymentStateManager.cs (1)
47logger.LogError(ex, "Failed to provision Azure resources because user secrets file is not well-formed JSON.");
Publishing\PipelineExecutor.cs (1)
86logger.LogError(ex, ex.Message);
Publishing\ResourceContainerImageManager.cs (2)
545logger.LogError(ex, "Building image for {ResourceName} failed", resource.Name); 1035logger.LogError(ex, "Failed to build container image from Dockerfile for {ResourceName}", resource.Name);
src\Shared\TaskHelpers.cs (1)
37logger.LogError(ex, logMessage ?? "Unexpected error.");
Aspire.Hosting.Azure (10)
AzureProvisioningController.cs (3)
1524_logger.LogError(ex, "Azure operation processing failed."); 1680_logger.LogError(ex, "Azure context notification failed."); 4142resourceLogger.LogError(ex, "Error provisioning {ResourceName}.", resource.AzureResource.Name);
AzurePublishingContext.cs (1)
127Logger.LogError(ex, "Failed to write Azure Bicep templates to {OutputPath}", outputPath);
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (5)
74_logger.LogError(ex, "Failed to retrieve Azure provisioning options."); 177_logger.LogError(ex, "Failed to retrieve Azure tenant information."); 276_logger.LogError(ex, "Failed to retrieve Azure subscription information."); 375_logger.LogError(ex, "Failed to retrieve Azure resource group information."); 470_logger.LogError(ex, "Failed to retrieve Azure region information.");
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
114_logger.LogError(ex, "Failed to retrieve Azure provisioning options.");
Aspire.Hosting.Azure.EntraId (3)
EntraIdResourceExtensions.cs (3)
168logger.LogError(ex, "Failed to provision the Entra ID application. If your tenant does not allow creating registrations, use AddExistingEntraApplication with an existing registration's tenant ID and client ID."); 222logger.LogError(ex, "A {EventName} subscriber failed.", nameof(BeforeResourceStartedEvent)); 294logger.LogError(ex, "Failed to get the value of the {Setting} parameter '{ParameterName}'.", setting, parameter.Name);
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
313logger.LogError(e, "Failed to create database '{DatabaseName}'", databaseResource.DatabaseName);
Aspire.Hosting.Browsers (2)
BrowserLogsCdpConnectionMultiplexer.cs (1)
105_logger.LogError(ex, "Tracked browser CDP event handler failed for subscription '{SubscriptionId}'.", subscription.Id);
BrowserLogsSessionManager.cs (1)
121resourceLogger.LogError(ex, "[{SessionId}] Failed to open tracked browser for '{Url}'.", sessionId, url);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnectionMultiplexer.cs (1)
105_logger.LogError(ex, "Tracked browser CDP event handler failed for subscription '{SubscriptionId}'.", subscription.Id);
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (1)
121resourceLogger.LogError(ex, "[{SessionId}] Failed to open tracked browser for '{Url}'.", sessionId, url);
Aspire.Hosting.DevTunnels (6)
DevTunnelCliClient.cs (1)
597logger?.LogError(ex, "Failed to parse JSON output into type '{TypeName}':\n{Output}", typeof(T).Name, output);
DevTunnelMonitor.cs (4)
197_logger.LogError(ex, DiagnosticPrefix + "Failed to monitor initial tunnel readiness."); 426_logger.LogError(ex, DiagnosticPrefix + "Unable to watch devtunnel output. Health checks will continue reconciling tunnel status."); 458_logger.LogError(ex, DiagnosticPrefix + "Failed to observe tunnel process state."); 654_logger.LogError(ex, DiagnosticPrefix + "Failed to publish endpoint allocation for tunnel port '{PortResource}'.", port.Name);
DevTunnelResourceBuilderExtensions.cs (1)
219portLogger.LogError(ex, "Error trying to create dev tunnel port '{Port}' on tunnel '{Tunnel}': {Error}", tunnelPort, portResource.DevTunnel.TunnelId, ex.Message);
Aspire.Hosting.Dotnet (1)
DotnetProjectBuildCoordinator.cs (1)
1515logger.LogError(
Aspire.Hosting.EntityFrameworkCore (2)
EFMigrationResourceBuilderExtensions.cs (1)
80logger.LogError(ex, "EF Core database update on startup failed for resource '{ResourceName}'.", migrationResource.Name);
EFResourceBuilderExtensions.cs (1)
970logger.LogError(ex, "EF Core {Operation} command failed with exception.", operationDisplayName);
Aspire.Hosting.Foundry (3)
PromptAgent\AzurePromptAgentResource.cs (1)
378logger.LogError(ex, "Failed to deploy prompt agent '{AgentName}'", Name);
Toolbox\FoundryToolboxResource.cs (2)
397logger.LogError(ex, "Failed to validate existing Toolbox '{ToolboxName}'.", Name); 401logger.LogError(ex, "Failed to reconcile Toolbox '{ToolboxName}'.", Name);
Aspire.Hosting.Maui (3)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
371logger.LogError(stopException, "Failed to stop Android resource '{ResourceName}' after its launch handoff timed out. The build lock will remain held until the application stops.", resource.Name);
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
104logger.LogError(ex, "Failed to configure Android environment variables");
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
104logger.LogError(ex, "Failed to configure iOS environment variables");
Aspire.Hosting.MongoDB (1)
MongoDBSingleMemberReplicaSet.cs (1)
79evt.Logger.LogError(ex, "{Message}", annotation.InitializationError);
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
237logger.LogError(e, "Failed to create database '{DatabaseName}'", sqlDatabase.DatabaseName);
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
849logger.LogError(e, "Failed to create database '{DatabaseName}'", npgsqlDatabase.DatabaseName);
Aspire.Hosting.Radius (2)
Publishing\RadiusBicepPublishingContext.cs (1)
113logger.LogError(ex,
Publishing\RadiusDeploymentPipelineStep.cs (1)
643logger.LogError(ex, "Unexpected error during rad deploy for environment '{EnvironmentName}'", _environment.Name);
Aspire.Hosting.RemoteHost (32)
Ats\CapabilityDispatcher.cs (1)
630_logger.LogError(ex, "Capability {CapabilityId} failed with {ExceptionType}: {Message}", capabilityId, ex.GetType().Name, ex.Message);
Ats\ExternalCapabilityRegistry.cs (8)
224_logger.LogError(_initializationException, "Integration host capability discovery failed."); 269_logger.LogError(_initializationException, "Integration host capability discovery failed."); 277_logger.LogError(_initializationException, "Integration host capability discovery failed."); 295_logger.LogError(_initializationException, "Conflicting external capability registrations."); 514_logger.LogError(error, 533_logger.LogError(ex, "Integration invocation {InvocationId} failed: capability {CapabilityId}, host {Host}, elapsed {Elapsed}.", 575_logger.LogError(ex, 585_logger.LogError(ex,
CodeGeneration\CodeGenerationService.cs (3)
101_logger.LogError(ex, "<< getCapabilities() failed"); 275_logger.LogError(ex, "<< generateCode({Language}) failed", language); 385_logger.LogError(ex, "<< exportApi({Language}, {PackageName}) failed", language, packageName);
JsonRpcCallbackInvoker.cs (3)
112_logger.LogError(ex, "Callback {CallbackId} timed out on connection {Host} after {Elapsed}, timeout {Timeout}.", 121_logger.LogError(ex, "Callback {CallbackId} stalled on connection {Host} after {Elapsed}, timeout {Timeout}. Retired its owner connection.", 157_logger.LogError(ex, "Callback owner cancellation failed while disposing connection {Host}.", _clientRpc?.GetHashCode());
JsonRpcServer.cs (3)
188_logger.LogError(ex, "Error in server loop, retrying in 1 second..."); 238_logger.LogError(ex, "Error in server loop, retrying in 1 second..."); 340_logger.LogError(ex, "Client {ClientId} unexpected error", clientId);
Language\IntegrationHostLauncher.cs (4)
119_logger.LogError(ex, "Failed to initialize integration hosts at server startup."); 301_logger.LogError(callbackFailure, 318_logger.LogError(failure, 341_logger.LogError(ex, "Integration host supervision failed for '{Name}'.", descriptor.PackageName);
Language\IntegrationHostProcessLauncher.cs (1)
100logger.LogError(ex, "Failed to launch integration host '{Name}' [{Language}].",
Language\LanguageService.cs (3)
83_logger.LogError(ex, "<< scaffoldAppHost({Language}) failed", language); 122_logger.LogError(ex, "<< detectAppHostType({DirectoryPath}) failed", directoryPath); 156_logger.LogError(ex, "<< getRuntimeSpec({Language}) failed", language);
RemoteAppHostService.cs (1)
163_logger.LogError(ex, " invokeCapability({CapabilityId}) Exception: {ExceptionType} - {Message}", capabilityId, ex.GetType().Name, ex.Message);
src\Shared\ChildProcess.cs (3)
273_logger.LogError(terminationFailure, "Failed to stop {FileName}({ProcessId}) after cancellation.", FileName, _processId); 453_logger.LogError(ex, "Failed to verify cleanup of {FileName}({ProcessId}) within {Timeout}.", 543_logger.LogError(
src\Shared\ProcessScope.cs (1)
55_logger.LogError(ex, "Failed to clean up process scope '{Name}' (supervisor PID {Pid}).", _description, ProcessId);
src\Shared\ProcessSupervisor.cs (1)
202logger.LogError(ex, "Process supervisor failed.");
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\Processes\ProcessSupervisorLoggerTests.cs (1)
19sender.LogError(error, "Launch failed.");
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
444logger.LogError(e, "Failed to create database '{DatabaseName}'", sqlDatabase.DatabaseName);
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (1)
155logger.LogError(ex, "An error occurred while watching for resource notifications.");
Aspire.Hosting.Tests (1)
Backchannel\BackchannelLoggerProviderTests.cs (1)
61logger.LogError(exception, "Request failed");
Aspire.Hosting.TestUtilities (1)
Utils\LoggerNotificationExtensions.cs (1)
155logger.LogError(ex, "An error occurred while watching for resource notifications.");
Aspire.Playground.Tests (1)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (1)
155logger.LogError(ex, "An error occurred while watching for resource notifications.");
Aspire.TerminalHost (8)
DcpUpstreamAdapter.cs (1)
230_logger.LogError(ex, "DcpUpstreamAdapter: streamFactory failed.");
Hmp1UdsServerListenerFilter.cs (3)
152_logger.LogError(ex, "The HMP1 consumer listener failed unexpectedly. No further terminal consumers can attach to this session."); 168_logger.LogError(ex, "Unexpected error while observing an HMP1 consumer."); 195_logger.LogError(ex, "Adding an HMP1 consumer failed unexpectedly.");
TerminalHostApp.cs (2)
151_logger.LogError(fault, "Replica recycle loop terminated with a fault; exiting non-zero."); 172_logger.LogError(ex, "Terminal host failed.");
TerminalReplica.cs (2)
244_logger.LogError(ex, "Replica BuildTerminal threw."); 271_logger.LogError(ex, "Replica cycle threw.");
AzureSearch.ApiService (1)
Program.cs (1)
168logger.LogError(ex, "Failed to index some of the documents");
EventHubsConsumer (1)
Processor.cs (1)
40logger.LogError(args.Exception, "Error processing message: {Error}", args.Exception.Message);
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
187_logger.LogError(
Microsoft.AspNetCore.Components.Server (1)
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
98_logger.LogError(ex, "An error occurred while revalidating authentication state");
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\WebAssemblyErrorBoundaryLogger.cs (1)
22_errorBoundaryLogger.LogError(exception, exception.ToString());
Microsoft.AspNetCore.Components.WebView (1)
Services\WebViewErrorBoundaryLogger.cs (1)
22_errorBoundaryLogger.LogError(exception, exception.ToString());
Microsoft.AspNetCore.Components.WebView.Maui (2)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
179 _logger.LogError(ex, $"Failed to notify about static content update to {relativePath}.");
src\Core\src\TaskExtensions.cs (1)
62 logger?.LogError(ex, "Unexpected exception in {Member}.", callerName);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
179 _logger.LogError(ex, $"Failed to notify about static content update to {relativePath}.");
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
179 _logger.LogError(ex, $"Failed to notify about static content update to {relativePath}.");
Microsoft.AspNetCore.InternalTesting (1)
LoggedTest\LoggedTestBase.cs (1)
127Logger.LogError(exception, "Test threw an exception.");
Microsoft.AspNetCore.Server.HttpSys (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
170_logger?.LogError(ex, "Error while performing eviction in PinnedBlockMemoryPool.");
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
170_logger?.LogError(ex, "Error while performing eviction in PinnedBlockMemoryPool.");
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Infrastructure\KestrelConnection.cs (3)
121Logger.LogError(ex, "An error occurred running an IConnectionCompleteFeature.OnCompleted callback."); 136Logger.LogError(ex, "An error occurred running an IConnectionCompleteFeature.OnCompleted callback."); 147Logger.LogError(ex, "An error occurred running an IConnectionCompleteFeature.OnCompleted callback.");
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
170_logger?.LogError(ex, "Error while performing eviction in PinnedBlockMemoryPool.");
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
170_logger?.LogError(ex, "Error while performing eviction in PinnedBlockMemoryPool.");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
src\aspnetcore\src\Servers\Kestrel\shared\ConnectionCompletion.cs (3)
36logger.LogError(ex, "An error occurred running an IConnectionCompleteFeature.OnCompleted callback."); 51logger.LogError(ex, "An error occurred running an IConnectionCompleteFeature.OnCompleted callback."); 62logger.LogError(ex, "An error occurred running an IConnectionCompleteFeature.OnCompleted callback.");
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
170_logger?.LogError(ex, "Error while performing eviction in PinnedBlockMemoryPool.");
Microsoft.AspNetCore.SpaProxy (3)
SpaProxyLaunchManager.cs (2)
61_logger.LogError(ex, "There was an error trying to launch the SPA proxy."); 214_logger.LogError(exception, $"Failed to launch the SPA development server '{_options.LaunchCommand}'.");
SpaProxyStartupFilter.cs (1)
47_logger.LogError(ex, "There was an error trying to launch the SPA proxy.");
Microsoft.AspNetCore.Watch.BrowserRefresh (2)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserToolsForwarder.cs (2)
102_logger.LogError(exception, "Unable to forward a browser tools HTTP request to the provider."); 147_logger.LogError(exception, "Unable to connect to the browser tools WebSocket provider.");
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProcessManager.cs (3)
178_logger?.LogError(e, "Failed to initialize BuildHost process."); 553_logger?.LogError(e, "Exception while shutting down the BuildHost process."); 574_logger?.LogError(e, "Exception while trying to kill the BuildHost process.");
Microsoft.Extensions.AI.Evaluation.Console (1)
Utilities\LoggerExtensions.cs (1)
14logger.LogError(exception, message: null);
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.CacheEntryTokens.cs (1)
143entry._cache._logger.LogError(e, "EvictionCallback invoked failed");
Microsoft.Extensions.ServiceDiscovery (2)
ServiceEndpointWatcher.cs (2)
220_logger.LogError(exception, "Error notifying observers of updated endpoints."); 278_logger.LogError(exception, "Error cancelling disposal cancellation token.");
Microsoft.Extensions.Telemetry.Tests (2)
Logging\ExtendedLoggerReentrancyTests.cs (2)
68outerLogger.LogError(exception, "Outer record {value}", "outer-value"); 145outerLogger.LogError(exception, "Outer record {value}", value);
Microsoft.Maui (3)
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
199 MauiContext?.CreateLogger<HybridWebViewHandler>()?.LogError(ex, "An error occurred while invoking a .NET method from JavaScript: {ErrorMessage}", ex.Message);
Hosting\EssentialsMauiAppBuilderExtensions.cs (1)
162 .LogError(ex, "App Actions are not supported on this platform.");
TaskExtensions.cs (1)
62 logger?.LogError(ex, "Unexpected exception in {Member}.", callerName);
Microsoft.Maui.Maps (1)
src\Core\src\TaskExtensions.cs (1)
62 logger?.LogError(ex, "Unexpected exception in {Member}.", callerName);
ServiceBusWorker (1)
Consumer.cs (1)
27logger.LogError(args.Exception, "Error processing message");
Terminals.AppHost (1)
TerminalInteractionCommands.cs (1)
367.LogError(ex, "The number guess automation failed unexpectedly.");