202 references to LogError
aspire (17)
Backchannel\ExtensionBackchannel.cs (1)
135_logger.LogError(
DotNet\DotNetCliRunner.cs (13)
216logger.LogError( 416logger.LogError( 429logger.LogError("Failed to read stdout from the process. This should never happen."); 440logger.LogError("Failed to parse template version from stdout."); 824logger.LogError("Failed to add package {PackageName} with version {PackageVersion} to project {ProjectFilePath}. See debug logs for more details.", packageName, packageVersion, projectFilePath.FullName); 853logger.LogError("Failed to add project {ProjectFilePath} to solution {SolutionFilePath}. See debug logs for more details.", projectFile.FullName, solutionFile.FullName); 880logger.LogError("Failed to get NuGet config paths. Exit code was: {ExitCode}.", exitCode); 1027logger.LogError( 1038logger.LogError("Failed to read stdout from the process. This should never happen."); 1056logger.LogError($"Failed to read JSON returned by the package search. {ex.Message}"); 1094logger.LogError("Failed to get NuGet config paths. Exit code was: {ExitCode}.", exitCode); 1134logger.LogError("Failed to list solution projects. Exit code was: {ExitCode}.", exitCode); 1188logger.LogError("Failed to add project reference from {ProjectFile} to {ReferencedProject}. See debug logs for more details.", projectFile.FullName, referencedProject.FullName);
Projects\ProjectLocator.cs (3)
296logger.LogError("No AppHost project files found in directory {Directory}", directory.FullName); 323logger.LogError("Multiple AppHost project files found in directory {Directory}, throwing exception", directory.FullName); 334logger.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)
519logger.LogError("Failed to start the dashboard due to {Count} configuration error(s).", validationFailures.Count); 522logger.LogError("{ErrorMessage}", message);
Aspire.Hosting (18)
ApplicationModel\ResourceNotificationService.cs (5)
226_logger.LogError("Stopped waiting for resource '{ResourceName}' to become healthy because it failed to start.", resourceName); 280resourceLogger.LogError( 289resourceLogger.LogError( 337resourceLogger.LogError( 348resourceLogger.LogError(
Backchannel\AppHostRpcTarget.cs (1)
117logger.LogError("Dashboard URL requested but dashboard is disabled.");
Dashboard\DashboardEventHandlers.cs (2)
317distributedApplicationLogger.LogError("Dashboard DLL not found: {Path}", dashboardDll); 331distributedApplicationLogger.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)
131e.Logger.LogError("The value for URL parameter '{ParameterName}' is invalid: {Error}", resource.UrlParameter?.Name, message);
Publishing\ContainerRuntimeBase.cs (3)
115_logger.LogError("{RuntimeName} login to {RegistryServer} failed with exit code {ExitCode}.", Name, registryServer, processResult.ExitCode); 154_logger.LogError(errorLogTemplate, errorArgs); 203_logger.LogError(errorLogTemplate, errorArgs);
Publishing\DockerContainerRuntime.cs (2)
38Logger.LogError("Failed to create buildkit instance {BuilderName} with exit code {ExitCode}.", builderName, createBuilderResult); 124Logger.LogError("docker buildx for {ImageName} failed with exit code {ExitCode}.", imageName, processResult.ExitCode);
Publishing\ResourceContainerImageBuilder.cs (3)
160logger.LogError("Container runtime is not running or is unhealthy. Cannot build container images."); 231logger.LogError("Building image for {ResourceName} failed", resource.Name); 332logger.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)
168logger.LogError($"Cannot configure an encrypted certificate for redis resource '{redis.Name}'"); 379logger.LogError($"Cannot configure an encrypted certificate for redis insight resource '{resource.Name}'");
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
101resourceLogger.LogError("Test error message");
Aspire.Hosting.Tests (5)
ResourceLoggerServiceTests.cs (5)
31logger.LogError("Hello, error!"); 71logger.LogError("Hello, error!"); 112logger.LogError("Hello, error!"); 233logger.LogError("Hello, error!"); 283logger.LogError("Hello, error!");
AzureSearch.ApiService (1)
Program.cs (1)
152logger.LogError("Failed to import the index data from {file}", hotelsJson);
BuildValidator (9)
CompilationDiff.cs (3)
147logger.LogError(diag.ToString()); 433logger.LogError($"Known issue: {hasEmbedded} has an embedded PDB but {doesntHaveEmbedded} does not have an embedded PDB"); 443logger.LogError($"Known issue: different compression used for embedded portable pdb debug directory entry");
Program.cs (6)
248logger.LogError($"Validation failed for {assemblyInfo.FilePath}"); 282logger.LogError($"\t{diff.AssemblyInfo.FilePath} had {diff.Diagnostics.Length} diagnostics."); 291logger.LogError($"\t{diff.AssemblyInfo.FilePath}"); 300logger.LogError($"{diff.AssemblyInfo.FilePath} {diff.MiscErrorMessage}"); 326logger.LogError($"Could not find pdb for {originalBinary.FullName}"); 358logger.LogError(ex.Message);
dotnet-format (4)
CodeFormatter.cs (1)
97logger.LogError(Resources.Failed_to_save_formatting_changes);
Logging\ILoggerExtensions.cs (1)
27logger.LogError(formattedMessage);
Workspaces\MSBuildWorkspaceLoader.cs (2)
54logger.LogError(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, solutionOrProjectPath); 80logger.LogError(diagnostic.Message);
dotnet-watch (25)
Aspire\AspireServiceFactory.cs (1)
179_logger.LogError("Unexpected error reading output of session '{SessionId}': {Exception}", sessionId, e);
Browser\BrowserLauncher.cs (1)
33logger.LogError("Test requires browser to launch");
Build\EvaluationResult.cs (2)
82logger.LogError("Failed to restore project '{Path}'.", rootProjectPath); 110logger.LogError("Failed to build project '{Path}'.", projectInstance.FullPath);
Build\ProjectGraphFactory.cs (1)
69logger.LogError(e.Message);
Build\ProjectNodeMap.cs (3)
27logger.LogError("Project '{ProjectPath}' not found in the project graph.", projectPath); 43logger.LogError("Project '{ProjectPath}' targets multiple frameworks. Specify which framework to run using '--framework'.", projectPath); 68logger.LogError("Project '{ProjectPath}' doesn't have a target for {TargetFramework}.", projectPath, targetFramework);
CommandLine\CommandLineOptions.cs (1)
345logger.LogError(error.Message);
DefaultHotReloadClient.cs (4)
104Logger.LogError("Failed to read {ResponseType} from the pipe: {Message}", responseType, e.Message); 131Logger.LogError("Unexpected response received from the agent: {ResponseType}", type); 308Logger.LogError("Update batch #{UpdateId} failed with error: {Message}", batchId, e.Message); 367Logger.LogError("Failed to send {RequestType}: {Message}", nameof(RequestType.InitialUpdatesCompleted), e.Message);
HotReload\CompilationHandler.cs (2)
235_logger.LogError("Failed to launch '{ProjectPath}'. Process {PID} exited during initialization.", projectPath, launchResult.ProcessId); 270logger.LogError("Failed to handle runtime rude edit: {Exception}", e.ToString());
HotReloadClients.cs (1)
214ClientLogger.LogError("Failed to read file {FilePath}: {Message}", filePath, e.Message);
Process\ProjectLauncher.cs (1)
46Logger.LogError($"Hot Reload based watching is only supported in .NET 6.0 or newer apps. Use --no-hot-reload switch or update the project's launchSettings.json to disable this feature.");
Program.cs (4)
128logger.LogError(Resources.Error_MultipleProjectsFound, projectPath); 134logger.LogError(Resources.Error_NoProjectsFound, projectPath); 144logger.LogError(Resources.Error_ProjectPath_NotFound, projectPath); 217logger.LogError("An unexpected error occurred: {Exception}", e.ToString());
UI\BuildOutput.cs (2)
22logger.LogError(line); 28logger.LogError(line);
Watch\DotNetWatcher.cs (1)
33context.Logger.LogError("Failed to find a list of files to watch");
Watch\MsBuildFileSetFactory.cs (1)
75Logger.LogError("Error(s) finding watch items project file '{FileName}'.", Path.GetFileName(rootProjectFile));
IIS.FunctionalTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (3)
105Logger.LogError($"Certificate is invalid. Issuer name: {cert?.Issuer}"); 108Logger.LogError($"List of current certificates in root store:"); 112Logger.LogError(otherCert.Issuer);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
243logger.LogError($"Could not read file content. Exception message {ex.Message}"); 244logger.LogError("Current hosting exes running:"); 248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"),
IIS.LongTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
243logger.LogError($"Could not read file content. Exception message {ex.Message}"); 244logger.LogError("Current hosting exes running:"); 248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"),
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
416Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 426e => Logger.LogError($"Failed to create app_offline : {e.Message}"), 582e => Logger.LogError($"Failed to touch web.config : {e.Message}"),
IIS.NewHandler.FunctionalTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
243logger.LogError($"Could not read file content. Exception message {ex.Message}"); 244logger.LogError("Current hosting exes running:"); 248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"),
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
416Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 426e => Logger.LogError($"Failed to create app_offline : {e.Message}"), 582e => Logger.LogError($"Failed to touch web.config : {e.Message}"),
IIS.NewShim.FunctionalTests (7)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
243logger.LogError($"Could not read file content. Exception message {ex.Message}"); 244logger.LogError("Current hosting exes running:"); 248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"),
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
416Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 426e => Logger.LogError($"Failed to create app_offline : {e.Message}"), 582e => Logger.LogError($"Failed to touch web.config : {e.Message}"),
IIS.ShadowCopy.Tests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
243logger.LogError($"Could not read file content. Exception message {ex.Message}"); 244logger.LogError("Current hosting exes running:"); 248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"),
IISExpress.FunctionalTests (10)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (3)
105Logger.LogError($"Certificate is invalid. Issuer name: {cert?.Issuer}"); 108Logger.LogError($"List of current certificates in root store:"); 112Logger.LogError(otherCert.Issuer);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
243logger.LogError($"Could not read file content. Exception message {ex.Message}"); 244logger.LogError("Current hosting exes running:"); 248logger.LogError($"{hostingProcess.ProcessName} pid: {hostingProcess.Id} hasExited: {hostingProcess.HasExited.ToString()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"),
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
416Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 426e => Logger.LogError($"Failed to create app_offline : {e.Message}"), 582e => Logger.LogError($"Failed to touch web.config : {e.Message}"),
Interop.FunctionalTests (1)
H2SpecCommands.cs (1)
239logger.LogError(args.Data);
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterHandler.cs (2)
303Logger.LogError("AccessToken request failed with a status code of " + response.StatusCode); 328Logger.LogError("Email request failed with a status code of " + response.StatusCode);
Microsoft.AspNetCore.BrowserTesting (2)
PageInformation.cs (2)
67_logger.LogError(e.Failure); 80_logger.LogError(e);
Microsoft.AspNetCore.Hosting.Tests (2)
HostingApplicationDiagnosticsTests.cs (1)
40timeoutTokenSource.Token.Register(() => Logger.LogError("Timeout while waiting for counter value."));
Internal\HostingEventSourceTests.cs (1)
193timeoutTokenSource.Token.Register(() => Logger.LogError("Timeout while waiting for counter value."));
Microsoft.AspNetCore.Identity (2)
SignInManager.cs (2)
194Logger.LogError("RefreshSignInAsync prevented because the user is not currently authenticated. Use SignInAsync instead for initial sign in."); 202Logger.LogError("RefreshSignInAsync prevented because currently authenticated user has a different UserId. Use SignInAsync instead to change users.");
Microsoft.AspNetCore.InternalTesting.Tests (1)
XunitLoggerProviderTest.cs (1)
42logger.LogError("This is a bad error");
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.IntegrationTesting (4)
ApplicationPublisher.cs (2)
85logger.LogError(message); 92logger.LogError(message);
Deployers\SelfHostDeployer.cs (2)
181Logger.LogError("Error occurred while starting the process. Exception: {exception}", ex.ToString()); 186Logger.LogError("Host process {processName} {pid} exited with code {exitCode} or failed to start.", startInfo.FileName, HostProcess.Id, HostProcess.ExitCode);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
IISExpressDeployer.cs (2)
235Logger.LogError("Host process {processName} {pid} exited with code {exitCode} or failed to start.", startInfo.FileName, process.Id, process.ExitCode); 268Logger.LogError(message);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
212Trace.LogError(CoreStrings.DynamicPortOnMultipleTransportsNotSupported);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Docker.cs (2)
180logger.LogError("Closing process '{processName}' because it is running longer than the configured timeout.", fileName); 220LogIfNotNull(logger.LogError, $"'{prefix}' stderr: {{0}}", a.Data);
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyLaunchManager.cs (2)
153_logger.LogError($"Couldn't start the SPA development server with command '{_options.LaunchCommand}'."); 160_logger.LogError($"Unable to connect to the SPA development server at '{_options.ServerUrl}'.");
Microsoft.AspNetCore.SpaServices.Extensions (1)
Npm\NodeScriptRunner.cs (1)
101logger.LogError(StripAnsiColors(line));
Microsoft.AspNetCore.WebSockets.ConformanceTests (2)
Autobahn\Executable.cs (1)
53process.ErrorDataReceived += (_, a) => LogIfNotNull(logger.LogError, "stderr: {0}", a.Data);
AutobahnTests.cs (1)
55using (cts.Token.Register(() => logger.LogError("Test run is taking longer than maximum duration of {timeoutMinutes:0.00} minutes. Aborting...", TestTimeout.TotalMinutes)))
Microsoft.CodeAnalysis.LanguageServer (11)
DotnetCliHelper.cs (1)
65_logger.LogError(errorOutput.ToString());
FileBasedPrograms\FileBasedProgramsProjectSystem.cs (1)
183_logger.LogError($"{diagnostic.Location.Path}{diagnostic.Location.Span.Start}: {diagnostic.Message}");
FileBasedPrograms\VirtualProjectXmlProvider.cs (3)
59logger.LogError($"dotnet run-api exited with exit code 0, but did not return any response."); 68logger.LogError($"dotnet run-api version: {error.Version}. Latest known version: {RunApiOutput.LatestKnownVersion}"); 69logger.LogError($"dotnet run-api returned error: '{error.Message}'");
HostWorkspace\Razor\RazorDynamicFileInfoProvider.cs (1)
61_logger.LogError("RazorDynamicFileInfoProvider not initialized. RazorWorkspaceService or RazorLspDynamicFileInfoProvider is null.");
LanguageServer\Handler\Restore\RestoreHandler.cs (1)
56_logger.LogError($"Restore completed with errors.");
Logging\LspServiceLogger.cs (1)
31public override void LogError(string message, params object[] @params) => _hostLogger.LogError(message, @params);
Services\ExtensionAssemblyManager.cs (3)
89logger.LogError("Extension path {assemblyFilePath} does not exist", assemblyFilePath); 96logger.LogError("Failed to get directory from {assemblyFilePath}", assemblyFilePath); 108logger.LogError(
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
540_logger.LogError("The BuildHost process is not responding. Process output:{newLine}{processLog}", Environment.NewLine, processLog); 542_logger.LogError("The BuildHost process exited with {errorCode}. Process output:{newLine}{processLog}", _process.ExitCode, Environment.NewLine, processLog);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\ProductionChannelValidator.cs (1)
120_logger.LogError(message);
Microsoft.DotNet.HotReload.Client.Package (5)
DefaultHotReloadClient.cs (4)
104Logger.LogError("Failed to read {ResponseType} from the pipe: {Message}", responseType, e.Message); 131Logger.LogError("Unexpected response received from the agent: {ResponseType}", type); 308Logger.LogError("Update batch #{UpdateId} failed with error: {Message}", batchId, e.Message); 367Logger.LogError("Failed to send {RequestType}: {Message}", nameof(RequestType.InitialUpdatesCompleted), e.Message);
HotReloadClients.cs (1)
214ClientLogger.LogError("Failed to read file {FilePath}: {Message}", filePath, e.Message);
Microsoft.DotNet.HotReload.Client.Tests (5)
DefaultHotReloadClient.cs (4)
104Logger.LogError("Failed to read {ResponseType} from the pipe: {Message}", responseType, e.Message); 131Logger.LogError("Unexpected response received from the agent: {ResponseType}", type); 308Logger.LogError("Update batch #{UpdateId} failed with error: {Message}", batchId, e.Message); 367Logger.LogError("Failed to send {RequestType}: {Message}", nameof(RequestType.InitialUpdatesCompleted), e.Message);
HotReloadClients.cs (1)
214ClientLogger.LogError("Failed to read file {FilePath}: {Message}", filePath, e.Message);
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.DotNetDeltaApplier.Tests (5)
DefaultHotReloadClient.cs (4)
104Logger.LogError("Failed to read {ResponseType} from the pipe: {Message}", responseType, e.Message); 131Logger.LogError("Unexpected response received from the agent: {ResponseType}", type); 308Logger.LogError("Update batch #{UpdateId} failed with error: {Message}", batchId, e.Message); 367Logger.LogError("Failed to send {RequestType}: {Message}", nameof(RequestType.InitialUpdatesCompleted), e.Message);
HotReloadClients.cs (1)
214ClientLogger.LogError("Failed to read file {FilePath}: {Message}", filePath, e.Message);
Microsoft.Extensions.Telemetry.PerformanceTests (2)
ExtendedLoggerBench.cs (2)
122logger.LogError( 138logger.LogError(@"Range [{start}..{end}], options {options}, guid {guid}",
Microsoft.NET.Build.Containers.UnitTests (1)
RegistryTests.cs (1)
520logger.LogError(sb.ToString());