74 references to ApplicationException
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\ToolRuntimeException.cs (1)
25internal ToolRuntimeException(string message) : base(message)
Identity.ExternalClaims (34)
Pages\Account\ConfirmEmail.cshtml.cs (2)
34throw new ApplicationException($"Unable to load user with ID '{userId}'."); 40throw new ApplicationException($"Error confirming email for user with ID '{userId}':");
Pages\Account\ExternalLogin.cshtml.cs (1)
117throw new ApplicationException("Error loading external login information during confirmation.");
Pages\Account\LoginWith2fa.cshtml.cs (2)
54throw new ApplicationException($"Unable to load two-factor authentication user."); 73throw new ApplicationException($"Unable to load two-factor authentication user.");
Pages\Account\LoginWithRecoveryCode.cshtml.cs (2)
48throw new ApplicationException($"Unable to load two-factor authentication user."); 66throw new ApplicationException($"Unable to load two-factor authentication user.");
Pages\Account\Manage\ChangePassword.cshtml.cs (2)
63throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 85throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\Disable2fa.cshtml.cs (4)
34throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 39throw new ApplicationException($"Cannot disable 2FA for user with ID '{_userManager.GetUserId(User)}' as it's not currently enabled."); 50throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 56throw new ApplicationException($"Unexpected error occurred disabling 2FA for user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (2)
60throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 78throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\ExternalLogins.cshtml.cs (6)
43throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 59throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 65throw new ApplicationException($"Unexpected error occurred removing external login for user with ID '{user.Id}'."); 89throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 95throw new ApplicationException($"Unexpected error occurred loading external login info for user with ID '{user.Id}'."); 101throw new ApplicationException($"Unexpected error occurred adding external login for user with ID '{user.Id}'.");
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
36throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 41throw new ApplicationException($"Cannot generate recovery codes for user with ID '{user.Id}' as they do not have 2FA enabled.");
Pages\Account\Manage\Index.cshtml.cs (5)
60throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 86throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 94throw new ApplicationException($"Unexpected error occurred setting email for user with ID '{user.Id}'."); 103throw new ApplicationException($"Unexpected error occurred setting phone number for user with ID '{user.Id}'."); 120throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (2)
33throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 44throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\SetPassword.cshtml.cs (2)
54throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 77throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
44throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\ResetPassword.cshtml.cs (1)
51throw new ApplicationException("A code must be supplied for password reset.");
illink (3)
Microsoft.AspNetCore.Diagnostics.Tests (3)
ExceptionHandlerTest.cs (3)
588throw new ApplicationException("Something bad happened."); 679innerAppBuilder.Run(_ => throw new ApplicationException("Something bad happened.")); 718innerAppBuilder.Run(_ => throw new ApplicationException("Something bad happened."));
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisHubLifetimeManagerTests.cs (1)
106ConnectionFactory = _ => throw new ApplicationException("throw from connect")
Microsoft.Build.Tasks.Core (4)
ManifestUtil\SecurityUtil.cs (4)
691throw new ApplicationException(resources.GetString("SecurityUtil.OnlyRSACertsAreAllowed")); 813throw new ApplicationException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SigntoolFail"), path, signTool.StandardError.ReadToEnd())); 819throw new ApplicationException(String.Format(CultureInfo.InvariantCulture, resources.GetString("SecurityUtil.SigntoolFail"), path, signTool.StandardError.ReadToEnd())); 879throw new ApplicationException(String.Format(CultureInfo.CurrentCulture,
Microsoft.DotNet.Build.Tasks.VisualStudio (7)
OptProf\FindLatestDrop.cs (4)
59throw new ApplicationException("No drops matching the specified prefix were returned"); 67throw new ApplicationException($"Invalid timestamp: '{item["CreatedDateUtc"]}'"); 74throw new ApplicationException($"Drop has no name: {item}"); 86throw new ApplicationException($"No complete, undeleted drops found");
OptProf\GetRunSettingsSessionConfiguration.cs (3)
84throw new ApplicationException($"Invalid drop URL: '{dropUrl}'"); 103throw new ApplicationException("Invalid value of vsDropName argument: must start with 'Products/'."); 118throw new ApplicationException($"Unable to read config file '{configPath}': {e.Message}");
Microsoft.DotNet.RemoteExecutor (1)
PasteArguments.cs (1)
41throw new ApplicationException("The argv[0] argument cannot include a double quote.");
Microsoft.ML.Core (1)
Data\Repository.cs (1)
431throw new ApplicationException($"Cannot determine product version from assembly {assembly.FullName}.");
Microsoft.ML.TestFramework (1)
PasteArguments.cs (1)
125throw new ApplicationException("The argv[0] argument cannot include a double quote.");
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
53throw new ApplicationException(SR.Format(SR.ResourceTooBig, _sourcePath, System.Int32.MaxValue));
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1356ApplicationException aeAssemblyMissing = new ApplicationException(message);
PresentationFramework (8)
System\Windows\Documents\DocumentReference.cs (2)
272throw new ApplicationException(SR.DocumentReferenceNotFound); 291throw new ApplicationException(SR.DocumentReferenceUnsupportedMimeType);
System\Windows\Documents\DocumentSequence.cs (1)
731throw new ApplicationException(SR.DocumentReferenceHasInvalidDocument);
System\Windows\Documents\PageContent.cs (4)
371throw new ApplicationException(SR.PageContentNotFound); 586throw new ApplicationException(SR.PageContentNotFound); 605throw new ApplicationException(SR.PageContentUnsupportedMimeType); 610throw new ApplicationException(SR.Format(SR.PageContentUnsupportedPageType, o.GetType()));
System\Windows\Markup\BamlMapTable.cs (1)
1624ApplicationException bamlException = new(SR.Format(SR.GetResourceString(id), parameter));
ServerComparison.TestSites (1)
Startup.cs (1)
19throw new ApplicationException("Application exception");
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\TargetParameterCountException.cs (2)
14: base(SR.Arg_TargetParameterCountException) 20: base(message ?? SR.Arg_TargetParameterCountException)
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandleCannotBeOpenedException.cs (2)
14public WaitHandleCannotBeOpenedException() : base(SR.Threading_WaitHandleCannotBeOpenedException) 19public WaitHandleCannotBeOpenedException(string? message) : base(message ?? SR.Threading_WaitHandleCannotBeOpenedException)
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
654ex = new ApplicationException(ex.Message);
src\System\Threading\Mutex.CoreCLR.Unix.cs (1)
118throw new ApplicationException(SR.Arg_SynchronizationLockException);
System.Threading (1)
System\Threading\ReaderWriterLock.cs (1)
1132: base(SR.Format(message, SR.Format(SR.ExceptionFromHResult, errorHResult)))