303 references to InvalidDataException
AnalyzerRunner (5)
DiagnosticAnalyzerRunner.cs (1)
301throw new InvalidDataException($"Cannot find {path}.");
Options.cs (4)
141string ReadValue() => (i < args.Length) ? args[i++] : throw new InvalidDataException($"Missing value for option {arg}"); 206throw new InvalidDataException((arg.StartsWith("/", StringComparison.Ordinal) 217throw new InvalidDataException("Missing analyzer path"); 222throw new InvalidDataException("Missing solution path");
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
731throw new InvalidDataException($"Service {svc.Metadata.Name} should have valid address at this point");
dotnet-svcutil-lib (20)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (4)
441throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRServiceModel.BinaryEncoderSessionInvalid)); 457throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRServiceModel.BinaryEncoderSessionMalformed)); 463throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRServiceModel.BinaryEncoderSessionMalformed)); 494throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRServiceModel.BinaryEncoderSessionMalformed));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (16)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRServiceModel.FramingSizeTooLarge)); 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRServiceModel.InvalidDecoderStateMachine)); 216Exception result = new InvalidDataException(string.Format(SRServiceModel.FramingViaTooLong, size)); 256return new InvalidDataException(string.Format(SRServiceModel.FramingFaultTooLong, size)); 328Exception result = new InvalidDataException(string.Format(SRServiceModel.FramingContentTypeTooLong, size)); 393Exception exception = CreateException(new InvalidDataException(string.Format( 429return new InvalidDataException(string.Format(SRServiceModel.FramingRecordTypeMismatch, expectedType.ToString(), foundType.ToString())); 436Exception exception = CreateException(new InvalidDataException(string.Format( 444return CreateException(new InvalidDataException(SRServiceModel.FramingPrematureEOF)); 557CreateException(new InvalidDataException(SRServiceModel.FramingAtEnd))); 561CreateException(new InvalidDataException(SRServiceModel.InvalidDecoderStateMachine))); 784CreateException(new InvalidDataException(SRServiceModel.FramingAtEnd))); 787CreateException(new InvalidDataException(SRServiceModel.InvalidDecoderStateMachine))); 889CreateException(new InvalidDataException(SRServiceModel.FramingAtEnd))); 907CreateException(new InvalidDataException(SRServiceModel.FramingAtEnd))); 910CreateException(new InvalidDataException(SRServiceModel.InvalidDecoderStateMachine)));
GenerateAnalyzerNuspec (1)
Program.cs (1)
261throw new InvalidDataException($"Encountered a file with unexpected extension: {globalconfig}");
InMemory.FunctionalTests (2)
ResponseTests.cs (1)
4970throw new InvalidDataException($"No StatusCode found in '{response}'");
TestTransport\InMemoryHttpClientSlim.cs (1)
114throw new InvalidDataException($"No StatusCode found in '{response}'");
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
130throw new InvalidDataException($"Missing end marker for span {index}");
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
130throw new InvalidDataException($"Missing end marker for span {index}");
Microsoft.Arcade.Common (1)
NupkgInfoFactory.cs (1)
43throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, "Did not extract nuspec file from package: {0}", path));
Microsoft.AspNetCore.Components.Server (4)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (4)
207throw new InvalidDataException("Invalid invocation result kind."); 302throw new InvalidDataException( 419throw new InvalidDataException($"Unexpected message type: {message.GetType().Name}"); 711throw new InvalidDataException($"Null or empty {message}.");
Microsoft.AspNetCore.Http (4)
Features\FormFeature.cs (4)
241throw new InvalidDataException($"Form value count limit {_options.ValueCountLimit} exceeded."); 246throw new InvalidDataException("Form section has invalid Content-Disposition value: " + section.ContentDisposition); 383throw new InvalidDataException("Missing content-type boundary."); 387throw new InvalidDataException($"Multipart boundary length limit {lengthLimit} exceeded.");
Microsoft.AspNetCore.Http.Connections.Common (16)
NegotiateProtocol.cs (9)
229throw new InvalidDataException($"Unexpected token '{reader.TokenType}' when reading negotiation response JSON."); 238throw new InvalidDataException($"Missing required property '{ConnectionIdPropertyName}'."); 245throw new InvalidDataException($"Missing required property '{ConnectionTokenPropertyName}'."); 251throw new InvalidDataException($"Missing required property '{AvailableTransportsPropertyName}'."); 305throw new InvalidDataException($"Unexpected token '{reader.TokenType}' when reading transfer formats JSON."); 317throw new InvalidDataException($"Missing required property '{TransportPropertyName}'."); 322throw new InvalidDataException($"Missing required property '{TransferFormatsPropertyName}'."); 327throw new InvalidDataException($"Unexpected token '{reader.TokenType}' when reading available transport JSON."); 331throw new InvalidDataException("Unexpected end when reading JSON.");
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (7)
15throw new InvalidDataException("Unexpected end when reading JSON."); 25throw new InvalidDataException($"Unexpected JSON Token Type '{reader.GetTokenString()}'. Expected a JSON Object."); 56throw new InvalidDataException($"Unexpected JSON Token Type '{reader.GetTokenString()}'. Expected a JSON Array."); 68_ => throw new InvalidDataException($"Expected '{propertyName}' to be true or false."), 78throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.String}."); 95throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}."); 112throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}.");
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
140throw new InvalidDataException($"No StatusCode found in '{response}'");
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1690throw new InvalidDataException("Connection terminated while reading a message.");
Microsoft.AspNetCore.SignalR.Common (12)
Protocol\HandshakeProtocol.cs (5)
139throw new InvalidDataException("Expected a handshake response from the server."); 156throw new InvalidDataException($"Unexpected token '{reader.TokenType}' when reading handshake response JSON."); 209throw new InvalidDataException($"Unexpected token '{reader.TokenType}' when reading handshake request JSON. Message content: {GetPayloadAsString()}"); 215throw new InvalidDataException($"Missing required property '{ProtocolPropertyName}'. Message content: {GetPayloadAsString()}"); 219throw new InvalidDataException($"Missing required property '{ProtocolVersionPropertyName}'. Message content: {GetPayloadAsString()}");
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (7)
15throw new InvalidDataException("Unexpected end when reading JSON."); 25throw new InvalidDataException($"Unexpected JSON Token Type '{reader.GetTokenString()}'. Expected a JSON Object."); 56throw new InvalidDataException($"Unexpected JSON Token Type '{reader.GetTokenString()}'. Expected a JSON Array."); 68_ => throw new InvalidDataException($"Expected '{propertyName}' to be true or false."), 78throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.String}."); 95throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}."); 112throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}.");
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionHandler.cs (2)
327throw new InvalidDataException($"The maximum message size of {maxMessageSize}B was exceeded. The message size can be configured in AddHubOptions."); 350throw new InvalidDataException("Connection terminated while reading a message.");
Microsoft.AspNetCore.SignalR.Protocols.Json (33)
Protocol\JsonHubProtocol.cs (26)
164throw new InvalidDataException($"Expected '{TypePropertyName}' to be of type {JsonTokenType.Number}."); 177throw new InvalidDataException( 186newStreamIds.Add(reader.GetString() ?? throw new InvalidDataException($"Null value for '{StreamIdsPropertyName}' is not valid.")); 199throw new InvalidDataException($"Expected '{TargetPropertyName}' to be of type {JsonTokenType.String}."); 293throw new InvalidDataException($"Expected '{ArgumentsPropertyName}' to be of type {SystemTextJsonExtensions.GetTokenString(JsonTokenType.StartArray)}."); 356throw new InvalidDataException($"Missing required property '{TargetPropertyName}'."); 382throw new InvalidDataException($"Missing required property '{TargetPropertyName}'."); 407throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 429throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 467throw new InvalidDataException($"Missing required property '{TypePropertyName}'."); 487throw new InvalidDataException($"Expected '{HeadersPropertyName}' to be of type {JsonTokenType.StartObject}."); 501throw new InvalidDataException($"Expected header '{propertyName}' to be of type {JsonTokenType.String}."); 513throw new InvalidDataException("Unexpected end when reading message headers"); 732throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 742throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 747throw new InvalidDataException("The 'error' and 'result' properties are mutually exclusive."); 762throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 767throw new InvalidDataException($"Missing required property '{ItemPropertyName}'."); 778throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 783throw new InvalidDataException($"Missing required property '{ArgumentsPropertyName}'."); 788throw new InvalidDataException($"Missing required property '{TargetPropertyName}'."); 801throw new InvalidDataException($"Missing required property '{TargetPropertyName}'."); 806throw new InvalidDataException($"Missing required property '{ArgumentsPropertyName}'."); 867throw new InvalidDataException($"Invocation provides {paramIndex} argument(s) but target expects {paramCount}."); 888throw new InvalidDataException("Missing required property 'sequenceId'."); 898throw new InvalidDataException("Missing required property 'sequenceId'.");
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (7)
15throw new InvalidDataException("Unexpected end when reading JSON."); 25throw new InvalidDataException($"Unexpected JSON Token Type '{reader.GetTokenString()}'. Expected a JSON Object."); 56throw new InvalidDataException($"Unexpected JSON Token Type '{reader.GetTokenString()}'. Expected a JSON Array."); 68_ => throw new InvalidDataException($"Expected '{propertyName}' to be true or false."), 78throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.String}."); 95throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}."); 112throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}.");
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (4)
Protocol\MessagePackHubProtocolWorker.cs (4)
207throw new InvalidDataException("Invalid invocation result kind."); 302throw new InvalidDataException( 419throw new InvalidDataException($"Unexpected message type: {message.GetType().Name}"); 711throw new InvalidDataException($"Null or empty {message}.");
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (36)
Protocol\NewtonsoftJsonHubProtocol.cs (26)
165throw new InvalidDataException($"Missing required property '{TypePropertyName}'."); 178throw new InvalidDataException($"Expected '{StreamIdsPropertyName}' to be of type {JTokenType.Array}."); 186newStreamIds.Add(reader.Value?.ToString() ?? throw new InvalidDataException($"Null value for '{StreamIdsPropertyName}' is not valid.")); 280throw new InvalidDataException($"Expected '{ArgumentsPropertyName}' to be of type {JTokenType.Array}."); 319throw new InvalidDataException($"Missing required property '{SequenceIdPropertyName}'."); 346throw new InvalidDataException($"Missing required property '{TargetPropertyName}'."); 372throw new InvalidDataException($"Missing required property '{TargetPropertyName}'."); 397throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 419throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 464throw new InvalidDataException($"Missing required property '{TypePropertyName}'."); 484throw new InvalidDataException($"Expected '{HeadersPropertyName}' to be of type {JTokenType.Object}."); 498throw new InvalidDataException($"Expected header '{propertyName}' to be of type {JTokenType.String}."); 725throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 735throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 740throw new InvalidDataException("The 'error' and 'result' properties are mutually exclusive."); 755throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 760throw new InvalidDataException($"Missing required property '{ItemPropertyName}'."); 770throw new InvalidDataException($"Missing required property '{InvocationIdPropertyName}'."); 775throw new InvalidDataException($"Missing required property '{ArgumentsPropertyName}'."); 780throw new InvalidDataException($"Missing required property '{TargetPropertyName}'."); 792throw new InvalidDataException($"Missing required property '{TargetPropertyName}'."); 797throw new InvalidDataException($"Missing required property '{ArgumentsPropertyName}'."); 830throw new InvalidDataException($"Invocation provides {argumentsCount} argument(s) but target expects {paramCount}."); 879throw new InvalidDataException($"Missing required property '{SequenceIdPropertyName}'."); 889throw new InvalidDataException($"Missing required property '{SequenceIdPropertyName}'."); 901throw new InvalidDataException($"Invocation provides {argCount} argument(s) but target expects {paramCount}.");
src\SignalR\common\Shared\JsonUtils.cs (10)
44throw new InvalidDataException($"Unexpected JSON Token Type '{token?.Type}'. Expected a JSON Object."); 56throw new InvalidDataException($"Missing required property '{property}'."); 66throw new InvalidDataException($"Expected '{property}' to be of type {expectedType}."); 93throw new InvalidDataException($"Unexpected JSON Token Type '{GetTokenString(reader.TokenType)}'. Expected a JSON Object."); 101throw new InvalidDataException($"Unexpected JSON Token Type '{GetTokenString(reader.TokenType)}'. Expected a JSON Array."); 111throw new InvalidDataException($"Expected '{propertyName}' to be of type {JTokenType.Boolean}."); 123throw new InvalidDataException($"Expected '{propertyName}' to be of type {JTokenType.Integer}."); 140throw new InvalidDataException($"Expected '{propertyName}' to be of type {JTokenType.Integer}."); 157throw new InvalidDataException($"Expected '{propertyName}' to be of type {JTokenType.String}."); 167throw new InvalidDataException("Unexpected end when reading JSON.");
Microsoft.AspNetCore.SignalR.StackExchangeRedis (8)
Internal\RedisProtocol.cs (1)
281throw new InvalidDataException($"Insufficient items in {messageType} array.");
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (7)
15throw new InvalidDataException("Unexpected end when reading JSON."); 25throw new InvalidDataException($"Unexpected JSON Token Type '{reader.GetTokenString()}'. Expected a JSON Object."); 56throw new InvalidDataException($"Unexpected JSON Token Type '{reader.GetTokenString()}'. Expected a JSON Array."); 68_ => throw new InvalidDataException($"Expected '{propertyName}' to be true or false."), 78throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.String}."); 95throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}."); 112throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}.");
Microsoft.AspNetCore.WebUtilities (13)
BufferedReadStream.cs (1)
405throw new InvalidDataException($"Line length limit {lengthLimit} exceeded.");
FormPipeReader.cs (4)
318throw new InvalidDataException( 328throw new InvalidDataException( 337throw new InvalidDataException( 382throw new InvalidDataException($"Form value count limit {ValueCountLimit} exceeded.");
FormReader.cs (2)
247throw new InvalidDataException($"Form key or value length limit {limit} exceeded."); 323throw new InvalidDataException($"Form value count limit {ValueCountLimit} exceeded.");
MultipartReader.cs (3)
115throw new InvalidDataException($"Multipart headers length limit {HeadersLengthLimit} exceeded."); 121throw new InvalidDataException($"Invalid header line: {line}"); 129throw new InvalidDataException($"Multipart headers count limit {HeadersCountLimit} exceeded.");
MultipartReaderStream.cs (2)
155throw new InvalidDataException($"Multipart header length limit {lengthLimit} exceeded. Too much data before the first boundary."); 159throw new InvalidDataException($"Multipart body length limit {lengthLimit} exceeded.");
StreamHelperExtensions.cs (1)
69throw new InvalidDataException($"The stream exceeded the data limit {limit.GetValueOrDefault()}.");
Microsoft.Build (6)
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
376throw new InvalidDataException("Too few values in hierarchy"); 406throw new InvalidDataException("Too few values in build plan.");
Logging\BinaryLogger\BuildEventArgsReader.cs (3)
446error => throw new InvalidDataException(error)); 509throw new InvalidDataException( 1720throw new InvalidDataException(
Logging\BinaryLogger\Postprocessing\StreamExtensions.cs (1)
49throw new InvalidDataException("Unexpected end of stream.");
Microsoft.CodeAnalysis (2)
Emit\EditAndContinueMethodDebugInformation.cs (1)
83throw new InvalidDataException(string.Format(CodeAnalysisResources.InvalidDataAtOffset,
EncodedStringText.cs (1)
112throw new InvalidDataException(e.Message);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\EncodedStringText.cs (1)
112throw new InvalidDataException(e.Message);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticServiceTests.vb (1)
51Throw New InvalidDataException("Bad data!")
Microsoft.CodeAnalysis.Rebuild (4)
CompilationFactory.cs (1)
40var language => throw new InvalidDataException($"{assemblyFileName} has unsupported language {language}")
CompilationOptionsReader.cs (2)
384throw new InvalidDataException(string.Format(RebuildResources.Unexpected_value_for_EmbedInteropTypes_MetadataImageKind_0, embedInteropTypesAndKind)); 468throw new InvalidDataException(RebuildResources.Encountered_null_or_empty_key_for_compilation_options_pairs);
Extensions.cs (1)
20throw new InvalidDataException(string.Format(RebuildResources.Encountered_unexpected_byte_0_when_expecting_a_null_terminator, b));
Microsoft.CodeAnalysis.Test.Utilities (1)
SourceGeneration\TestGenerators.cs (1)
156public override SourceText GetText(CancellationToken cancellationToken = default) => throw new InvalidDataException("Binary content not supported");
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\EncodedStringText.cs (1)
112throw new InvalidDataException(e.Message);
Workspace\Solution\FileTextLoader.cs (1)
253throw new InvalidDataException(message);
Microsoft.DotNet.Build.Tasks.Installers (8)
src\ArReader.cs (2)
28throw new InvalidDataException("Invalid archive magic"); 69throw new InvalidDataException("Invalid archive magic");
src\CpioReader.cs (1)
30throw new InvalidDataException("Invalid header magic");
src\RpmHeader.cs (3)
97throw new InvalidDataException("Invalid RPM header magic"); 104throw new InvalidDataException("Unsupported RPM header version"); 109throw new InvalidDataException("Invalid RPM header reserved bytes");
src\RpmLead.cs (1)
30throw new InvalidDataException("Invalid RPM magic");
src\RpmPackage.cs (1)
32throw new InvalidDataException("Unsupported payload compressor");
Microsoft.DotNet.Build.Tasks.Packaging (3)
NugetPropertyStringProvider.cs (3)
49throw new InvalidDataException($"Nuspec property {propertyString} does not have an \'=\' character in it"); 54throw new InvalidDataException($"Nuspec property {propertyString} does not have a value"); 59throw new InvalidDataException($"Nuspec property {propertyString} does not have a key");
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GetRunSettingsSessionConfiguration.cs (1)
91throw new InvalidDataException(
Microsoft.DotNet.NuGetRepack.Tasks (10)
src\NuGetVersionUpdater.cs (10)
152throw new InvalidDataException($"'{packagePath}' has invalid nuspec: missing 'metadata' element"); 158throw new InvalidDataException($"'{packagePath}' has invalid nuspec: missing 'id' element"); 165throw new InvalidDataException($"'{packagePath}' has invalid nuspec: missing 'version' element"); 170throw new InvalidDataException($"'{packagePath}' has invalid nuspec: invalid 'version' value '{packageVersionStr}'"); 231throw new InvalidDataException($"'{packagePath}' is missing .nuspec file"); 236throw new InvalidDataException($"Multiple packages of name '{packageId}' specified"); 300throw new InvalidDataException($"'{package.Id}' has invalid format: element 'dependency' is missing 'id' attribute"); 306throw new InvalidDataException($"'{package.Id}' has invalid format: element 'dependency' is missing 'version' attribute"); 311throw new InvalidDataException($"'{id}' has invalid version range: '{versionRangeAttribute.Value}'"); 319throw new InvalidDataException($"Unexpected dependency version range: '{id}, {versionRangeAttribute.Value}'");
Microsoft.DotNet.SignCheckLibrary (1)
Verification\MachOVerifier.cs (1)
35throw new InvalidDataException($"File {path} is not a valid Mach-O file.");
Microsoft.Maui.Controls (1)
Shapes\PathFigureCollectionConverter.cs (1)
684 throw new InvalidDataException($"Value is not of type {nameof(PathFigureCollection)}");
Microsoft.Maui.Resizetizer (2)
ResizeImageInfo.cs (2)
104 throw new InvalidDataException($"Unable to parse color value '{tintColor}' for '{info.Filename}'."); 109 throw new InvalidDataException($"Unable to parse color value '{color}' for '{info.Filename}'.");
Microsoft.ML.TorchSharp (1)
Utils\FileUtils.cs (1)
58throw new InvalidDataException(
PresentationFramework (1)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
594throw new InvalidDataException(SR.MissingAnnotationHighlightLayer);
PresentationUI (1)
MS\Internal\Documents\Application\DocumentStream.cs (1)
958throw new InvalidDataException(
ReachFramework (9)
Packaging\XpsFixedDocumentReaderWriter.cs (1)
1043throw new InvalidDataException(SR.ReachPackaging_MoreThanOneDocStructure);
Packaging\XpsFixedPageReaderWriter.cs (1)
1579throw new InvalidDataException(SR.ReachPackaging_MoreThanOneStoryFragment);
Packaging\XpsManager.cs (7)
579throw new InvalidDataException(SR.ReachPackaging_InvalidDocUri); 591throw new InvalidDataException(SR.ReachPackaging_MoreThanOneSigDefParts); 651throw new InvalidDataException(SR.ReachPackaging_MoreThanOneThumbnailPart); 671throw new InvalidDataException(SR.ReachPackaging_InvalidDocUri); 683throw new InvalidDataException(SR.ReachPackaging_MoreThanOnePrintTicketPart); 1250throw new InvalidDataException(SR.ReachPackaging_MoreThanOneMetaDataParts); 1415throw new InvalidDataException(SR.ReachPackaging_MoreThanOneStartingParts);
System.Formats.Tar (18)
System\Formats\Tar\TarHeader.Read.cs (6)
204throw new InvalidDataException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag)); 266throw new InvalidDataException(SR.Format(SR.TarSizeFieldTooLargeForEntryType, _typeFlag)); 382throw new InvalidDataException(SR.Format(SR.TarSizeFieldNegative)); 480throw new InvalidDataException(SR.Format(SR.TarPosixFormatExpected, _name)); 498throw new InvalidDataException(SR.Format(SR.TarGnuFormatExpected, _name)); 630throw new InvalidDataException(SR.Format(SR.TarDuplicateExtendedAttribute, name));
System\Formats\Tar\TarHelpers.cs (2)
269throw new InvalidDataException(SR.Format(SR.TarInvalidNumber)); 406throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, archiveFormat));
System\Formats\Tar\TarReader.cs (7)
414throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader._typeFlag, TarEntryType.ExtendedAttributes)); 446throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, actualHeader._typeFlag, TarEntryType.ExtendedAttributes)); 452throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, TarEntryType.ExtendedAttributes, TarEntryType.ExtendedAttributes)); 481throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, secondHeader._typeFlag, header._typeFlag)); 499throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, thirdHeader._typeFlag, secondHeader._typeFlag)); 556throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, secondHeader._typeFlag, header._typeFlag)); 575throw new InvalidDataException(SR.Format(SR.TarUnexpectedMetadataEntry, thirdHeader._typeFlag, secondHeader._typeFlag));
System\Formats\Tar\TarWriter.cs (2)
311throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)); 333_ => throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)),
System\Formats\Tar\TarWriter.Unix.cs (1)
49_ => throw new InvalidDataException(SR.Format(SR.TarInvalidFormat, Format)),
System.IO.Compression (44)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (2)
134throw new InvalidDataException(SR.GenericInvalidData); 221throw new InvalidDataException(SR.GenericInvalidData);
System\IO\Compression\DeflateManaged\HuffmanTree.cs (4)
191throw new InvalidDataException(SR.InvalidHuffmanData); 233throw new InvalidDataException(SR.InvalidHuffmanData); 253throw new InvalidDataException(SR.InvalidHuffmanData); 304throw new InvalidDataException(SR.InvalidHuffmanData);
System\IO\Compression\DeflateManaged\InflaterManaged.cs (8)
212throw new InvalidDataException(SR.UnknownBlockType); 238throw new InvalidDataException(SR.UnknownBlockType); 297throw new InvalidDataException(SR.InvalidBlockLength); 330throw new InvalidDataException(SR.UnknownState); 393throw new InvalidDataException(SR.GenericInvalidData); 415throw new InvalidDataException(SR.GenericInvalidData); 473throw new InvalidDataException(SR.UnknownState); 671throw new InvalidDataException(SR.UnknownState);
System\IO\Compression\DeflateZLib\DeflateStream.cs (4)
388throw new InvalidDataException(SR.GenericInvalidData); 391throw new InvalidDataException(SR.TruncatedData); 1014return Task.FromException(new InvalidDataException(SR.GenericInvalidData)); 1063throw new InvalidDataException(SR.GenericInvalidData);
System\IO\Compression\DeflateZLib\Inflater.cs (1)
308throw new InvalidDataException(SR.UnsupportedCompression);
System\IO\Compression\ZipArchive.Async.cs (3)
224throw new InvalidDataException(SR.Format(SR.CentralDirectoryInvalid, ex)); 248throw new InvalidDataException(SR.EOCDNotFound); 259throw new InvalidDataException(SR.FieldTooBigOffsetToCD);
System\IO\Compression\ZipArchive.cs (11)
516throw new InvalidDataException(SR.NumEntriesWrong); 540throw new InvalidDataException(SR.NumEntriesWrong); 586throw new InvalidDataException(SR.Format(SR.CentralDirectoryInvalid, ex)); 595throw new InvalidDataException(SR.SplitSpanned); 601throw new InvalidDataException(SR.SplitSpanned); 625throw new InvalidDataException(SR.EOCDNotFound); 636throw new InvalidDataException(SR.FieldTooBigOffsetToCD); 652throw new InvalidDataException(SR.FieldTooBigOffsetToZip64EOCD); 664throw new InvalidDataException(SR.FieldTooBigNumEntries); 667throw new InvalidDataException(SR.FieldTooBigOffsetToCD); 670throw new InvalidDataException(SR.SplitSpanned);
System\IO\Compression\ZipArchiveEntry.Async.cs (2)
49throw new InvalidDataException(SR.LocalFileHeaderCorrupt); 193throw new InvalidDataException(message);
System\IO\Compression\ZipArchiveEntry.cs (2)
401throw new InvalidDataException(SR.LocalFileHeaderCorrupt); 690throw new InvalidDataException(message);
System\IO\Compression\ZipBlocks.Async.cs (2)
92throw new InvalidDataException(SR.Zip64EOCDNotWhereExpected); 253throw new InvalidDataException(SR.EOCDNotFound);
System\IO\Compression\ZipBlocks.cs (5)
313throw new InvalidDataException(SR.FieldTooBigUncompressedSize); 317throw new InvalidDataException(SR.FieldTooBigCompressedSize); 321throw new InvalidDataException(SR.FieldTooBigLocalHeaderOffset); 522throw new InvalidDataException(SR.Zip64EOCDNotWhereExpected); 967throw new InvalidDataException(SR.EOCDNotFound);
System.IO.Compression.Brotli (4)
System\IO\Compression\dec\BrotliStream.Decompress.cs (2)
243throw new InvalidDataException(SR.BrotliStream_Decompress_InvalidStream); 246throw new InvalidDataException(SR.BrotliStream_Decompress_TruncatedData);
System\IO\Compression\enc\BrotliStream.Compress.cs (2)
199throw new InvalidDataException(SR.BrotliStream_Compress_InvalidData); 240throw new InvalidDataException(SR.BrotliStream_Compress_InvalidData);
System.ServiceModel.NetFramingBase (16)
System\ServiceModel\Channels\FramingDecoders.cs (16)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SR.FramingSizeTooLarge)); 172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SR.InvalidDecoderStateMachine)); 222Exception result = new InvalidDataException(SR.Format(SR.FramingViaTooLong, size)); 265return new InvalidDataException(SR.Format(SR.FramingFaultTooLong, size)); 337Exception result = new InvalidDataException(SR.Format(SR.FramingContentTypeTooLong, size)); 396Exception exception = CreateException(new InvalidDataException(SR.Format( 432return new InvalidDataException(SR.Format(SR.FramingRecordTypeMismatch, expectedType.ToString(), foundType.ToString())); 439Exception exception = CreateException(new InvalidDataException(SR.Format( 447return CreateException(new InvalidDataException(SR.FramingPrematureEOF)); 556CreateException(new InvalidDataException(SR.FramingAtEnd))); 560CreateException(new InvalidDataException(SR.InvalidDecoderStateMachine))); 782CreateException(new InvalidDataException(SR.FramingAtEnd))); 785CreateException(new InvalidDataException(SR.InvalidDecoderStateMachine))); 890CreateException(new InvalidDataException(SR.FramingAtEnd))); 908CreateException(new InvalidDataException(SR.FramingAtEnd))); 911CreateException(new InvalidDataException(SR.InvalidDecoderStateMachine)));