30 references to UnauthorizedAccessException
aspire (1)
Commands\UpdateCommand.cs (1)
869throw new UnauthorizedAccessException(
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.Maui.Essentials (1)
Types\Shared\Exceptions.shared.cs (1)
41 : base(message)
Microsoft.Win32.Registry (3)
Microsoft\Win32\RegistryKey.cs (3)
1486throw new UnauthorizedAccessException(SR.UnauthorizedAccess_RegistryNoWrite); 1576new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_RegistryKeyGeneric_Key, str)) : 1609new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_RegistryKeyGeneric_Key, str)) :
PresentationCore (1)
MS\Internal\FontCache\FontCacheUtil.cs (1)
754throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccessExceptionWithFileName, fileName));
PresentationFramework (1)
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
363throw new UnauthorizedAccessException(SR.StreamCannotBeWritten);
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 (1)
System\DirectoryServices\ActiveDirectory\Exception.cs (1)
388return new UnauthorizedAccessException(errorMsg);
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\exceptions.cs (1)
338return new UnauthorizedAccessException(errorMsg);
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.Pipes (4)
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.Private.CoreLib (4)
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);
System.Security.AccessControl (2)
System\Security\AccessControl\PrivilegeNotHeldException.cs (2)
18: base(SR.PrivilegeNotHeld_Default) 23: base(SR.Format(SR.PrivilegeNotHeld_Named, privilege))
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(