2 types derived from UnauthorizedAccessException
Microsoft.Maui.Essentials (1)
Types\Shared\Exceptions.shared.cs (1)
34 public class PermissionException : UnauthorizedAccessException
System.Security.AccessControl (1)
System\Security\AccessControl\PrivilegeNotHeldException.cs (1)
13public sealed class PrivilegeNotHeldException : UnauthorizedAccessException
72 instantiations of UnauthorizedAccessException
aspire (1)
Commands\UpdateCommand.cs (1)
869throw new UnauthorizedAccessException(
Aspire.Cli.Tests (1)
BundleServiceTests.cs (1)
181Assert.True(BundleService.IsRetryableDirectoryMoveException(new UnauthorizedAccessException(), isWindows: true));
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
393throw new UnauthorizedAccessException(SR.Format(SR.DirectoryAccessDenied, outputDirectory));
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (1)
509throw new UnauthorizedAccessException(SRServiceModel.UnauthorizedAccess_MemStreamBuffer);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
519throw new UnauthorizedAccessException(SRServiceModel.UnauthorizedAccess_MemStreamBuffer);
Microsoft.Win32.Registry (5)
Microsoft\Win32\RegistryKey.cs (5)
1486throw new UnauthorizedAccessException(SR.UnauthorizedAccess_RegistryNoWrite); 1576new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_RegistryKeyGeneric_Key, str)) : 1577new UnauthorizedAccessException(); 1609new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_RegistryKeyGeneric_Key, str)) : 1610new UnauthorizedAccessException(),
PresentationCore (2)
MS\Internal\FontCache\FontCacheUtil.cs (1)
754throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccessExceptionWithFileName, fileName));
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
24throw new System.UnauthorizedAccessException();
PresentationFramework (1)
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
363throw new UnauthorizedAccessException(SR.StreamCannotBeWritten);
PresentationUI (2)
MS\Internal\Documents\Application\DocumentStream.cs (2)
173throw new UnauthorizedAccessException( 606throw new UnauthorizedAccessException(
ReachFramework (1)
Packaging\XpsManager.cs (1)
159throw new UnauthorizedAccessException();
System.Console (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\EventLogException.cs (1)
40throw new UnauthorizedAccessException();
System.Diagnostics.PerformanceCounter (2)
System\Diagnostics\PerformanceCounterLib.cs (1)
1224throw new UnauthorizedAccessException(SR.Format(SR.CantChangeCategoryRegistration, arg0));
System\Diagnostics\PerformanceDataRegistryKey.cs (1)
126throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_RegistryKeyGeneric_Key, name));
System.Diagnostics.Process (1)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (1)
142throw new UnauthorizedAccessException(SR.Format(SR.OpenProcessAccessDenied, processId));
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\Exception.cs (2)
313exception = new UnauthorizedAccessException(errorMessage, e); 388return new UnauthorizedAccessException(errorMsg);
System.DirectoryServices.AccountManagement (2)
System\DirectoryServices\AccountManagement\exceptions.cs (2)
268exception = new UnauthorizedAccessException(errorMessage, e); 338return new UnauthorizedAccessException(errorMsg);
System.Formats.Tar (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.IO.Compression.ZipFile (1)
System\IO\Compression\ZipFile.Create.cs (1)
511throw new UnauthorizedAccessException(SR.Format(SR.IO_DirectoryNotAllowed, archiveFileName));
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
45return new UnauthorizedAccessException(
System.IO.FileSystem.DriveInfo (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.IO.FileSystem.Watcher (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System.IO.MemoryMappedFiles (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (2)
22throw new UnauthorizedAccessException(); 73throw new UnauthorizedAccessException();
System.IO.Pipes (6)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
137throw new UnauthorizedAccessException(SR.UnauthorizedAccess_NotOwnedByCurrentUser);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (3)
119throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_ClientIsNotCurrentUser, peerID, serverEUID)); 272throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path)); 352throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path));
System.IO.Ports (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
System\IO\Ports\SafeSerialDeviceHandle.Unix.cs (1)
29throw new UnauthorizedAccessException(
System.Private.CoreLib (7)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (2)
145new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 146new UnauthorizedAccessException(SR.UnauthorizedAccess_IODenied_NoPathName, inner);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
131throw new UnauthorizedAccessException(SR.Format(SR.IO_NotAFile, sourceFullPath)); 140throw new UnauthorizedAccessException(SR.Format(SR.IO_NotAFile, destFullPath));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
180throw new UnauthorizedAccessException(SR.UnauthorizedAccess_MemStreamBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
47throw new UnauthorizedAccessException(SR.UnauthorizedAccess_MemStreamBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
877return new System.UnauthorizedAccessException();
System.Security.AccessControl (8)
System\Security\AccessControl\NativeObjectSecurity.cs (2)
103exception = new UnauthorizedAccessException(); 249exception = new UnauthorizedAccessException();
System\Security\AccessControl\Privilege.cs (4)
102throw new UnauthorizedAccessException(); 258throw new UnauthorizedAccessException(); 451throw new UnauthorizedAccessException(); 516throw new UnauthorizedAccessException();
System\Security\AccessControl\Win32.cs (2)
146throw new UnauthorizedAccessException(); 285throw new UnauthorizedAccessException();
System.Security.Principal.Windows (4)
System\Security\Principal\NTAccount.cs (1)
274throw new UnauthorizedAccessException();
System\Security\Principal\SID.cs (1)
1001throw new UnauthorizedAccessException();
System\Security\Principal\Win32.cs (1)
36throw new UnauthorizedAccessException();
System\Security\Principal\WindowsIdentity.cs (1)
843return new UnauthorizedAccessException();
System.ServiceModel.Primitives (2)
System\ServiceModel\Security\RequestSecurityToken.cs (1)
448throw new UnauthorizedAccessException(SRP.UnauthorizedAccess_MemStreamBuffer);
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
588throw new UnauthorizedAccessException(SRP.UnauthorizedAccess_MemStreamBuffer);
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
45return new UnauthorizedAccessException(
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\Accessible.cs (1)
1360throw new UnauthorizedAccessException();
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
962throw new UnauthorizedAccessException();
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
505throw new UnauthorizedAccessException();
695 references to UnauthorizedAccessException
aspire (121)
Acquisition\InstallationCandidateSources.cs (2)
191catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 207catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
Acquisition\InstallSidecarReader.cs (1)
202or UnauthorizedAccessException
Acquisition\IWindowsRegistryReader.cs (1)
111catch (Exception ex) when (ex is SecurityException or UnauthorizedAccessException or IOException)
Acquisition\WingetFirstRunProbe.cs (2)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 102catch (UnauthorizedAccessException ex)
Agents\AspireSkills\AspireSkillsInstaller.cs (10)
262catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException) 360catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException) 628catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 716catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidOperationException) 978catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1003catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1053catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1111catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1151catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1163catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Agents\Copilot\CopilotAppInstallationDetector.cs (2)
139catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 162catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Agents\Hooks\TelemetryHookConfigurator.cs (3)
157catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 177catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 300catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Agents\Hooks\TelemetryHookInstaller.cs (1)
110catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PlatformNotSupportedException)
Agents\Playwright\PlaywrightCliInstaller.cs (3)
294catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 351catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 385catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Bundles\BundleService.cs (11)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 370catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 386catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 436exception is IOException or UnauthorizedAccessException && 535catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 547catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 578catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 614catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 660catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 750catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 821catch (UnauthorizedAccessException)
Certificates\CertificateCacheWriter.cs (1)
61catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
141catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException)
Commands\AgentInitCommand.cs (1)
704catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidOperationException)
Commands\AppHostLauncher.cs (1)
907catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Commands\CacheCommand.cs (2)
101catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 113catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
Commands\Sdk\SdkDumpCommand.cs (1)
373catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException or RemoteInvocationException or AppHostCodeGenerationException)
Commands\UpdateCommand.cs (1)
867catch (UnauthorizedAccessException)
Configuration\ConfigurationService.cs (1)
461catch (UnauthorizedAccessException)
DotNet\DotNetCliRunner.cs (2)
1452catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 1505catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
Git\GitWorktree.cs (2)
318catch (UnauthorizedAccessException) 419catch (UnauthorizedAccessException)
NuGet\BundleNuGetService.cs (2)
272catch (Exception ex) when (ex is InvalidOperationException or JsonException or IOException or UnauthorizedAccessException) 340catch (UnauthorizedAccessException)
Program.cs (1)
1022catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or DirectoryNotFoundException or ArgumentException or NotSupportedException)
Projects\AppHostServerClosureSnapshots.cs (2)
462catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 503catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\DotNetAppHostProject.cs (2)
261catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or XmlException) 2078catch (UnauthorizedAccessException ex)
Projects\GeneratedFileWriter.cs (1)
41catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\GuestAppHostProject.cs (4)
1974catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1985catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 2018catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 2308catch (Exception ex) when (ex is ArgumentException or IOException or UnauthorizedAccessException or NotSupportedException)
Projects\GuestRuntime.cs (3)
459catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 475/// Lazy on purpose: an <see cref="IOException"/> or <see cref="UnauthorizedAccessException"/> from 564catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\JavaAppHostToolchainResolver.cs (3)
261catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 506catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 627catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or XmlException)
Projects\PrebuiltAppHostServer.cs (3)
488catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or XmlException) 633catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 651catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Projects\ProjectLocator.cs (1)
1377catch (Exception ex) when (ex is TimeoutException or IOException or UnauthorizedAccessException)
Projects\SolutionLocator.cs (2)
59catch (UnauthorizedAccessException) 72catch (UnauthorizedAccessException)
Projects\TypeScriptAppHostToolchainResolver.cs (2)
393or UnauthorizedAccessException or SecurityException 471catch (Exception ex) when (ex is IOException or UnauthorizedAccessException
src\Shared\AppHostSocketManager.cs (1)
262catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\BundleVersionLease.cs (1)
196catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException)
src\Shared\FileLock.cs (3)
70catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 91catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 127catch (UnauthorizedAccessException)
src\Shared\HeldFileLease.cs (6)
88catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 126catch (UnauthorizedAccessException) 164catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 201catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 225catch (UnauthorizedAccessException) 256catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
src\Shared\PathNormalizer.cs (2)
123catch (UnauthorizedAccessException) 247catch (UnauthorizedAccessException)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Telemetry\InternalMicrosoftDetector.cs (6)
428UnauthorizedAccessException => InternalMicrosoftProbeExceptionType.UnauthorizedAccess, 525catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException) 574catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 639catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1529catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 1596catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.cs (1)
371catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PlatformNotSupportedException)
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
119catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.GoStarterTemplate.cs (1)
101catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.JavaStarterTemplate.cs (1)
101catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
115catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
99catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\CliPathHelper.cs (1)
381or UnauthorizedAccessException
Utils\ConfigurationHelper.cs (1)
216catch (UnauthorizedAccessException)
Utils\EnvironmentChecker\DevCertsCheck.cs (2)
317catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException) 402catch (Exception ex) when (ex is CryptographicException or IOException or UnauthorizedAccessException)
Utils\EnvironmentChecker\VsCodeExtensionCheck.cs (1)
199catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\EnvironmentChecker\WslEnvironmentCheck.cs (1)
228catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\FileDeleteHelper.cs (5)
13/// <see cref="UnauthorizedAccessException"/>. Rather than failing the entire 39catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 78catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 116catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 128catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\FileSystemHelper.cs (2)
22catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 37catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\ReparsePoint.cs (5)
121catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 139catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 172catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 214catch (UnauthorizedAccessException) 269catch (Exception ex) when (ex is UnauthorizedAccessException or IOException)
aspire-managed (9)
Program.cs (1)
15catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or DirectoryNotFoundException or ArgumentException or NotSupportedException)
src\Shared\BundleVersionLease.cs (1)
196catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException)
src\Shared\HeldFileLease.cs (6)
88catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 126catch (UnauthorizedAccessException) 164catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 201catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 225catch (UnauthorizedAccessException) 256catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Cli.EndToEnd.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Cli.Tests (15)
Bundles\BundleServiceCrossRouteExtractionTests.cs (1)
102catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Git\GitWorktreeTests.cs (3)
95catch (UnauthorizedAccessException ex) 152catch (UnauthorizedAccessException ex) 253catch (UnauthorizedAccessException ex)
Projects\AppHostWorkloadIdTests.cs (1)
100catch (UnauthorizedAccessException ex)
Projects\ProjectLocatorTests.cs (1)
4126catch (UnauthorizedAccessException ex)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
TestServices\TestSymlinkHelper.cs (1)
21catch (UnauthorizedAccessException ex)
Utils\ReparsePointTests.cs (2)
175catch (Exception ex) when (ex is UnauthorizedAccessException or IOException) 416catch (Exception ex) when (ex is UnauthorizedAccessException or IOException)
Aspire.Dashboard (9)
ServiceClient\DashboardRunStore.cs (6)
231catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 388catch (Exception exception) when (exception is IOException or UnauthorizedAccessException or JsonException) 454catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 481catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 498catch (Exception exception) when (exception is IOException or UnauthorizedAccessException or JsonException) 518catch (Exception exception) when (exception is IOException or UnauthorizedAccessException)
src\Shared\FileLock.cs (3)
70catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 91catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 127catch (UnauthorizedAccessException)
Aspire.Dashboard.Components.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Dashboard.Tests (7)
Model\DashboardDataSourceTests.cs (1)
1365catch (Exception exception) when (exception is IOException or UnauthorizedAccessException)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Deployment.EndToEnd.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting (25)
DistributedApplicationBuilder.cs (1)
1066catch (Exception ex) when (ex is ArgumentException or IOException or UnauthorizedAccessException or JsonException or InvalidDataException or FormatException or TimeoutException)
Lifecycle\TerminalHostOrphanCleanupService.cs (10)
173catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 194catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 280catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 382catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 399catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 422catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 454catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 473catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 492catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 504catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Pipelines\Internal\FileDeploymentStateManager.cs (1)
618exception is JsonException or InvalidOperationException or InvalidDataException or IOException or UnauthorizedAccessException;
src\Shared\AppHostSocketManager.cs (1)
262catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\FileLock.cs (3)
70catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 91catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 127catch (UnauthorizedAccessException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
src\Shared\PathNormalizer.cs (2)
123catch (UnauthorizedAccessException) 247catch (UnauthorizedAccessException)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
TerminalResourceBuilderExtensions.cs (4)
196catch (Exception ex) when (ex is UnauthorizedAccessException or IOException) 324catch (Exception ex) when (ex is UnauthorizedAccessException or IOException) 338catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 350catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Azure (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
Aspire.Hosting.Azure.Sandboxes (3)
src\Shared\FileLock.cs (3)
70catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 91catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 127catch (UnauthorizedAccessException)
Aspire.Hosting.Browsers (8)
BrowserEndpointDiscovery.cs (2)
80catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException) 286catch (UnauthorizedAccessException)
BrowserHost.cs (1)
243catch (UnauthorizedAccessException ex)
BrowserLogsConfigurationManager.cs (1)
237catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Text.Json.JsonException)
ChromiumBrowserResolver.cs (2)
98catch (UnauthorizedAccessException ex) 185catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
Aspire.Hosting.Browsers.Tests (8)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (2)
80catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException) 286catch (UnauthorizedAccessException)
src\Aspire.Hosting.Browsers\BrowserHost.cs (1)
243catch (UnauthorizedAccessException ex)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
237catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Text.Json.JsonException)
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (2)
98catch (UnauthorizedAccessException ex) 185catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
Aspire.Hosting.CodeGeneration.Rust.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Docker (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
Aspire.Hosting.Dotnet (21)
DotnetProjectBuildArtifactManager.cs (8)
218catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException or System.Security.SecurityException) 310catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 361catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException or System.Security.SecurityException) 380catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 396catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 448catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 503catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 516catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException or System.Security.SecurityException)
DotnetProjectBuildEnvironmentCallbackAnnotation.cs (1)
113catch (Exception ex) when (ex is DirectoryNotFoundException or IOException or UnauthorizedAccessException or System.Security.SecurityException)
DotnetProjectRunPropertiesResolver.cs (1)
147catch (Exception ex) when (ex is ArgumentException or JsonException or InvalidOperationException or KeyNotFoundException or IOException or UnauthorizedAccessException)
src\Shared\FileLock.cs (3)
70catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 91catch (Exception exception) when (exception is IOException or UnauthorizedAccessException) 127catch (UnauthorizedAccessException)
src\Shared\HeldFileLease.cs (6)
88catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 126catch (UnauthorizedAccessException) 164catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 201catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 225catch (UnauthorizedAccessException) 256catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
src\Shared\PathNormalizer.cs (2)
123catch (UnauthorizedAccessException) 247catch (UnauthorizedAccessException)
Aspire.Hosting.Dotnet.Tests (3)
DotnetProjectBuildCoordinatorTests.cs (3)
1794catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PlatformNotSupportedException) 2091catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 3105catch (Exception ex) when (ex is DirectoryNotFoundException or FileNotFoundException or IOException or UnauthorizedAccessException)
Aspire.Hosting.Java (9)
JavaBuildToolResolver.cs (1)
161catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
JavaHostingExtensions.cs (4)
1911catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 2068catch (Exception ex) when (ex is XmlException or IOException or UnauthorizedAccessException) 2099catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 2228catch (Exception ex) when (ex is IOException or InvalidDataException or UnauthorizedAccessException)
JavaVersionDetector.cs (2)
90catch (Exception ex) when (ex is System.Xml.XmlException or IOException or UnauthorizedAccessException) 364catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\PathNormalizer.cs (2)
123catch (UnauthorizedAccessException) 247catch (UnauthorizedAccessException)
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (1)
2754catch (UnauthorizedAccessException)
src\Shared\PathNormalizer.cs (2)
123catch (UnauthorizedAccessException) 247catch (UnauthorizedAccessException)
Aspire.Hosting.JavaScript.Tests (1)
DenoAppFixture.cs (1)
106catch (UnauthorizedAccessException)
Aspire.Hosting.Kubernetes (4)
CertManagerExtensions.cs (1)
493catch (UnauthorizedAccessException) { /* best-effort cleanup */ }
KubernetesEnvironmentResource.cs (1)
1647catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
Aspire.Hosting.Maui (2)
src\Shared\PathNormalizer.cs (2)
123catch (UnauthorizedAccessException) 247catch (UnauthorizedAccessException)
Aspire.Hosting.Radius (3)
Publishing\RadiusDeploymentPipelineStep.cs (1)
331catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Publishing\SealedSecretApplyStep.cs (1)
688catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Secrets\SealedSecretManifest.cs (1)
71catch (Exception ex) when (ex is IOException or PathTooLongException or UnauthorizedAccessException or NotSupportedException or ArgumentException)
Aspire.Hosting.RemoteHost (2)
IntegrationLoadContext.cs (1)
111catch (UnauthorizedAccessException ex)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.RemoteHost.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Rust (3)
RustDockerfileGenerator.cs (1)
297catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\Shared\PathNormalizer.cs (2)
123catch (UnauthorizedAccessException) 247catch (UnauthorizedAccessException)
Aspire.Hosting.Rust.Tests (2)
AddRustAppPublishTests.cs (2)
669catch (UnauthorizedAccessException) 1152catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PlatformNotSupportedException)
Aspire.Hosting.Sdk.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.Tasks (3)
CommandPathResolver.cs (1)
92catch (UnauthorizedAccessException)
ResolveAspireCliBundle.cs (1)
490or UnauthorizedAccessException
ResolveAspireCliInvocation.cs (1)
205catch (Exception ex) when (ex is InvalidOperationException or IOException or UnauthorizedAccessException or System.ComponentModel.Win32Exception)
Aspire.Hosting.Tests (1)
WithTerminalTests.cs (1)
1078catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Hosting.TestUtilities (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Managed.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.Playground.Tests (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
Aspire.TerminalHost (3)
src\Shared\ProcessStartTimeHelper.cs (1)
347catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
TerminalReplica.cs (2)
587catch (Exception ex) when (ex is UnauthorizedAccessException or IOException) 626catch (UnauthorizedAccessException ex)
Aspire.TerminalHost.Tests (6)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Aspire.TestUtilities (2)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
CSharpSyntaxGenerator (1)
Program.cs (1)
180catch (UnauthorizedAccessException)
dotnet-aot (5)
parent\dotnet\Commands\Run\AotRunCommand.cs (1)
368UnauthorizedAccessException or
parent\dotnet\Commands\Test\MTP\ArtifactPostProcessingManager.cs (1)
225catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (3)
489catch (Exception exception) when (exception is IOException or UnauthorizedAccessException or FormatException) 806exception is IOException or UnauthorizedAccessException or JsonException or ArgumentException or NotSupportedException) 981catch (Exception exception) when (exception is IOException or UnauthorizedAccessException or FormatException)
dotnet-getdocument (2)
Commands\InvokeCommand.cs (2)
177catch (UnauthorizedAccessException) 185catch (UnauthorizedAccessException)
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
390catch (UnauthorizedAccessException)
dotnet-svcutil-lib (1)
CodeSerializer.cs (1)
84catch (System.UnauthorizedAccessException)
Infrastructure.Tests (8)
src\Shared\PathLookupHelper.cs (2)
214catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or PathTooLongException or System.Security.SecurityException) 249catch (UnauthorizedAccessException)
tests\Shared\TemporaryWorkspace.cs (6)
69catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 95catch (Exception ex) when ((ex is IOException or UnauthorizedAccessException) && i < maxRetries - 1) 100catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 130catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 141catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 175catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeTransportFactory.cs (1)
60catch (UnauthorizedAccessException ex)
Microsoft.Build (5)
BackEnd\Shared\BuildRequestConfiguration.cs (2)
844catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException) 883catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException)
Construction\Solution\ProjectInSolution.cs (1)
381catch (UnauthorizedAccessException e)
Construction\Solution\SolutionFile.cs (1)
1254catch (UnauthorizedAccessException e)
Logging\ProfilerLogger.cs (1)
303UnauthorizedAccessException or
Microsoft.Build.Framework (8)
ExceptionHandling.cs (2)
83return e is UnauthorizedAccessException 179|| e is UnauthorizedAccessException
FileUtilities.cs (1)
1135catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
Utilities\FileMatcher.cs (5)
382catch (UnauthorizedAccessException) 483catch (System.UnauthorizedAccessException) 539catch (System.UnauthorizedAccessException) 968catch (UnauthorizedAccessException) { } 3442catch (UnauthorizedAccessException) { }
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
128e is UnauthorizedAccessException ||
Microsoft.Build.Tasks.Core (17)
AssemblyDependency\Node\OutOfProcRarNode.cs (1)
49catch (UnauthorizedAccessException ex)
AssemblyDependency\ReferenceTable.cs (1)
519catch (UnauthorizedAccessException e)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2816catch (UnauthorizedAccessException)
BootstrapperUtil\BootstrapperBuilder.cs (4)
382catch (UnauthorizedAccessException ex) 1483catch (UnauthorizedAccessException ex) 2018catch (UnauthorizedAccessException) 2057catch (UnauthorizedAccessException)
Copy.cs (2)
1029case UnauthorizedAccessException: 1065if (e is UnauthorizedAccessException)
ManifestUtil\ManifestWriter.cs (1)
154catch (UnauthorizedAccessException)
ManifestUtil\Util.cs (3)
483catch (UnauthorizedAccessException) 519catch (UnauthorizedAccessException) 547catch (UnauthorizedAccessException)
parent\Shared\AssemblyFolders\Serialization\AssemblyFolderCollection.cs (1)
26/// <exception cref="UnauthorizedAccessException">The caller does not have permission to read the file.</exception>
RemoveDir.cs (1)
129catch (UnauthorizedAccessException e)
Untar.cs (2)
303catch (Exception e) when (e is IOException or UnauthorizedAccessException) 367catch (Exception e) when (e is IOException or UnauthorizedAccessException)
Microsoft.Build.Utilities.Core (2)
parent\Shared\AssemblyFolders\Serialization\AssemblyFolderCollection.cs (1)
26/// <exception cref="UnauthorizedAccessException">The caller does not have permission to read the file.</exception>
ToolTask.cs (1)
1704catch (Exception e) when (e is Win32Exception || e is IOException || e is UnauthorizedAccessException)
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Utilities\IOUtilities.cs (1)
56UnauthorizedAccessException or
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
566catch (UnauthorizedAccessException exception)
Microsoft.Diagnostics.NETCore.Client (4)
DiagnosticsClient\DiagnosticsClient.cs (2)
440catch (UnauthorizedAccessException ex) 495catch (UnauthorizedAccessException)
DiagnosticsIpc\IpcTransport.cs (2)
387catch (UnauthorizedAccessException) 449catch (UnauthorizedAccessException)
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
623return e is UnauthorizedAccessException
Microsoft.DotNet.Build.Tasks.Packaging (1)
GetPackageDescription.cs (1)
111if (excep is IOException || excep is UnauthorizedAccessException)
Microsoft.DotNet.Cli.Definitions (1)
Commands\Test\TestCommandDefinition.cs (1)
96catch (Exception ex) when (ex is JsonException or IOException or UnauthorizedAccessException)
Microsoft.DotNet.Cli.Utils (1)
FileAccessRetrier.cs (1)
34catch (UnauthorizedAccessException)
Microsoft.DotNet.Configurer (1)
UserLevelCacheWriter.cs (1)
52if (ex is UnauthorizedAccessException
Microsoft.DotNet.SdkResolver (1)
VSSettings.cs (1)
113catch (UnauthorizedAccessException) { }
Microsoft.Extensions.Diagnostics.ResourceMonitoring (3)
Linux\Disk\LinuxSystemDiskMetrics.cs (1)
176ex is UnauthorizedAccessException)
Linux\LinuxUtilizationProvider.cs (1)
335ex is System.UnauthorizedAccessException)
Linux\Network\LinuxNetworkMetrics.cs (1)
104ex is UnauthorizedAccessException)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\LinuxNetworkMetricsTests.cs (1)
68[InlineData(typeof(UnauthorizedAccessException))]
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (1)
75catch (UnauthorizedAccessException)
ManifestEmbeddedFileProvider.cs (1)
140catch (UnauthorizedAccessException)
Microsoft.Extensions.FileProviders.Physical (7)
Internal\FileSystemInfoHelper.cs (1)
62catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
PhysicalFilesWatcher.cs (4)
362catch (Exception ex) when (ex is IOException or SecurityException or DirectoryNotFoundException or UnauthorizedAccessException) 505catch (Exception ex) when (ex is IOException or SecurityException or UnauthorizedAccessException) 589catch (Exception ex) when (ex is IOException or SecurityException or DirectoryNotFoundException or UnauthorizedAccessException) 854catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or SecurityException)
PollingFileChangeToken.cs (1)
70catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or SecurityException)
PollingWildCardChangeToken.cs (1)
166catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or SecurityException)
Microsoft.Extensions.Http.Resilience.Tests (1)
BuildTransitive\GrpcNetClientFactoryVersionTargetTests.cs (1)
267catch (UnauthorizedAccessException)
Microsoft.Maui.Resizetizer (1)
SkiaSharpTools.cs (1)
221 case UnauthorizedAccessException:
Microsoft.ML.Tests (1)
DatabaseLoaderTests.cs (1)
83catch (UnauthorizedAccessException ex)
Microsoft.NET.Build.Extensions.Tasks (1)
GetDependsOnNETStandard.cs (1)
85|| e is UnauthorizedAccessException
Microsoft.NET.Build.Tasks (5)
CreateAppHost.cs (2)
110ex is UnauthorizedAccessException || 111(ex is AggregateException && (ex.InnerException is IOException || ex.InnerException is UnauthorizedAccessException)))
LockFileCache.cs (1)
83catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
ResolvePackageAssets.cs (2)
537catch (UnauthorizedAccessException) { } 578catch (UnauthorizedAccessException) { }
Microsoft.NET.ProjectData (18)
CacheFileReader.cs (1)
261 => ex is IOException or UnauthorizedAccessException or FormatException or ArgumentException or NotSupportedException or InvalidOperationException;
CachePathResolver.cs (2)
262 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 892 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Donor\ProjectDataDonorIndex.cs (3)
71 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException or InvalidOperationException or ArgumentException or NotSupportedException) 237 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 256 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Donor\ProjectDataDonorIndex.Git.cs (3)
93 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 170 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidOperationException or System.ComponentModel.Win32Exception) 295 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Donor\ProjectDataDonorIndex.Selection.cs (1)
62 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException)
Donor\ProjectDataDonorIndex.Serialization.cs (1)
132 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
FrameworkListExpander.cs (1)
68 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Xml.XmlException)
ProjectDataBuildAttemptManifest.cs (1)
80 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException or FormatException or ArgumentException or NotSupportedException)
ProjectDataBuildReceipt.cs (2)
237 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 245 or UnauthorizedAccessException
SdkKnownFrameworkReferenceResolver.cs (1)
74 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Xml.XmlException)
UnsupportedProjectDataMarker.cs (2)
247 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 257 => ex is IOException or UnauthorizedAccessException or FormatException or ArgumentException or NotSupportedException or InvalidOperationException or CryptographicException;
Microsoft.NET.ProjectData.Generators (1)
DataModelSchemaGenerator.cs (1)
67 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Microsoft.NET.ProjectData.Tasks (17)
MergeProjectDataSlicesTask.cs (1)
207 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
ProjectDataBuildCompletionLogger.cs (1)
519 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
ProjectDataWriter.cs (3)
478 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 497 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 580 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or ArgumentException or NotSupportedException)
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\Donor\ProjectDataDonorIndex.cs (3)
71 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException or InvalidOperationException or ArgumentException or NotSupportedException) 237 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 256 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\Donor\ProjectDataDonorIndex.Serialization.cs (1)
132 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildAttemptManifest.cs (1)
80 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or JsonException or FormatException or ArgumentException or NotSupportedException)
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildReceipt.cs (2)
237 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 245 or UnauthorizedAccessException
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\UnsupportedProjectDataMarker.cs (2)
247 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 257 => ex is IOException or UnauthorizedAccessException or FormatException or ArgumentException or NotSupportedException or InvalidOperationException or CryptographicException;
ValidateProjectDataPackagesTask.cs (1)
417 catch (UnauthorizedAccessException ex)
WriteProjectDataSliceTask.cs (1)
267 catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
WriteUnsupportedProjectDataMarkerTask.cs (1)
48 => ex is IOException or UnauthorizedAccessException or ArgumentException or NotSupportedException or InvalidOperationException or CryptographicException;
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (1)
CachingWorkloadResolver.cs (1)
131catch (Exception e) when (e is IOException or UnauthorizedAccessException)
Microsoft.TestPlatform.Build (1)
Tasks\TestTaskUtils.cs (1)
287catch (UnauthorizedAccessException)
Microsoft.TestPlatform.CrossPlatEngine (1)
Execution\BaseRunTests.cs (1)
534string exceptionMessage = (e is UnauthorizedAccessException)
Microsoft.VisualBasic.Forms (32)
Microsoft\VisualBasic\Helpers\FileSystemUtils.vb (1)
57TypeOf ex Is UnauthorizedAccessException Then
Microsoft\VisualBasic\MyServices\FileSystemProxy.vb (31)
104''' <exception cref="UnauthorizedAccessException">A destination file exists but cannot be accessed.</exception> 137''' <exception cref="UnauthorizedAccessException">A destination file exists but cannot be accessed.</exception> 172''' <exception cref="UnauthorizedAccessException">A destination file exists but cannot be accessed.</exception> 211''' <exception cref="UnauthorizedAccessException">A destination file exists but cannot be accessed.</exception> 244''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 274''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 306''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 341''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 370''' <exception cref="UnauthorizedAccessException">The user does not have permission to create the directory.</exception> 399''' <exception cref="UnauthorizedAccessException">The user does not have permission to create the directory.</exception> 434''' <exception cref="UnauthorizedAccessException">The user does not have permission to create the directory.</exception> 473''' <exception cref="UnauthorizedAccessException">The user does not have permission to create the directory.</exception> 505''' <exception cref="UnauthorizedAccessException">The user does not have permission to delete the file or the file is read-only.</exception> 540''' <exception cref="UnauthorizedAccessException">The user does not have permission to delete the file or the file is read-only.</exception> 579''' <exception cref="UnauthorizedAccessException">The user does not have permission to delete the file or the file is read-only.</exception> 631''' <exception cref="UnauthorizedAccessException">The user lacks necessary permissions.</exception> 672''' <exception cref="UnauthorizedAccessException">The user lacks necessary permissions.</exception> 702''' <exception cref="UnauthorizedAccessException">A destination file exists but cannot be accessed.</exception> 790''' <exception cref="UnauthorizedAccessException">The user lacks ACL (access control list) access to the file.</exception> 815''' <exception cref="UnauthorizedAccessException">The user lacks necessary permissions.</exception> 846''' <exception cref="UnauthorizedAccessException">The user lacks necessary permissions.</exception> 927''' <exception cref="UnauthorizedAccessException">The user lacks necessary permissions.</exception> 961''' <exception cref="UnauthorizedAccessException">The user lacks necessary permissions.</exception> 998''' <exception cref="UnauthorizedAccessException">The user lacks necessary permissions.</exception> 1038''' <exception cref="UnauthorizedAccessException">The user lacks necessary permissions.</exception> 1071''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 1102''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 1134''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 1169''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 1422''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception> 1448''' <exception cref="UnauthorizedAccessException">The user does not have required permission.</exception>
Microsoft.VisualStudio.TestPlatform.Common (1)
DataCollection\DataCollectionAttachmentManager.cs (1)
126catch (UnauthorizedAccessException accessException)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
TrxLogger.cs (1)
501catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or XmlException or NotSupportedException or SecurityException)
MSBuild (1)
CommandLine\CommandLineParser.cs (1)
411catch (UnauthorizedAccessException e)
mscorlib (1)
parent\ref\mscorlib.cs (1)
1219[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UnauthorizedAccessException))]
netstandard (1)
netstandard.cs (1)
2220[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UnauthorizedAccessException))]
NuGet.Common (9)
ConcurrencyUtilities.cs (2)
85catch (UnauthorizedAccessException) 177catch (UnauthorizedAccessException)
LocalResourceUtils.cs (3)
35catch (UnauthorizedAccessException) 56catch (UnauthorizedAccessException) 122catch (UnauthorizedAccessException)
PathUtil\FileUtility.cs (4)
198catch (Exception ex) when ((i < (MaxTries - 1)) && (ex is UnauthorizedAccessException || ex is IOException)) 228catch (Exception ex) when ((i < (MaxTries - 1)) && (ex is UnauthorizedAccessException || ex is IOException)) 248catch (Exception ex) when ((i < retries) && (ex is UnauthorizedAccessException || ex is IOException)) 270catch (Exception ex) when ((i < retries) && (ex is UnauthorizedAccessException || ex is IOException))
NuGet.Configuration (2)
Settings\SettingsFile.cs (1)
229catch (UnauthorizedAccessException e)
Utility\FileSystemUtility.cs (1)
87catch (UnauthorizedAccessException)
NuGet.PackageManagement (4)
Projects\PackagesConfigNuGetProject.cs (2)
289&& (ex is IOException || ex is UnauthorizedAccessException)) 297(ex is IOException || ex is UnauthorizedAccessException || ex is XmlException)
Utility\FileSystemUtility.cs (2)
197catch (UnauthorizedAccessException) 454catch (UnauthorizedAccessException)
NuGet.Packaging (2)
PackageExtraction\PackagePathHelper.cs (2)
35catch (UnauthorizedAccessException) 56catch (UnauthorizedAccessException)
NuGet.Protocol (3)
Plugins\PluginDiscoverer.cs (1)
282catch (UnauthorizedAccessException) { }
Utility\GetDownloadResultUtility.cs (1)
150catch (Exception e) when (e is UnauthorizedAccessException ||
Utility\LocalFolderUtility.cs (1)
784catch (UnauthorizedAccessException)
PresentationCore (5)
MS\Internal\DpiUtil\DpiUtil+ProcessDpiAwarenessHelper.cs (1)
74catch (Exception e) when (e is ArgumentException || e is UnauthorizedAccessException || e is COMException)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (2)
132catch (Exception e) when (retries > 0 && (e is IOException || e is UnauthorizedAccessException)) 161catch(System.UnauthorizedAccessException)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
1135|| e is UnauthorizedAccessException
System\Windows\Media\FontFamily.cs (1)
528catch (UnauthorizedAccessException)
PresentationFramework (4)
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
643{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)}}
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (3)
55{true, new List<Type> { typeof(COMException), typeof(UnauthorizedAccessException)} } 143catch (UnauthorizedAccessException uae) 161catch (Exception e) when (suppressOtherExceptions && !(e is COMException) && !(e is UnauthorizedAccessException))
PresentationUI (8)
MS\Internal\Documents\Application\DocumentStream.cs (4)
436catch (UnauthorizedAccessException uae) 556catch (UnauthorizedAccessException) 691catch (UnauthorizedAccessException uae) 764catch (UnauthorizedAccessException io)
MS\Internal\Documents\Application\FileController.cs (3)
69catch (UnauthorizedAccessException uae) 115catch (UnauthorizedAccessException uae) 332catch (UnauthorizedAccessException uae)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
270(exception is UnauthorizedAccessException) ||
System.ComponentModel.Composition (8)
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (8)
69/// <exception cref="UnauthorizedAccessException"> 108/// <exception cref="UnauthorizedAccessException"> 146/// <exception cref="UnauthorizedAccessException"> 189/// <exception cref="UnauthorizedAccessException"> 227/// <exception cref="UnauthorizedAccessException"> 271/// <exception cref="UnauthorizedAccessException"> 320/// <exception cref="UnauthorizedAccessException"> 374/// <exception cref="UnauthorizedAccessException">
System.Diagnostics.EventLog (1)
System\Diagnostics\EventLog.cs (1)
574catch (UnauthorizedAccessException)
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceCounterLib.cs (1)
1266catch (UnauthorizedAccessException)
System.Diagnostics.Process (3)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (2)
66/// <exception cref="UnauthorizedAccessException">Thrown when the process exists but the caller does not have permissions to open it.</exception> 105/// <exception cref="UnauthorizedAccessException">Thrown when the process exists but the caller does not have permissions to open it.</exception>
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (1)
29catch (UnauthorizedAccessException) { }
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\TextWriterTraceListener.cs (1)
245catch (UnauthorizedAccessException)
System.DirectoryServices (3)
System\DirectoryServices\ActiveDirectory\Domain.cs (1)
800catch (UnauthorizedAccessException)
System\DirectoryServices\ActiveDirectory\Forest.cs (1)
610catch (UnauthorizedAccessException)
System\DirectoryServices\ActiveDirectory\TrustHelper.cs (1)
989catch (UnauthorizedAccessException)
System.Formats.Tar (10)
System\Formats\Tar\TarEntry.cs (2)
212/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 243/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception>
System\Formats\Tar\TarFile.cs (8)
272/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 292/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 334/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 356/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 401/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 420/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 464/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception> 485/// <exception cref="UnauthorizedAccessException">Operation not permitted due to insufficient permissions.</exception>
System.IO.Compression.ZipFile (47)
System\IO\Compression\ZipFile.Create.Async.cs (6)
25/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 50/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 90/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 209/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 254/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 303/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory.
System\IO\Compression\ZipFile.Create.cs (6)
23/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 45/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 82/// <exception cref="UnauthorizedAccessException">archiveFileName specified a directory. 196/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 238/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory. 284/// <exception cref="UnauthorizedAccessException"><code>destinationArchiveFileName</code> specified a directory.
System\IO\Compression\ZipFile.Extract.Async.cs (10)
32/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 67/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 103/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 160/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 228/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 300/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 332/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 372/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 413/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 469/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception>
System\IO\Compression\ZipFile.Extract.cs (10)
30/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 62/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 95/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 149/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 211/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 273/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 302/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 339/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 377/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception> 425/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission to access the archive or the destination directory.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.Async.cs (4)
33/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory. -or- The caller does not have the 61/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory, or the caller lacks permission.</exception> 94/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory. 124/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory, or the caller lacks permission.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (3)
33/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory. -or- The caller does not have the 64/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory. 110/// <exception cref="UnauthorizedAccessException">sourceFileName specified a directory.
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.Async.cs (2)
29/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 62/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
27/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 57/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.Async.cs (2)
17/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 46/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
14/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 42/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
System.IO.FileSystem.AccessControl (3)
System\IO\FileSystemAclExtensions.cs (3)
104/// <exception cref="UnauthorizedAccessException">Access to the path is denied.</exception> 132/// <exception cref="UnauthorizedAccessException">Access to the path is denied.</exception> 201/// <exception cref="UnauthorizedAccessException">Access to the path is denied.</exception>
System.IO.IsolatedStorage (6)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (6)
51catch (UnauthorizedAccessException) 179catch (UnauthorizedAccessException e) 203catch (UnauthorizedAccessException e) 245catch (UnauthorizedAccessException) 261catch (UnauthorizedAccessException) 277catch (UnauthorizedAccessException)
System.Net.NameResolution (2)
System\Net\ResolvConf.cs (2)
56catch (UnauthorizedAccessException) 73catch (UnauthorizedAccessException)
System.Net.NetworkInformation (4)
System\Net\NetworkInformation\LinuxIPv4InterfaceProperties.cs (1)
55catch (NetworkInformationException ex) when (ex.InnerException is IOException or UnauthorizedAccessException) { }
System\Net\NetworkInformation\LinuxNetworkInterface.cs (3)
39catch (UnauthorizedAccessException) 50catch (UnauthorizedAccessException) 61catch (Exception e) when (e is FileNotFoundException || e is UnauthorizedAccessException)
System.Private.CoreLib (59)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
95catch (UnauthorizedAccessException) { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\EnumerationOptions.cs (1)
54/// <summary>Gets or sets a value that indicates whether to skip files or directories when access is denied (for example, <see cref="UnauthorizedAccessException" /> or <see cref="Security.SecurityException" />). The default is <see langword="true" />.</summary>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (50)
115catch (UnauthorizedAccessException) { } 228/// <exception cref="UnauthorizedAccessException"> 260/// <exception cref="UnauthorizedAccessException"> 288/// <exception cref="UnauthorizedAccessException"> 313/// <exception cref="UnauthorizedAccessException"> 341/// <exception cref="UnauthorizedAccessException"> 372/// <exception cref="UnauthorizedAccessException"> 400/// <exception cref="UnauthorizedAccessException"> 425/// <exception cref="UnauthorizedAccessException"> 453/// <exception cref="UnauthorizedAccessException"> 484/// <exception cref="UnauthorizedAccessException"> 512/// <exception cref="UnauthorizedAccessException"> 537/// <exception cref="UnauthorizedAccessException"> 561/// <exception cref="UnauthorizedAccessException"> 585/// <exception cref="UnauthorizedAccessException"> 674/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 675/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 676/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 677/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 678/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 707/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 708/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 709/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 710/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 711/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 780/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 781/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 782/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 783/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 784/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 806/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 807/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 808/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 809/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 810/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 830/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 831/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 832/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 833/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 834/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 987/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 988/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 989/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 990/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 991/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> 1020/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is read-only.</exception> 1021/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a file that is hidden.</exception> 1022/// <exception cref="UnauthorizedAccessException"><paramref name="path"/> specified a directory.</exception> 1023/// <exception cref="UnauthorizedAccessException">This operation is not supported on the current platform.</exception> 1024/// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (1)
105catch (Exception ex) when (ex is ArgumentException or IOException or UnauthorizedAccessException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (1)
58e is UnauthorizedAccessException ||
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (5)
115catch (UnauthorizedAccessException ex) 178catch (UnauthorizedAccessException) { } 298catch (UnauthorizedAccessException) { } 344catch (UnauthorizedAccessException) { } 371catch (UnauthorizedAccessException) { }
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (1)
136catch (UnauthorizedAccessException e)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
894[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.UnauthorizedAccessException))]
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
664catch (UnauthorizedAccessException e)
System.Threading.AccessControl (6)
System\Threading\EventWaitHandleAcl.cs (2)
88/// <exception cref="UnauthorizedAccessException">The named event wait handle exists, but the user does not have the security access required to use it.</exception> 119/// <exception cref="UnauthorizedAccessException">The named event wait handle exists, but the user does not have the security access required to use it.</exception>
System\Threading\MutexAcl.cs (2)
79/// <exception cref="UnauthorizedAccessException">The named mutex exists, but the user does not have the security access required to use it.</exception> 110/// <exception cref="UnauthorizedAccessException">The named mutex exists, but the user does not have the security access required to use it.</exception>
System\Threading\SemaphoreAcl.cs (2)
94/// <exception cref="UnauthorizedAccessException">The named semaphore exists, but the user does not have the security access required to use it.</exception> 125/// <exception cref="UnauthorizedAccessException">The named semaphore exists, but the user does not have the security access required to use it.</exception>
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ThemingScope.cs (1)
116catch (Exception e) when (e is UnauthorizedAccessException or IOException)
TypeScriptApiCompat (1)
TypeScriptApiCompatRunner.cs (1)
43catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException)
VBCSCompiler (4)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (4)
360catch (UnauthorizedAccessException ex) 515catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 532catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 538catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)