168 references to LogWarning
aspire (45)
Agents\AspireSkills\EmbeddedAspireSkillsBundleProvider.cs (1)
129_logger.LogWarning(ex, "Embedded Aspire skills metadata resource {ResourceName} could not be parsed.", MetadataResourceName);
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (1)
131logger.LogWarning(ex, "Sigstore verification threw an exception for GitHub artifact {ArtifactPath}.", artifactPath);
Agents\Playwright\PlaywrightCliInstaller.cs (2)
296logger.LogWarning(ex, "Failed to mirror Playwright CLI skill files to some locations."); 353logger.LogWarning(ex, "Failed to mirror playwright-cli skills to {TargetDir}.", targetSkillDir);
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
282logger.LogWarning(ex, "Failed to fetch capabilities from AppHost");
Backchannel\AppHostCliBackchannel.cs (1)
407logger.LogWarning(ex, "Failed to reconnect backchannel");
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
440logger.LogWarning(ex, "Error processing directory changes");
Bundles\BundleService.cs (2)
350logger.LogWarning(ex, "Unable to preserve failed bundle at {BadPath}; deleting instead.", badPath); 389logger.LogWarning(ex, "Unable to preserve failed bundle at {BadPath}.", badPath);
Commands\DcpWorkloadCleanupService.cs (1)
69logger.LogWarning(ex, "Failed to run DCP cleanup.");
Commands\InstallationInfoOutput.cs (3)
70logger.LogWarning(ex, "Could not run the winget first-run install sidecar probe before doctor installation discovery."); 86logger.LogWarning(ex, "Could not discover Aspire CLI installations for doctor output."); 106logger.LogWarning(ex, "Could not describe the running Aspire CLI installation for doctor self-probe output.");
Commands\RunCommand.cs (1)
647_logger.LogWarning(ex, "Failed to capture logs from AppHost");
Commands\Sdk\SdkDumpCommand.cs (1)
375_logger.LogWarning(ex, "Failed to dump capabilities for integration {IntegrationName}", integration.Name);
Commands\UpdateCommand.cs (3)
686_logger.LogWarning(ex, "Failed to check target Aspire SDK version before project update"); 964_logger.LogWarning(ex, "Failed to set executable permission on {FilePath}", filePath); 1001_logger.LogWarning(ex, "Failed to clean up directory {Directory}", directory);
Documentation\CachedHttpDocumentFetcher.cs (1)
96logger.LogWarning(ex, "Failed to fetch content from {Url}", url);
Npm\SigstoreNpmProvenanceChecker.cs (1)
286_logger.LogWarning(ex, "Sigstore verification threw an exception for {PackageSpecifier}", NpmPackageInfo.FormatPackageSpecifier(packageName, version));
Packaging\PackagingService.cs (1)
270_logger.LogWarning(ex, "Failed to get process path while discovering PR package hive.");
Processes\ProcessTreeGracefulShutdownService.cs (2)
209logger.LogWarning(ex, "Failed to request graceful process shutdown."); 222logger.LogWarning(ex, "Failed to send stop signal via RPC");
Program.cs (1)
603logger.LogWarning(
Projects\GuestAppHostProject.cs (5)
1198_logger.LogWarning(ex, "Failed to load config for launch profiles from {Directory}", configDir.FullName); 1276_logger.LogWarning(ex, "Failed to read {ConfigPath}", configPath); 1777_logger.LogWarning(ex, "Failed to check for SDK version updates"); 1808_logger.LogWarning(ex, "Failed to check for updates to package {PackageId}", packageId); 2606_logger.LogWarning(ex, "Failed to combine {EnvironmentVariableName} bundle {ExistingBundlePath} with the Aspire development certificate", environmentVariableName, existingCertificateBundle);
Projects\PrebuiltAppHostServer.cs (4)
1053_logger.LogWarning(ex, "Failed to get package channels, relying on nuget.config and nuget.org fallback"); 1093_logger.LogWarning(ex, "Failed to get package channels while creating source override NuGet.config"); 1130_logger.LogWarning(ex, "Failed to get package channels while creating channel NuGet.config for '{Channel}'.", requestedChannel); 1246_logger.LogWarning(ex, "Failed to resolve local Aspire package source for channel '{Channel}'.", requestedChannel);
Projects\ProjectLocator.cs (1)
848logger.LogWarning(ex, "Unable to load AppHost settings: {Message}", message);
Projects\ProjectUpdater.cs (1)
1366logger.LogWarning(ex, "Exception while resolving MSBuild property '{PropertyName}' for project '{ProjectFile}'", propertyName, projectFile.FullName);
Projects\RunningInstanceManager.cs (1)
84_logger.LogWarning(ex, "Failed to stop running instance");
Scaffolding\PackageJsonMerger.cs (2)
67logger.LogWarning(ex, "Failed to parse package.json content, using scaffold output as-is."); 84logger.LogWarning(ex, "Failed to merge package.json content, using scaffold output as-is.");
Scaffolding\ScaffoldingService.cs (1)
318_logger.LogWarning(ex, "Failed to parse root package.json at '{PackageJsonPath}'.", packageJsonPath);
src\Shared\ChildProcess.cs (3)
380_logger.LogWarning(ex, "Graceful shutdown signalling for {FileName}({ProcessId}) did not complete within {Timeout}.", 400_logger.LogWarning(ex, "Failed to issue graceful shutdown to {FileName} (pid {Pid}); escalating to kill.", FileName, pid); 649_logger.LogWarning(ex, "{FileName}({ProcessId}) stdout/stderr callback faulted while draining after exit", FileName, _processId);
src\Shared\ProcessSupervisorLogger.cs (1)
68logger.LogWarning(ex, "Malformed process supervisor diagnostic; preserving the original stderr line.");
src\Shared\Telemetry\UnixMachineInformationProvider.cs (1)
32_logger.LogWarning(ex, "Unable to find folder to cache device id to.");
Utils\CliDownloader.cs (1)
95logger.LogWarning(ex, "Failed to clean up temporary directory {TempDir}", tempDir);
Aspire.Dashboard (29)
Components\Controls\TerminalTitle.razor.cs (1)
79Logger.LogWarning(ex, "Could not initialize terminal path measurement.");
Components\Controls\TerminalWindowButton.razor.cs (2)
151Logger.LogWarning(ex, "Failed to adopt existing terminal windows."); 189Logger.LogWarning(ex, "Failed to register the terminal window button.");
Components\Dialogs\FilterDialog.razor.cs (2)
135Logger.LogWarning(ex, "Error loading filter property keys."); 253Logger.LogWarning(ex, "Error loading filter values for field '{FieldName}'.", parameterName);
Components\Layout\TerminalDock.razor.cs (5)
358Logger.LogWarning(ex, "Failed to close the window for terminal {TerminalId}.", terminalId); 393Logger.LogWarning(ex, "Timed out waiting for dock terminal {TerminalId} to close.", terminalId); 409Logger.LogWarning(ex, "Failed to close dock terminal {TerminalId}.", terminalId); 495Logger.LogWarning(ex, "Terminal dock watch stream ended unexpectedly."); 561Logger.LogWarning(ex, "Failed to close the window for ended terminal {TerminalId}.", terminalId);
Components\Pages\ConsoleLogs.razor.cs (1)
232Logger.LogWarning(ex, "Load timeout while waiting for resource {ResourceName}.", ResourceName);
Components\Pages\TerminalWindow.razor.cs (3)
191Logger.LogWarning(ex, "Failed to coordinate the detached terminal window."); 247Logger.LogWarning(ex, "Failed to release detached terminal window tracking."); 288Logger.LogWarning(ex, "Terminal window watch stream ended unexpectedly.");
Model\TelemetryImportService.cs (1)
133_logger.LogWarning(ex, "Failed to deserialize JSON file: {FileName}", fileName);
ServiceClient\DashboardClient.cs (1)
1249_logger.LogWarning(ex, "Terminal watch stream disconnected. Retrying.");
ServiceClient\DashboardDataSource.cs (1)
110_logger.LogWarning(exception, "Failed to switch to dashboard run '{RunId}'.", selectedRun.RunId);
ServiceClient\DashboardDataSourceInitializer.cs (1)
34log.LogWarning(ex, "Failed to prune expired dashboard runs.");
ServiceClient\DashboardRunStore.cs (2)
239_logger.LogWarning( 535_logger.LogWarning(
src\Shared\ChildProcess.cs (3)
380_logger.LogWarning(ex, "Graceful shutdown signalling for {FileName}({ProcessId}) did not complete within {Timeout}.", 400_logger.LogWarning(ex, "Failed to issue graceful shutdown to {FileName} (pid {Pid}); escalating to kill.", FileName, pid); 649_logger.LogWarning(ex, "{FileName}({ProcessId}) stdout/stderr callback faulted while draining after exit", FileName, _processId);
src\Shared\ProcessSupervisorLogger.cs (1)
68logger.LogWarning(ex, "Malformed process supervisor diagnostic; preserving the original stderr line.");
src\Shared\Telemetry\UnixMachineInformationProvider.cs (1)
32_logger.LogWarning(ex, "Unable to find folder to cache device id to.");
Telemetry\DashboardTelemetryManager.cs (1)
101_logger.LogWarning(ex, "Failed to initialize dashboard product telemetry. The dashboard will continue without product export.");
Terminal\TerminalWebSocketProxy.cs (3)
204logger.LogWarning(exception, "Failed to attach terminal ({ConnectionId}).", connectionId); 348logger.LogWarning(ex, "Terminal view timed out."); 355logger.LogWarning(ex, "Invalid terminal input or state.");
Aspire.Dashboard.Tests (1)
Integration\ServerRetryHelper.cs (1)
178logger.LogWarning(ex, "Port {port} bind check failed with unexpected error.", port);
Aspire.Hosting (26)
ApplicationModel\DotnetProgramPublishing.cs (3)
280logger.LogWarning(ex, "Failed to delete temporary Dockerfile {DockerfilePath}", tempDockerfilePath); 296logger.LogWarning(ex, "Failed to delete temporary container archive directory {ArchiveDirectory}", stagedArchiveDirectory.Path); 385logger.LogWarning(ex, "Failed to delete incomplete container archive {ArchivePath}", tempPath);
ApplicationModel\ExecutableLaunchRecipe.cs (1)
558context.ResourceLogger.LogWarning(
ApplicationModel\ResourceAspireTerminal.cs (2)
294_logger.LogWarning(ex, "Disposing the automation peer for resource terminal {TerminalId} failed unexpectedly.", Id); 321_logger.LogWarning(failure, "AppHost automation peer for resource terminal {TerminalId} ended unexpectedly; a later call can reconnect.", Id);
Backchannel\DashboardUrlsHelper.cs (1)
69logger.LogWarning(ex, "An error occurred while waiting for the Aspire Dashboard to become healthy.");
Dashboard\DashboardService.cs (1)
606logger.LogWarning(ex, "Failed to close incomplete uploaded file {FileId}.", fileId);
Lifecycle\TerminalHostOrphanCleanupService.cs (9)
176logger?.LogWarning(ex, "Failed to delete terminal socket '{Path}'.", socketPath); 196logger?.LogWarning(ex, "Failed to delete terminal metadata '{Path}'.", metadataPath); 272logger.LogWarning( 282logger.LogWarning(ex, "Unable to inspect terminal metadata '{Path}'; leaving its artifacts in place.", candidatePath); 384logger.LogWarning(ex, "Failed to sweep orphaned terminal artifacts in '{Directory}'.", trmnlDirectory); 401logger.LogWarning(ex, "Unable to inspect the age of invalid terminal metadata '{Path}'.", metadataPath); 424logger.LogWarning(ex, "Unable to reclaim expired invalid terminal metadata '{Path}'.", metadataPath); 456logger.LogWarning(ex, "Unable to inspect temporary terminal metadata '{Path}'.", temporaryPath); 475logger.LogWarning(ex, "Unable to reclaim stale temporary terminal metadata '{Path}'.", temporaryPath);
Orchestrator\ApplicationOrchestrator.cs (1)
100_logger.LogWarning(ex, "Failed to resolve connection property {ConnectionPropertyName} for resource {ResourceName}.", property.Key, resourceWithConnectionString.Name);
Orchestrator\ParameterProcessor.cs (3)
595logger.LogWarning(ex, "Failed to delete parameter {ParameterName} from deployment state.", parameterResource.Name); 657logger.LogWarning(ex, "Failed to save parameter {ParameterName} to deployment state.", parameterResource.Name); 919logger.LogWarning(ex, "Failed to save parameter {ParameterName} to deployment state.", parameter.Name);
Pipelines\Internal\FileDeploymentStateManager.cs (1)
373logger.LogWarning(ex, "Failed to save deployment state.");
Pipelines\Internal\UserSecretsDeploymentStateManager.cs (1)
52logger.LogWarning(ex, "Failed to save user secrets.");
Publishing\DockerContainerRuntime.cs (1)
341_logger.LogWarning(ex, "Failed to remove buildkit instance {BuilderName}", builderName);
Publishing\TemporaryContainerImage.cs (1)
33logger.LogWarning(ex, "Failed to remove temporary container image {ImageName}", imageReference);
Utils\FileSystemService.cs (1)
120_logger?.LogWarning(ex, "Failed to clean up temporary item");
Aspire.Hosting.Azure (12)
AcrLoginService.cs (1)
106_logger.LogWarning(
AzureEnvironmentResource.cs (1)
335context.Logger.LogWarning(ex, "Failed to enumerate resources in resource group '{ResourceGroupName}'", resourceGroupName);
AzureProvisioningController.cs (5)
3025_logger.LogWarning(ex, "Timed out waiting for deleted Azure Key Vault {ResourceId} in {Location} to be purged for {ResourceName}. The live vault was deleted and purge was requested; a later reprovision can retry if Azure is still finalizing the tombstone.", resourceId, keyVaultLocation, resourceName); 3270_logger.LogWarning(ex, "Failed to enumerate Azure tenants for context selection."); 3291_logger.LogWarning(ex, "Failed to enumerate Azure subscriptions for context selection."); 3315_logger.LogWarning(ex, "Failed to enumerate Azure resource groups for context selection."); 3347_logger.LogWarning(ex, "Failed to enumerate Azure locations for resource override.");
Provisioning\Internal\BaseProvisioningContextProvider.cs (4)
297_logger.LogWarning(ex, "Failed to enumerate available tenants. Falling back to manual input."); 325_logger.LogWarning(ex, "Failed to enumerate available subscriptions. Falling back to manual input."); 358_logger.LogWarning(ex, "Failed to enumerate available resource groups with locations."); 393_logger.LogWarning(ex, "Failed to enumerate available locations. Falling back to manual input.");
Provisioning\Provisioners\BicepProvisioner.cs (1)
1305logger.LogWarning(ex, "Failed to cancel Azure deployment {DeploymentName}.", deploymentName);
Aspire.Hosting.Azure.Sandboxes (11)
AzureSandboxContainerDeployment.cs (11)
482context.Logger.LogWarning( 547context.Logger.LogWarning( 1330context.Logger.LogWarning(ex, "Sandbox deployment state and Azure scope outputs were unavailable, so data-plane cleanup could not run before the Azure resource group cleanup."); 1656context.Logger.LogWarning(ex, "Failed to list existing sandbox deployments labeled for resource '{ResourceName}'.", resourceName); 1678context.Logger.LogWarning(ex, "Failed to list existing sandbox disk images labeled for resource '{ResourceName}'.", resourceName); 1726context.Logger.LogWarning(ex, "Failed to list sandboxes while reconciling failed deployment '{DeployId}'.", deployId); 1747context.Logger.LogWarning(ex, "Failed to list disk images while reconciling failed deployment '{DeployId}'.", deployId); 1811context.Logger.LogWarning( 2249context.Logger.LogWarning(ex, "Failed to remove sandbox port {Port} from sandbox '{SandboxId}'.", port, sandboxId); 2262context.Logger.LogWarning(ex, "Failed to delete sandbox '{SandboxId}'.", sandboxId); 2296context.Logger.LogWarning(ex, "Failed to delete sandbox disk image '{DiskImageId}'.", diskImageId);
Aspire.Hosting.DevTunnels (3)
DevTunnelCliClient.cs (1)
316logger?.LogWarning(ex, "Dev tunnel provisioning failed (attempt {Attempt} of {MaxAttempts}); reconciling again.", attempt, _maxCliAttempts);
DevTunnelMonitor.cs (2)
283_logger.LogWarning(ex, DiagnosticPrefix + "Failed to reconcile dev tunnel status."); 340_logger.LogWarning(ex, DiagnosticPrefix + "Failed to refresh access metadata for tunnel '{TunnelId}', port '{PortNumber}'.", run.TunnelId, portNumber);
Aspire.Hosting.Foundry (2)
FoundryLocalService.cs (1)
260logger.LogWarning(cleanupException, "Foundry CLI server cleanup failed after startup did not complete. Cleanup will be retried when the AppHost stops.");
HostedAgent\AzureHostedAgentResource.cs (1)
283context.Logger.LogWarning(
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
2149resourceLogger.LogWarning(ex, "Failed to generate Aspire Vite HTTPS config wrapper for resource '{ResourceName}'. Falling back to existing Vite config without Aspire modifications. Automatic HTTPS configuration won't be available", resource.Name);
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
541context.Logger.LogWarning(ex, "Failed to retrieve endpoints for {ResourceName}", computeResource.Name);
Aspire.Hosting.Maui (3)
Lifecycle\MauiBuildQueueEventSubscriber.cs (3)
341logger.LogWarning(ex, "Timed out waiting for resource '{ResourceName}' to reach a launch handoff state after {Timeout}; releasing build lock.", resource.Name, LaunchHandoffTimeout); 348logger.LogWarning(ex, "Timed out waiting for Android resource '{ResourceName}' to finish its launch work after {Timeout}; stopping the resource before releasing the build lock.", resource.Name, LaunchHandoffTimeout); 381logger.LogWarning(ex, "Failed to wait for resource '{ResourceName}' to reach a stable state; releasing build lock.", resource.Name);
Aspire.Hosting.Radius (1)
Publishing\RadiusDeploymentPipelineStep.cs (1)
748logger.LogWarning(ex, "Failed to delete temporary deploy parameters file '{Path}'", parametersFilePath);
Aspire.Hosting.RemoteHost (13)
AssemblyLoader.cs (1)
314logger.LogWarning(ex, "Failed to load assembly '{AssemblyName}'", name);
CodeGeneration\CodeGeneratorResolver.cs (3)
128_logger.LogWarning(ex, "Failed to instantiate code generator '{TypeName}'", type.Name); 179_logger.LogWarning(ex, "Failed to instantiate API reference exporter '{TypeName}'", type.Name); 212_logger.LogWarning(
JsonRpcServer.cs (2)
285_logger.LogWarning(ex, "Client {ClientId} I/O error", clientId); 334_logger.LogWarning(ex, "Failed to delete socket file: {SocketPath}", _socketPath);
Language\IntegrationHostLauncher.cs (1)
328_logger.LogWarning(failure,
Language\LanguageSupportResolver.cs (2)
86_logger.LogWarning( 113_logger.LogWarning(ex, "Failed to instantiate language support '{TypeName}'", type.Name);
src\Shared\ChildProcess.cs (3)
380_logger.LogWarning(ex, "Graceful shutdown signalling for {FileName}({ProcessId}) did not complete within {Timeout}.", 400_logger.LogWarning(ex, "Failed to issue graceful shutdown to {FileName} (pid {Pid}); escalating to kill.", FileName, pid); 649_logger.LogWarning(ex, "{FileName}({ProcessId}) stdout/stderr callback faulted while draining after exit", FileName, _processId);
src\Shared\ProcessSupervisorLogger.cs (1)
68logger.LogWarning(ex, "Malformed process supervisor diagnostic; preserving the original stderr line.");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicConnectionContext.cs (1)
67_log.LogWarning(ex, "Failed to gracefully shutdown connection.");
Internal\QuicStreamContext.cs (1)
543_log.LogWarning(ex, "Stream failed to gracefully shutdown.");
Microsoft.Extensions.AI.Evaluation.Console (7)
Telemetry\DeviceIdHelper.cs (1)
53_logger.LogWarning(ex, "Failed to cache device ID.");
Telemetry\TelemetryConstants.cs (1)
171logger.LogWarning(ex, "Failed to create sentinel file.");
Telemetry\TelemetryHelper.cs (5)
64_logger.LogWarning(ex, $"Failed to initialize {nameof(TelemetryHelper)}."); 89_logger.LogWarning(ex, $"Failed to dispose {nameof(TelemetryHelper)}."); 116_logger.LogWarning(ex, "Failed to report event '{EventName}' in telemetry.", eventName); 138_logger.LogWarning(ex, $"Failed to report exception in telemetry."); 155_logger.LogWarning(ex, "Failed to flush telemetry.");
Microsoft.Extensions.Telemetry.Tests (1)
Buffering\GlobalBufferTests.cs (1)
120logger.LogWarning(new InvalidOperationException("Something failed"), "With exception");
Microsoft.Maui (2)
Fonts\FileSystemEmbeddedFontLoader.cs (1)
77 _serviceProvider?.CreateLogger<EmbeddedFontLoader>()?.LogWarning(ex, "Unable copy font {Font} to local file system.", font.FontName);
Fonts\FontRegistrar.cs (1)
71 _serviceProvider?.CreateLogger<FontRegistrar>()?.LogWarning(ex, "Unable to load font '{Font}'.", font);
Microsoft.Maui.Controls (5)
NavigationPage\NavigationPage.cs (1)
241 Application.Current?.FindMauiContext()?.CreateLogger<NavigationPage>()?.LogWarning(e, null);
Shell\Shell.cs (2)
1260 Application.Current?.FindMauiContext()?.CreateLogger<Shell>()?.LogWarning(exc, "If you're using hot reload add a route to everything in your shell file"); 1556 Application.Current?.FindMauiContext()?.CreateLogger<Shell>()?.LogWarning(exc, "Failed to Navigate Back");
UriImageSource.cs (2)
75 Application.Current?.FindMauiContext()?.CreateLogger<UriImageSource>()?.LogWarning(ex, "Error getting stream for {Uri}", Uri); 126 Application.Current?.FindMauiContext()?.CreateLogger<UriImageSource>()?.LogWarning(ex, "Error getting stream for {Uri}", Uri);
Microsoft.TemplateEngine.Cli (2)
HostSpecificDataLoader.cs (2)
54_engineEnvironment.Host.Logger.LogWarning( 81_engineEnvironment.Host.Logger.LogWarning(
Microsoft.TemplateEngine.Edge (1)
Settings\TemplateCache.cs (1)
321settings.Host.Logger.LogWarning(