45 instantiations of BadImageFormatException
mscorlib (33)
system\reflection\parameterinfo.cs (3)
312
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ParameterSignatureMismatch"));
328
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ParameterSignatureMismatch"));
336
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ParameterSignatureMismatch"));
system\resources\resourcereader.cs (30)
266
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_NegativeStringLength"));
408
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_NegativeStringLength"));
415
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesNameTooLong"));
430
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourceNameCorrupted"));
452
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_NegativeStringLength"));
457
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesIndexTooLong", index));
594
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_TypeMismatch"), eof);
597
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_TypeMismatch"), e);
670
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_TypeMismatch"), eof);
673
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_TypeMismatch"), e);
743
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
748
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
754
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
766
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
776
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len));
788
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_TypeMismatch"));
847
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResType&SerBlobMismatch", type.FullName, graph.GetType().FullName));
875
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"), eof);
878
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"), e);
897
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
948
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
960
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1009
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1034
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1045
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1061
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1069
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
1081
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_InvalidType"));
1231
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_InvalidType"));
1329
throw new
BadImageFormatException
(Environment.GetResourceString("BadImageFormat_ResType&SerBlobMismatch", _typeToDeserialize.FullName, typeName));
System.AddIn (12)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (3)
277
throw new
BadImageFormatException
(String.Format(CultureInfo.CurrentCulture, Res.UnknownMetadataTable, Table));
360
throw new
BadImageFormatException
(
370
throw new
BadImageFormatException
(String.Format(CultureInfo.CurrentCulture, Res.NilMetadataToken, token));
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (7)
69
throw new
BadImageFormatException
(String.Format(CultureInfo.CurrentCulture, Res.BadPEFile, fileName));
84
throw new
BadImageFormatException
(String.Format(CultureInfo.CurrentCulture, Res.BadPEFile, fileName));
180
throw new
BadImageFormatException
(String.Format(CultureInfo.CurrentCulture, Res.BadRVA, _fileName));
207
throw new
BadImageFormatException
();
225
throw new
BadImageFormatException
();
227
throw new
BadImageFormatException
();
229
throw new
BadImageFormatException
();
System\Addin\MiniReflection\TypeInfo.cs (2)
626
if (!allowVoid) throw new
BadImageFormatException
();
662
throw new
BadImageFormatException
(String.Format(CultureInfo.CurrentCulture, Res.UnrecognizedCorElementType, b));
30 references to BadImageFormatException
Microsoft.Activities.Build (5)
Microsoft\Activities\Build\Expressions\ExpressionsBuildExtension.cs (1)
78
catch (
BadImageFormatException
bex)
Microsoft\Activities\Build\Utilities.cs (3)
46
if (ex is
BadImageFormatException
)
68
if (Fx.IsFatal(e) || e is
BadImageFormatException
)
87
if (exception is
BadImageFormatException
)
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (1)
55
catch (
BadImageFormatException
bex)
mscorlib (5)
system\reflection\module.cs (3)
737
catch (
BadImageFormatException
e)
824
catch (
BadImageFormatException
e)
857
catch (
BadImageFormatException
e)
system\resources\manifestbasedresourcegroveler.cs (1)
575
catch (
BadImageFormatException
bife)
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (1)
1445
catch (
BadImageFormatException
) { }
PresentationFramework (2)
src\Framework\System\Windows\Documents\Serialization\SerializerProvider.cs (1)
225
catch (
BadImageFormatException
)
src\Framework\System\Windows\SystemResources.cs (1)
812
catch (
BadImageFormatException
)
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (1)
127
catch (
BadImageFormatException
)
System.AddIn (2)
System\Addin\Hosting\InspectionWorker.cs (1)
150
catch (
BadImageFormatException
)
System\Addin\Hosting\Utils.cs (1)
248
catch (
BadImageFormatException
)
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (1)
127
catch (
BadImageFormatException
)
System.Drawing (2)
commonui\System\Drawing\Design\ToolboxItem.cs (2)
617
catch (
BadImageFormatException
) {
628
catch (
BadImageFormatException
) {
System.Runtime.Serialization (1)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
260
catch (
BadImageFormatException
) { }
System.Web (7)
Configuration\CompilationSection.cs (3)
791
var
badImageFormatException = e as
BadImageFormatException
;
804
else if (e is
BadImageFormatException
) {
ErrorFormatter.cs (2)
538
BadImageFormatException
bifException = e as
BadImageFormatException
;
UI\TagNameToTypeMapper.cs (2)
101
catch (
BadImageFormatException
) {
201
catch (
BadImageFormatException
e) {
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
1072
static private readonly Type BadImageFormatType = typeof(
BadImageFormatException
);
System.Web.Extensions (1)
Handlers\ScriptResourceHandler.cs (1)
155
catch (
BadImageFormatException
badImage) {
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
749
catch (
BadImageFormatException
)
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\Accessible.cs (1)
1447
else if (e is
BadImageFormatException
)