188 references to LogError
aspire (57)
Backchannel\ExtensionBackchannel.cs (1)
134_logger.LogError(
Bundles\BundleService.cs (1)
149logger.LogError("Extraction completed but no valid layout found in {Path}.", destinationPath);
Certificates\CertificateGeneration\CertificateManager.cs (22)
1128_logger.LogError("An error occurred while listing the certificates: {Error}", e); 1160_logger.LogError("An error has occurred generating the certificate: {Error}.", e); 1172_logger.LogError("An error has occurred saving the certificate: {Error}.", e); 1188_logger.LogError("An error has occurred while exporting the certificate: {Error}.", error); 1196_logger.LogError("An error has occurred while writing the certificate to disk: {Error}.", error); 1208_logger.LogError("An error has occurred while trusting the certificate: {Error}.", error); 1260_logger.LogError("An error has occurred while removing the certificate from the user store: {Error}.", error); 1296_logger.LogError("An error has occurred while correcting the certificate state: {Error}.", error); 1308_logger.LogError("An error has occurred while importing the certificate to the keychain: {ExitCode}, {Output}", exitCode, output); 1316_logger.LogError("An error has occurred while writing the certificate to disk: {Error}.", error); 1320_logger.LogError("The file '{CertificatePath}' does not exist.", certificatePath); 1324_logger.LogError("One or more HTTPS certificates exist '{CertificateDescription}'.", certificateDescription); 1336_logger.LogError("An error has occurred while loading the certificate from disk: {Error}.", error); 1340_logger.LogError("The provided certificate '{Description}' is not a valid ASP.NET Core HTTPS development certificate.", description); 1356_logger.LogError("An error has occurred while saving certificate '{CertificateThumbprint}' in the user profile folder: {ErrorMessage}.", certificateThumbprint, errorMessage); 1360_logger.LogError("An error has occurred while removing certificate '{CertificateThumbprint}' from the user profile folder: {ErrorMessage}.", certificateThumbprint, errorMessage); 1364_logger.LogError("The file '{Path}' is not a valid certificate.", path); 1412_logger.LogError("Unable to compute the hash of certificate {CertificatePath}. OpenSSL trust is likely in an inconsistent state.", certificatePath); 1416_logger.LogError("Unable to compute the certificate hash: {CertificatePath}. OpenSSL trust is likely in an inconsistent state. {ExceptionMessage}", certificatePath, exceptionMessage); 1420_logger.LogError("Unable to update certificate '{FullName}' in the OpenSSL trusted certificate hash collection - {MaxHashCollisions} certificates have the hash {Hash}.", fullName, maxHashCollisions, hash); 1424_logger.LogError("Unable to update the OpenSSL trusted certificate hash collection: {ExceptionMessage}. Manually rehashing may help. See https://aka.ms/dev-certs-trust for more information.", exceptionMessage); 1520_logger.LogError("Unable to export the certificate since '{CertPath}' already exists. Please remove it.", certPath);
DotNet\DotNetCliRunner.cs (13)
377logger.LogError( 549logger.LogError( 562logger.LogError("Failed to read stdout from the process. This should never happen."); 573logger.LogError("Failed to parse template version from stdout."); 727logger.LogError("Failed to add package {PackageName} with version {PackageVersion} to project {ProjectFilePath}. See debug logs for more details.", packageName, packageVersion, projectFilePath.FullName); 756logger.LogError("Failed to add project {ProjectFilePath} to solution {SolutionFilePath}. See debug logs for more details.", projectFile.FullName, solutionFile.FullName); 783logger.LogError("Failed to get NuGet config paths. Exit code was: {ExitCode}.", exitCode); 959logger.LogError( 973logger.LogError("Failed to read stdout from the process. This should never happen."); 991logger.LogError($"Failed to read JSON returned by the package search. {ex.Message}"); 1029logger.LogError("Failed to get NuGet config paths. Exit code was: {ExitCode}.", exitCode); 1069logger.LogError("Failed to list solution projects. Exit code was: {ExitCode}.", exitCode); 1123logger.LogError("Failed to add project reference from {ProjectFile} to {ReferencedProject}. See debug logs for more details.", projectFile.FullName, referencedProject.FullName);
NuGet\BundleNuGetPackageCache.cs (3)
178_logger.LogError("NuGet search failed with exit code {ExitCode}", exitCode); 179_logger.LogError("NuGet search stderr: {Error}", error); 180_logger.LogError("NuGet search stdout: {Output}", output);
NuGet\BundleNuGetService.cs (6)
146_logger.LogError("Package restore failed with exit code {ExitCode}", exitCode); 147_logger.LogError("Package restore stderr: {Error}", error); 148_logger.LogError("Package restore stdout: {Output}", output); 185_logger.LogError("Layout creation failed with exit code {ExitCode}", exitCode); 186_logger.LogError("Layout creation stderr: {Error}", error); 187_logger.LogError("Layout creation stdout: {Output}", output);
Program.cs (2)
551logger.LogError("Locale override failed: {ErrorMessage}", errorMessage); 756logger.LogError("Exit code: {ExitCode} (exception)", unknownErrorExitCode);
Projects\GuestAppHostProject.cs (4)
529_logger.LogError("{Language} apphost exited with code {ExitCode}", DisplayName, guestExitCode); 861_logger.LogError("{Language} apphost exited with code {ExitCode}", DisplayName, guestExitCode); 964_logger.LogError("AppHost server process has exited. Unable to connect to backchannel at {SocketPath}", socketPath); 976_logger.LogError("Timed out waiting for AppHost server to start after {Timeout} seconds", ConnectionTimeoutSeconds);
Projects\PrebuiltAppHostServer.cs (1)
256_logger.LogError("Integration project build failed. Output:\n{BuildOutput}", outputLines);
Projects\ProcessGuestLauncher.cs (1)
38_logger.LogError("Command '{Command}' not found in PATH", command);
Projects\ProjectLocator.cs (3)
279logger.LogError("No AppHost project files found in directory {Directory}", directory.FullName); 306logger.LogError("Multiple AppHost project files found in directory {Directory}, throwing exception", directory.FullName); 317logger.LogError("Project file {ProjectFile} does not exist.", projectFile.FullName);
Aspire.Dashboard (3)
Components\Controls\UserProfile.razor.cs (1)
68Logger.LogError("Dashboard:Frontend:AuthMode is configured for OpenIDConnect, but there is no authenticated user.");
DashboardWebApplication.cs (2)
545logger.LogError("Failed to start the dashboard due to {Count} configuration error(s).", validationFailures.Count); 548logger.LogError("{ErrorMessage}", message);
Aspire.Hosting (23)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
258mainLogger.LogError(BuildLogPrefix + "Build timed out."); 323mainLogger.LogError(BuildLogPrefix + "Build failed with exit code {ExitCode}.", exitCode);
ApplicationModel\ResourceNotificationService.cs (5)
233_logger.LogError("Stopped waiting for resource '{ResourceName}' to become healthy because it failed to start.", resourceName); 304resourceLogger.LogError( 313resourceLogger.LogError( 375resourceLogger.LogError( 386resourceLogger.LogError(
Ats\LoggingExports.cs (1)
52logger.LogError("{Message}", message);
Backchannel\AppHostRpcTarget.cs (1)
155logger.LogError("Dashboard URL requested but dashboard is disabled.");
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
337logger.LogError("Configuration not found."); 345logger.LogError("AppHost path not found in configuration.");
Dashboard\DashboardEventHandlers.cs (1)
326distributedApplicationLogger.LogError("Dashboard DLL not found: {Path}", dashboardDll);
Exec\ExecResourceManager.cs (1)
168_logger.LogError("Target resource '{ResourceName}' not found in the model resources.", _execOptions.ResourceName);
ExternalServiceBuilderExtensions.cs (1)
134e.Logger.LogError("The value for URL parameter '{ParameterName}' is invalid: {Error}", resource.UrlParameter?.Name, message);
Publishing\ContainerRuntimeBase.cs (3)
124_logger.LogError("{RuntimeName} login to {RegistryServer} failed with exit code {ExitCode}.", Name, registryServer, processResult.ExitCode); 163_logger.LogError(errorLogTemplate, errorArgs); 212_logger.LogError(errorLogTemplate, errorArgs);
Publishing\DockerContainerRuntime.cs (2)
44Logger.LogError("Failed to create buildkit instance {BuilderName} with exit code {ExitCode}.", builderName, createBuilderResult); 131Logger.LogError("docker buildx for {ImageName} failed with exit code {ExitCode}.", imageName, processResult.ExitCode);
Publishing\ResourceContainerImageManager.cs (4)
219logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container images.", ContainerRuntime.Name); 250logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container image.", ContainerRuntime.Name); 308logger.LogError("Building image for {ResourceName} failed", resource.Name); 406logger.LogError("dotnet publish for project {ProjectPath} failed with exit code {ExitCode}.", projectMetadata.ProjectPath, processResult.ExitCode);
Aspire.Hosting.Azure (1)
Provisioning\Internal\BicepCompiler.cs (1)
68_logger.LogError("Bicep compilation for {BicepFilePath} failed with exit code {ExitCode}.", bicepFilePath, exitCode);
Aspire.Hosting.DevTunnels (4)
DevTunnelCliClient.cs (4)
116logger?.LogError("Failed to create dev tunnel '{TunnelId}' (attempt {Attempt} of {MaxAttempts}). Exit code {ExitCode}: {Error}", tunnelId, attempts, _maxCliAttempts, exitCode, error); 204logger?.LogError("Failed to create port '{PortNumber}' for dev tunnel '{TunnelId}' (attempt {Attempt} of {MaxAttempts}). Exit code {ExitCode}: {Error}", portNumber, tunnelId, attempts, _maxCliAttempts, exitCode, error); 277logger?.LogError("CLI call returned non-zero exit code '{ExitCode}'. stderr output:\n{Error}", exitCode, error); 292logger?.LogError("CLI call returned empty output with exit code '{ExitCode}'.", exitCode);
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
170logger.LogError($"Cannot configure an encrypted certificate for redis resource '{redis.Name}'"); 366logger.LogError($"Cannot configure an encrypted certificate for redis insight resource '{resource.Name}'");
Aspire.Hosting.RemoteHost (2)
Ats\CapabilityDispatcher.cs (1)
105_logger.LogError("{Message} at {Location}", diagnostic.Message, diagnostic.Location);
AtsContextFactory.cs (1)
40logger.LogError("[ATS] {Message} at {Location}", diagnostic.Message, diagnostic.Location);
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
119resourceLogger.LogError("Test error message");
Aspire.Hosting.Tests (6)
Backchannel\BackchannelLoggerProviderTests.cs (1)
18logger.LogError("Message 3");
ResourceLoggerServiceTests.cs (5)
32logger.LogError("Hello, error!"); 72logger.LogError("Hello, error!"); 113logger.LogError("Hello, error!"); 234logger.LogError("Hello, error!"); 284logger.LogError("Hello, error!");
AzureSearch.ApiService (1)
Program.cs (1)
152logger.LogError("Failed to import the index data from {file}", hotelsJson);
dotnet-format (4)
CodeFormatter.cs (1)
97logger.LogError(Resources.Failed_to_save_formatting_changes);
Logging\ILoggerExtensions.cs (1)
28logger.LogError(formattedMessage);
Workspaces\MSBuildWorkspaceLoader.cs (2)
61logger.LogError(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, solutionOrProjectPath); 87logger.LogError(diagnostic.Message);
dotnet-watch (14)
CommandLine\CommandLineOptions.cs (2)
190logger.LogError(e.Message); 360logger.LogError(error.Message);
Program.cs (10)
124logger.LogError(Resources.The_specified_path_0_is_invalid_1, options.FilePath, e.Message); 144logger.LogError(Resources.Could_not_find_msbuild_project_file_in_0, projectPath); 193logger.LogError(Resources.The_specified_path_0_is_invalid_1, projectPath, e.Message); 207logger.LogError(Resources.The_specified_path_0_is_invalid_1, projectPath, e.Message); 213logger.LogError(Resources.Error_MultipleProjectsFound, projectPath); 221logger.LogError(Resources.Could_not_find_msbuild_project_file_in_0, projectPath); 236logger.LogError(Resources.Error_ProjectPath_NotFound, projectPath); 261logger.LogError("--list does not support file-based programs"); 283logger.LogError("File-based programs are only supported when Hot Reload is enabled"); 300logger.LogError("An unexpected error occurred: {Exception}", e.ToString());
Watch\DotNetWatcher.cs (1)
33context.Logger.LogError("Failed to find a list of files to watch");
Watch\MsBuildFileSetFactory.cs (1)
79logger.LogError("Error(s) finding watch items project file '{FileName}'.", Path.GetFileName(rootProjectFile));
Microsoft.AspNetCore.Identity (2)
SignInManager.cs (2)
197Logger.LogError("RefreshSignInAsync prevented because the user is not currently authenticated. Use SignInAsync instead for initial sign in."); 205Logger.LogError("RefreshSignInAsync prevented because currently authenticated user has a different UserId. Use SignInAsync instead to change users.");
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
105_logger.LogError($"'{MSAspNetCoreToken}' does not match the expected pairing token '{_pairingToken}', request rejected.");
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
212Trace.LogError(CoreStrings.DynamicPortOnMultipleTransportsNotSupported);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
537_logger.LogError("The BuildHost process is not responding. Process output:{newLine}{processLog}", Environment.NewLine, processLog); 539_logger.LogError("The BuildHost process exited with {errorCode}. Process output:{newLine}{processLog}", _process.ExitCode, Environment.NewLine, processLog);
Microsoft.DotNet.HotReload.Watch (28)
Aspire\AspireServiceFactory.cs (1)
192_logger.LogError("Unexpected error reading output of session '{SessionId}': {Exception}", sessionId, e);
Browser\BrowserLauncher.cs (1)
31logger.LogError("Test requires browser to launch");
Build\EvaluationResult.cs (2)
80logger.LogError("Failed to restore project '{Path}'.", failedInstance.FullPath); 111logger.LogError("Failed to build project '{Path}'.", failedInstance.FullPath);
Build\LoadedProjectGraph.cs (3)
40logger.LogError("Project '{ProjectPath}' not found in the project graph.", projectPath); 56logger.LogError("Project '{ProjectPath}' targets multiple frameworks. Specify which framework to run using '--framework'.", projectPath); 81logger.LogError("Project '{ProjectPath}' doesn't have a target for {TargetFramework}.", projectPath, targetFramework);
Build\ProjectGraphFactory.cs (3)
102logger.LogError(e.Message); 123logger.LogError("The project file could not be loaded. Could not find a part of the path '{Path}'.", projectPath); 136logger.LogError("{Path}({Line}): {Message}", path, line, message);
HotReload\CompilationHandler.cs (4)
277Logger.LogError("Failed to launch '{ProjectPath}'. Process {PID} exited during initialization.", projectPath, launchResult.ProcessId); 312logger.LogError("Failed to handle runtime rude edit: {Exception}", e.ToString()); 452_context.Logger.LogError("Failed to relaunch: {Exception}", e.ToString()); 526_context.Logger.LogError("Failed to apply managedCodeUpdates: {Exception}", e.ToString());
HotReload\HotReloadDotNetWatcher.cs (1)
1071_context.BuildLogger.LogError("Project '{Path}' does not specify a target framework.", rootProject.FullPath);
Process\LaunchSettingsProfile.cs (1)
32logger.LogError(message);
Process\RunningProject.cs (1)
87ClientLogger.LogError("Failed to apply updates to process {Process}: {Exception}", process.Id, e.ToString());
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (5)
61Logger.LogError("Expected initialization response, got: {ResponseType}", r.Type); 87Logger.LogError("Failed to read capabilities: {Message}", e.Message); 123Logger.LogError("Unexpected response received from the agent: {ResponseType}", r.Type); 132Logger.LogError("Failed to read response: {Exception}", e.ToString()); 302Logger.LogError("Failed to send {RequestType}: {Message}", nameof(RequestType.InitialUpdatesCompleted), e.Message);
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClients.cs (1)
192clients.First().client.Logger.LogError("Failed to read file {FilePath}: {Message}", asset.FilePath, e.Message);
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (3)
100logger.LogError("Failed to read '{FilePath}': {Message}", path, e.Message); 125logger.LogError("Failed to parse '{FilePath}': {Message}", filePath, e.Message); 131logger.LogError("Failed to parse '{FilePath}'", filePath);
UI\BuildOutput.cs (2)
22logger.LogError(line); 28logger.LogError(line);
Microsoft.Extensions.Diagnostics.Testing.Tests (13)
Logging\FakeLogCollectorTests.cs (4)
55logger.LogError("Hello world!"); 97logger.LogError("Hello world!"); 136logger.LogError("Hello world!"); 168logger.LogError("Hello world!");
Logging\FakeLoggerExtensionsTests.cs (5)
27logger.LogError("M1"); 43logger.LogError("M1"); 47logger.LogError("M2"); 71logger.LogError("M1"); 75logger.LogError("M2");
Logging\FakeLoggerTests.cs (4)
28logger.LogError("World"); 212logger.LogError("M4"); 307logger.LogError(IgnoredMessage); 308logger.LogError(NotIgnoredMessage2);
Microsoft.Extensions.Telemetry.PerformanceTests (2)
ExtendedLoggerBench.cs (2)
122logger.LogError( 138logger.LogError(@"Range [{start}..{end}], options {options}, guid {guid}",
Microsoft.NET.Build.Containers (12)
ContainerBuilder.cs (10)
83logger.LogError(Resource.FormatString(nameof(Strings.RepositoryNotFound), baseImageName, baseImageTag, baseImageDigest, registry.RegistryName)); 88logger.LogError(Resource.FormatString(nameof(Strings.UnableToAccessRepository), baseImageName, registry.RegistryName)); 93logger.LogError(e.Message); 134logger.LogError(Resource.GetString(nameof(s))); 138logger.LogError(Resource.FormatString(nameof(s), a)); 228logger.LogError(Resource.FormatString(nameof(Strings.LocalRegistryNotAvailable))); 239logger.LogError(Resource.FormatString(nameof(Strings.UnableToDownloadFromRepository)), sourceImageReference); 244logger.LogError(Resource.FormatString(nameof(Strings.RegistryOutputPushFailed), ex.Message)); 266logger.LogError(Resource.FormatString(nameof(Strings.UnableToDownloadFromRepository)), sourceImageReference); 271logger.LogError(Resource.FormatString(nameof(Strings.RegistryOutputPushFailed), e.Message));
LocalDaemons\DockerCli.cs (2)
146_logger.LogError($"Cannot find {Commands} executable."); 170_logger.LogError($"The daemon server reported errors: {messages}");
Microsoft.TemplateEngine.Edge (9)
Installers\NuGet\NuGetInstaller.cs (4)
405_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_FailedToReadPackage, installRequest.PackageIdentifier)); 412_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_CopyFailed, installRequest.PackageIdentifier, targetPackageLocation)); 413_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_FileAlreadyExists, targetPackageLocation)); 423_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_CopyFailed, installRequest.PackageIdentifier, targetPackageLocation), null, 0);
Installers\NuGet\NuGetLogger.cs (1)
60_baseLogger.LogError(data);
Settings\TemplatePackageManager.cs (1)
110_logger.LogError(LocalizableStrings.TemplatePackageManager_Error_FailedToGetTemplatePackages, source.Key.Factory.DisplayName, ex.Message);
ValidationUtils.cs (3)
29logger.LogError(LocalizableStrings.Validation_InvalidTemplate, templateDisplayName); 56logger.LogError(LocalizableStrings.Validation_InvalidTemplate, templateDisplayName); 118IValidationEntry.SeverityLevel.Error => (s) => logger.LogError(s),