Skip to content

BadImageFormatException on x64 #29

@pranavsharma

Description

@pranavsharma

Compiled with VS2017 15.9.3 Enterprise edition using x64/AnyCPU.
Registered "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\DIA SDK\bin\amd64\msdia140.dll". When I run the exe, it throws an error:

PS C:\Users\foobar\work_projects\SymbolSort> C:\Users\foobar\work_projects\SymbolSort\bin\Release\SymbolSort.exe -in C:\Users\foobar\work_projects\someproduct\build\Windows\RelWithDebInfo\RelWithDebInfo\someproduct.pdb -out symbol_sort.txt

Loading symbols from C:\Users\foobar\work_projects\someproduct\build\Windows\RelWithDebInfo\RelWithDebInfo\someproduct.pdb

Unhandled Exception: System.BadImageFormatException: Retrieving the COM class factory for component with CLSID {761D3BCD-1304-41D5-94E8-EAC54E4AC172} failed due to the following error: 800700c1  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1).
   at SymbolSort.SymbolSort.ReadSymbolsFromPDB(List`1 symbolsOutput, String filename, String searchPath, UserFlags options) in C:\Users\foobar\work_projects\SymbolSort\SymbolSort.cs:line 1181
   at SymbolSort.SymbolSort.LoadSymbols(InputFile inputFile, List`1 symbols, String searchPath, UserFlags options) in C:\Users\foobar\work_projects\SymbolSort\SymbolSort.cs:line 1550
   at SymbolSort.SymbolSort.Main(String[] args) in C:\Users\foobar\work_projects\SymbolSort\SymbolSort.cs:line 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions