176 references to SerializationException
mscorlib (172)
system\AggregateException.cs (1)
275
throw new
SerializationException
(Environment.GetResourceString("AggregateException_DeserializationFailure"));
system\collections\hashtable.cs (6)
1220
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidOnDeser"));
1275
throw new
SerializationException
(Environment.GetResourceString("Serialization_MissingKeys"));
1278
throw new
SerializationException
(Environment.GetResourceString("Serialization_MissingValues"));
1281
throw new
SerializationException
(Environment.GetResourceString("Serialization_KeyValueDifferentSizes"));
1285
throw new
SerializationException
(Environment.GetResourceString("Serialization_NullKey"));
1391
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
system\datetime.cs (2)
407
throw new
SerializationException
(Environment.GetResourceString("Serialization_MissingDateTimeData"));
411
throw new
SerializationException
(Environment.GetResourceString("Serialization_DateTimeTicksOutOfRange"));
system\delegateserializationholder.cs (1)
179
throw new
SerializationException
(
system\exception.cs (1)
114
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
system\globalization\gregoriancalendar.cs (1)
70
throw new
SerializationException
(
system\multicastdelegate.cs (3)
66
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidDelegateType"));
70
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidDelegateType"));
98
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidDelegateType"));
system\operatingsystem.cs (1)
76
throw new
SerializationException
(Environment.GetResourceString("Serialization_MissField", "_version"));
system\reflection\memberinfoserializationholder.cs (10)
77
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
103
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_InsufficientState));
117
throw new
SerializationException
(Environment.GetResourceString("Serialization_UnknownMember", m_memberName));
129
throw new
SerializationException
(Environment.GetResourceString("Serialization_UnknownMember", m_memberName));
141
throw new
SerializationException
(Environment.GetResourceString("Serialization_UnknownMember", m_memberName));
163
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName));
171
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_NullSignature));
195
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName));
205
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_NullSignature));
266
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName));
system\reflection\parameterinfo.cs (5)
224
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_InsufficientState));
237
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_BadParameterInfo));
246
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_BadParameterInfo));
255
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_BadParameterInfo));
258
throw new
SerializationException
(Environment.GetResourceString(ResId.Serialization_NoParameterInfo));
system\runtime\serialization\formatter.cs (1)
63
throw new
SerializationException
(Environment.GetResourceString("Serialization_NoID"));
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (17)
89
throw new
SerializationException
(Environment.GetResourceString("Serialization_AssemblyId",typeInformation));
172
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeWrite",((Enum)binaryTypeEnum).ToString()));
203
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeRead",((Enum)binaryTypeEnum).ToString()));
268
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeRead",((Enum)binaryTypeEnum).ToString()));
408
throw new
SerializationException
(Environment.GetResourceString("Serialization_AssemblyNotFound",assemblyString));
464
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidFormat", BitConverter.ToString(headerBytes)));
825
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
832
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
839
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
846
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
853
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
1106
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
1113
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
1120
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
1127
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
1134
throw new
SerializationException
(Environment.GetResourceString("Serialization_Method"));
2123
throw new
SerializationException
(Environment.GetResourceString("Serialization_Assembly",objectName));
system\runtime\serialization\formatters\binary\binaryformatter.cs (1)
188
throw new
SerializationException
(Environment.GetResourceString("Serialization_Stream"));
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
768
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeCode",((Enum)code).ToString()));
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (9)
154
throw new
SerializationException
(Environment.GetResourceString("Serialization_NonSerType",
415
throw new
SerializationException
(Environment.GetResourceString("Serialization_SerMemberInfo",objMember.GetType()));
430
throw new
SerializationException
(Environment.GetResourceString("Serialization_ISerializableMemberInfo"));
656
throw new
SerializationException
(Environment.GetResourceString("Serialization_MemberInfo",objectType+" "+name));
658
throw new
SerializationException
(Environment.GetResourceString("Serialization_NoMemberInfo",objectType+" "+name));
681
throw new
SerializationException
(Environment.GetResourceString("Serialization_ISerializableTypes",objectType+" "+name));
813
throw new
SerializationException
(Environment.GetResourceString("Serialization_ISerializableTypes",objectType));
859
throw new
SerializationException
(Environment.GetResourceString("Serialization_MissingMember", cache.memberNames[i], objectType, typeof(OptionalFieldAttribute).FullName));
887
throw new
SerializationException
(Environment.GetResourceString("Serialization_SerMemberInfo",objMember.GetType()));
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (8)
187
throw new
SerializationException
(Environment.GetResourceString("Serialization_TopObject"));
336
throw new
SerializationException
(String.Format(CultureInfo.InvariantCulture, Environment.GetResourceString("Serialization_NonSerType"),
412
throw new
SerializationException
(Environment.GetResourceString("Serialization_XMLElement", pr.PRname));
424
throw new
SerializationException
(Environment.GetResourceString("Serialization_ParseError",onStack.PRname+" "+((Enum)onStack.PRparseTypeEnum) + " "+processing.PRname+" "+((Enum)processing.PRparseTypeEnum)));
549
throw new
SerializationException
(Environment.GetResourceString("Serialization_TopObjectInstantiate",pr.PRdtType));
805
throw new
SerializationException
(Environment.GetResourceString("Serialization_ArrayType",((Enum)pr.PRarrayTypeEnum)));
961
throw new
SerializationException
(Environment.GetResourceString("Serialization_ArrayTypeObject"));
1153
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeMissing", pr.PRname));
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (1)
1080
throw new
SerializationException
(Environment.GetResourceString("Serialization_ObjNoID",realObj));
system\runtime\serialization\formatters\binary\binaryparser.cs (21)
181
throw new
SerializationException
(Environment.GetResourceString("Serialization_BinaryHeader",inByte));
188
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeExpected"));
257
throw new
SerializationException
(Environment.GetResourceString("Serialization_StreamEnd"));
405
throw new
SerializationException
(Environment.GetResourceString("Serialization_CrossAppDomainError","String", crossAppDomainAssembly.assemblyIndex));
453
throw new
SerializationException
(Environment.GetResourceString("Serialization_Map",binaryObject.mapId));
494
throw new
SerializationException
(Environment.GetResourceString("Serialization_Map",((Enum)objectOp.objectTypeEnum).ToString()));
538
throw new
SerializationException
(Environment.GetResourceString("Serialization_CrossAppDomainError","BinaryObjectMap", mapObject));
570
throw new
SerializationException
(Environment.GetResourceString("Serialization_Assembly",record.name));
575
throw new
SerializationException
(Environment.GetResourceString("Serialization_Assembly",record.assemId+" "+record.name));
625
throw new
SerializationException
(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
670
throw new
SerializationException
(Environment.GetResourceString("Serialization_AssemblyId",record.name));
674
throw new
SerializationException
(Environment.GetResourceString("Serialization_AssemblyId",record.assemId+" "+record.name));
720
throw new
SerializationException
(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
760
throw new
SerializationException
(Environment.GetResourceString("Serialization_CrossAppDomainError","String", crossAppDomainString.value));
807
throw new
SerializationException
(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
864
throw new
SerializationException
(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
887
throw new
SerializationException
(Environment.GetResourceString("Serialization_AssemblyId",record.typeInformation));
931
throw new
SerializationException
(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString()));
985
throw new
SerializationException
(Environment.GetResourceString("Serialization_ArrayType",((Enum)record.binaryArrayTypeEnum).ToString()));
1171
throw new
SerializationException
(Environment.GetResourceString("Serialization_StreamEnd"));
1230
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeCode",((Enum)code).ToString()));
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (3)
463
throw new
SerializationException
(Environment.GetResourceString("Serialization_CorruptedStream"));
553
throw new
SerializationException
(Environment.GetResourceString("Serialization_CorruptedStream"));
703
throw new
SerializationException
(Environment.GetResourceString("Serialization_HeaderReflection",valueInfos.Length));
system\runtime\serialization\formatterservices.cs (7)
98
throw new
SerializationException
(Environment.GetResourceString("Serialization_NonSerType", type.FullName, type.Module.Assembly.FullName));
117
throw new
SerializationException
(Environment.GetResourceString("Serialization_NonSerType", parentType.FullName, parentType.Module.Assembly.FullName));
193
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidType", type.ToString()));
239
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidType", type.ToString()));
253
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidType", type.ToString()));
362
throw new
SerializationException
(Environment.GetResourceString("Serialization_UnknownMemberInfo"));
416
throw new
SerializationException
(Environment.GetResourceString("Serialization_UnknownMemberInfo"));
system\runtime\serialization\objectclonehelper.cs (1)
160
throw new
SerializationException
(Environment.GetResourceString("Serialization_MissingMember",
system\runtime\serialization\objectidgenerator.cs (1)
165
throw new
SerializationException
(Environment.GetResourceString("Serialization_TooManyElements"));
system\runtime\serialization\objectmanager.cs (25)
238
throw new
SerializationException
(Environment.GetResourceString("Serialization_NeverSeen", fixup.m_id));
241
throw new
SerializationException
(Environment.GetResourceString("Serialization_IORIncomplete", fixup.m_id));
243
throw new
SerializationException
(Environment.GetResourceString("Serialization_ObjectNotSupplied", fixup.m_id));
262
throw new
SerializationException
(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Serialization_NotCyclicallyReferenceableSurrogate"), surrogate.GetType().FullName));
327
throw new
SerializationException
(Environment.GetResourceString("Serialization_TooManyReferences"));
502
throw new
SerializationException
(Environment.GetResourceString("Serialization_MissingObject", holder.m_id));
514
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidFixupDiscovered"));
565
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeLoadFailure", holder.TypeLoadException.TypeName));
580
throw new
SerializationException
(Environment.GetResourceString("Serialization_ValueTypeFixup"));
604
throw new
SerializationException
(Environment.GetResourceString("Serialization_PartialValueTypeFixup"));
613
throw new
SerializationException
(Environment.GetResourceString("Serialization_UnableToFixup"));
617
throw new
SerializationException
(Environment.GetResourceString("Serialization_UnableToFixup"));
750
throw new
SerializationException
(Environment.GetResourceString("Serialization_UnknownMemberInfo"));
803
throw new
SerializationException
(Environment.GetResourceString("Serialization_RegisterTwice"));
899
throw new
SerializationException
(Environment.GetResourceString("Serialization_ConstructorNotFound", t.FullName));
927
throw new
SerializationException
(Environment.GetResourceString("Serialization_ObjectNotSupplied", temp.m_id));
954
throw new
SerializationException
(Environment.GetResourceString("Serialization_TypeLoadFailure", ((TypeLoadExceptionHolder)TopObject).TypeName));
977
throw new
SerializationException
(Environment.GetResourceString("Serialization_IncorrectNumberOfFixups"));
995
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidFixupType"));
1024
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidType", member.GetType().ToString()));
1196
throw new
SerializationException
(Environment.GetResourceString("Serialization_ParentChildIdentical"));
1344
throw new
SerializationException
(Environment.GetResourceString("Serialization_ParentChildIdentical"));
1620
throw new
SerializationException
(Environment.GetResourceString("Serialization_TooManyElements"));
1709
throw new
SerializationException
(Environment.GetResourceString("Serialization_TooManyElements"));
1754
throw new
SerializationException
(Environment.GetResourceString("Serialization_TooManyElements"));
system\runtime\serialization\serializationinfo.cs (2)
397
throw new
SerializationException
(Environment.GetResourceString("Serialization_SameNameTwice"));
480
throw new
SerializationException
(Environment.GetResourceString("Serialization_NotFound", name));
system\runtime\serialization\surrogateselector.cs (1)
96
throw new
SerializationException
(Environment.GetResourceString("Serialization_DuplicateSelector"));
system\runtimehandles.cs (7)
891
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
902
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidFieldState"));
1060
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
1071
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidFieldState"));
1802
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
1807
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
1818
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidFieldState"));
system\security\claims\ClaimsPrincipal.cs (1)
416
throw new
SerializationException
(Environment.GetResourceString("Serialization_CorruptedStream"));
system\security\util\tokenbasedset.cs (2)
404
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
421
throw new
SerializationException
(Environment.GetResourceString("Serialization_InsufficientState"));
system\text\stringbuilder.cs (2)
216
throw new
SerializationException
(Environment.GetResourceString("Serialization_StringBuilderMaxCapacity"));
230
throw new
SerializationException
(Environment.GetResourceString("Serialization_StringBuilderCapacity"));
system\throwhelper.cs (1)
103
throw new
SerializationException
(Environment.GetResourceString(GetResourceName(resource)));
system\timezoneinfo.cs (27)
1224
throw new
SerializationException
(Environment.GetResourceString("Serialization_CorruptField", "SupportsDaylightSavingTime"));
3716
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidEscapeSequence", c));
3732
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3767
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3775
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3802
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3806
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3826
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3839
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3854
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3867
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidEscapeSequence", String.Empty));
3871
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3888
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3919
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3946
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3949
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3968
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3973
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3983
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
3996
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
4006
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
4057
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
4061
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
4067
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
4074
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
4110
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
4136
throw new
SerializationException
(Environment.GetResourceString("Serialization_InvalidData"));
system\unityserializationholder.cs (2)
202
throw new
SerializationException
(
299
throw new
SerializationException
(
System.ServiceModel (1)
System\ServiceModel\Channels\MsmqDecodeHelper.cs (1)
459
throw new
SerializationException
(e.Message);
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (1)
125
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
SerializationException
(SR2.GetString(SR2.TypeIsNotParameterTypeAndIsNotPresentInKnownTypes, type, this.OperationName, this.ContractName, parameterDataContractType)));
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (1)
304
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
SerializationException
(SR2.GetString(SR2.CannotDeserializeBody, reader.LocalName, reader.NamespaceURI, operationName, contractName, contractNs, this.serializerType)));
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\Validation\WorkflowValidationFailedException.cs (1)
23
throw new
SerializationException
(SR.GetString(SR.Error_SerializationInsufficientState));