debugging - Extracting pdb from mscorlib.ni.dll using ngen or other tools -
i trying pdb mscorlib.ni.dll in conditions fails. used ngen.exe pc supports "createpdb" options.
to sure, ran ngen versions mscorlib.ni.dll versions. il cases, end errors.
can demistify pdb creation on dll files.
- list item
d:\windows\microsoft.net\framework>d:\windows\microsoft.net\framework64\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v4.0.30319_64\mscorlib\a5669e937ab8f4e7928ddb37cc469ae1\mscorlib.ni.dll" c:\symbo microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. can not find native image 'd:\windows\assembly\nativeimages_v4.0.30319_64\mscorlib\a5669e937ab8f4e7928ddb37cc469ae1\mscorlib.ni.dll'. error=3 d:\windows\microsoft.net\framework>cd v4.0.30319 d:\windows\microsoft.net\framework\v4.0.30319>d:\windows\microsoft.net\framework64\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v2.0.50727_32\mscorlib\5bd3374f05d46ba0563f44d032209f08\mscorlib.ni.dll" "c:\symbols" microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. invalid header found in native image 'd:\windows\assembly\nativeimages_v2.0.50727_32\mscorlib\5bd3374f05d46ba0563f44d032209f08\mscorlib.ni.dll'. unspecified error (exception hresult: 0x80004005 (e_fail)) d:\windows\microsoft.net\framework\v4.0.30319>d:\windows\microsoft.net\framework\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v2.0.50727_64\mscorlib\6227ee011c9930128c5ad76841ecf2ee\mscorlib.ni.dll" "c:\symbols" microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. invalid header found in native image 'd:\windows\assembly\nativeimages_v2.0.50727_64\mscorlib\6227ee011c9930128c5ad76841ecf2ee\mscorlib.ni.dll'. unspecified error (exception hresult: 0x80004005 (e_fail)) d:\windows\microsoft.net\framework\v4.0.30319>d:\windows\microsoft.net\framework64\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v4.0.30319_32\mscorlib\c90ef9a73ea0044641d31b19023aad61\mscorlib.ni.dll" "c:\symbols" microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. invalid header found in native image 'd:\windows\assembly\nativeimages_v4.0.30319_32\mscorlib\c90ef9a73ea0044641d31b19023aad61\mscorlib.ni.dll'. unspecified error (exception hresult: 0x80004005 (e_fail)) d:\windows\microsoft.net\framework\v4.0.30319>d:\windows\microsoft.net\framework\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v4.0.30319_64\mscorlib\a20cafac04a2e9b3bcb5ec4d674775e5\mscorlib.ni.dll" "c:\symbols" microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. invalid header found in native image 'd:\windows\assembly\nativeimages_v4.0.30319_64\mscorlib\a20cafac04a2e9b3bcb5ec4d674775e5\mscorlib.ni.dll'. unspecified error (exception hresult: 0x80004005 (e_fail)) d:\windows\microsoft.net\framework\v4.0.30319>d:\windows\microsoft.net\framework64\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v2.0.50727_32\mscorlib\5bd3374f05d46ba0563f44d032209f08\mscorlib.ni.dll" "c:\symbols" microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. invalid header found in native image 'd:\windows\assembly\nativeimages_v2.0.50727_32\mscorlib\5bd3374f05d46ba0563f44d032209f08\mscorlib.ni.dll'. unspecified error (exception hresult: 0x80004005 (e_fail)) d:\windows\microsoft.net\framework\v4.0.30319>d:\windows\microsoft.net\framework\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v2.0.50727_64\mscorlib\6227ee011c9930128c5ad76841ecf2ee\mscorlib.ni.dll" "c:\symbols" microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. invalid header found in native image 'd:\windows\assembly\nativeimages_v2.0.50727_64\mscorlib\6227ee011c9930128c5ad76841ecf2ee\mscorlib.ni.dll'. unspecified error (exception hresult: 0x80004005 (e_fail)) d:\windows\microsoft.net\framework\v4.0.30319>d:\windows\microsoft.net\framework64\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v4.0.30319_32\mscorlib\c90ef9a73ea0044641d31b19023aad61\mscorlib.ni.dll" "c:\symbols" microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. invalid header found in native image 'd:\windows\assembly\nativeimages_v4.0.30319_32\mscorlib\c90ef9a73ea0044641d31b19023aad61\mscorlib.ni.dll'. unspecified error (exception hresult: 0x80004005 (e_fail)) d:\windows\microsoft.net\framework\v4.0.30319>d:\windows\microsoft.net\framework\v4.0.30319\ngen.exe createpdb "d:\windows\assembly\nativeimages_v4.0.30319_64\mscorlib\a20cafac04a2e9b3bcb5ec4d674775e5\mscorlib.ni.dll" "c:\symbols" microsoft (r) clr native image generator - version 4.0.30319.33440 copyright (c) microsoft corporation. rights reserved. invalid header found in native image 'd:\windows\assembly\nativeimages_v4.0.30319_64\mscorlib\a20cafac04a2e9b3bcb5ec4d674775e5\mscorlib.ni.dll'. unspecified error (exception hresult: 0x80004005 (e_fail))
we had issue, , solved in question: how pdb file mscorlib.ni.lib (.net framework 3.5)
it turned out used ngen framework64 instead of framework (we needed pdb 32-bit module)
Comments
Post a Comment