31 references to KeyNotFoundException
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
205throw new KeyNotFoundException(key);
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
2396throw new KeyNotFoundException($"No invocation with id '{invocationId}' could be found."); 2408throw new KeyNotFoundException($"No invocation with id '{invocationId}' could be found.");
Microsoft.AspNetCore.SignalR.Core (1)
StreamTracker.cs (1)
71throw new KeyNotFoundException($"No stream with id '{streamId}' could be found.");
Microsoft.Build.Framework (1)
ThrowHelper.cs (1)
215return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis (2)
Collections\SmallDictionary.cs (1)
94throw new KeyNotFoundException($"Could not find key {key}");
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
1047throw new KeyNotFoundException($"Syntax tree not found with file path: {tree.FilePath}");
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionItem.cs (1)
138throw new KeyNotFoundException($"Property {name} not found");
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.DotNet.Build.Tasks.Workloads (1)
EmbeddedTemplates.cs (1)
37throw new KeyNotFoundException(string.Format(Strings.TemplateNotFound, filename));
Microsoft.Extensions.ServiceDiscovery (2)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
123throw new KeyNotFoundException($"The endpoint configuration section for service '{_serviceName}' endpoint '{endpointName}' has non-numeric keys."); 196throw new KeyNotFoundException($"The endpoint configuration section for service '{_serviceName}' endpoint '{endpointName}' has an invalid value with key '{section.Key}'.");
Microsoft.Maui.Controls (1)
ResourceDictionary.cs (1)
232 throw new KeyNotFoundException($"The resource '{index}' is not present in the dictionary.");
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
140throw new KeyNotFoundException(SR.Format(SR.BamlAssemblyIdNotFound, assemblyId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS))); 157throw new KeyNotFoundException(SR.Format(SR.BamlTypeIdNotFound, typeId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS))); 174throw new KeyNotFoundException(SR.Format(SR.BamlTypeIdNotFound, typeId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS)));
System.Collections (3)
System\Collections\Generic\SortedDictionary.cs (1)
115throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System\Collections\Generic\SortedList.cs (1)
578throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System\Collections\ThrowHelper.cs (1)
15throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1115throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System.Collections.Immutable (1)
System\Collections\ThrowHelper.cs (1)
34throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));
System.Linq.Expressions (2)
System\Linq\Expressions\Error.cs (1)
54return new KeyNotFoundException(Strings.KeyDoesNotExistInExpando(p0));
System\Linq\Expressions\Interpreter\Utilities.cs (1)
280throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System.Net.Http (1)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (1)
51throw new KeyNotFoundException(SR.net_http_headers_not_found);
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
68throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (1)
44throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
740return new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));