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