x509certificate - FindPrivateKey under Windows 7 64 bit doesn't work -


i've downloaded .net sample findprivatekey, compiled framework 4.0, tried different platforms (32bit, 64bit, cpu) didn't work. same error: ordinal 345 not located in dynamic link library comctl32.dll. use windows 7 enterprise, 64 bit version. method call fails: matches = x509certificate2ui.selectfromcollection(store.certificates, "select certificate", "select certificate find location of associated private key file:", x509selectionflag.singleselection); problem here?

aleksandar

this morning i’ve encountered same problem (ordinal 345 not located ...)… i’ve tried application in 3 different pc win7 64bit; in 1 of these exception throws. found problem in use of comctl32.dll library (which different mine).

you can execute piece of code in order check version of library using:

foreach (processmodule module in system.diagnostics.process.getcurrentprocess().modules)             if (module.modulename.tolower() == "comctl32.dll")                 messagebox.show(module.fileversioninfo.tostring()); 

then add manifest , force application use specific library version: [project] -> add new item -> application manifest , edit adding following dependency part.

i hope works you...

    <?xml version="1.0" encoding="utf-8"?> <asmv1:assembly manifestversion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">   <assemblyidentity version="1.0.0.0" name="myapplication.app"/>  …  …  …    <dependency>     <dependentassembly>       <assemblyidentity           type="win32"           name="microsoft.windows.common-controls"           version="6.0.0.0"           processorarchitecture="*"           publickeytoken="6595b64144ccf1df"           language="*"         />     </dependentassembly>   </dependency> </asmv1:assembly> 

Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -