none
C# interop WinVerifyTrust failing with return code 2148204800 RRS feed

  • Question

  • Hello,

     

    I am trying to use WinVerifyTrust() to check if file is signed using interop. Apparently, WinVerifyTrust() is failing over all the files with a return code 2148204800: Generic Trust Failure.

    I am not sure what the problem is and hence asking the experts. Please help.

    Pinvoke code: http://pinvoke.net/default.aspx/wintrust/WinVerifyTrust.html

    Thank you,

    Tuesday, February 8, 2011 12:55 AM

All replies

  • Hi Abhie1984,

    I find this error "code 2148204800: Generic Trust Failure" mainly occurs when you install framework.

    One possible reason is that there is something wrong with your .net framework 4.0.

    Please try to reinstall your framework first.

    Microsoft .NET Framework 4

    And please provide your error log for us.


    Cookie Luo[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Cookie Luo Tuesday, February 15, 2011 1:45 AM
    • Unmarked as answer by Cookie Luo Wednesday, February 16, 2011 3:54 AM
    Wednesday, February 9, 2011 5:50 AM
  • I can reproduce the error. Note that I have reinstalled .net 4 in addition to trying this on two different Windows 7 x64 machines. Unfortunately, I still have the same problem.

    Any ideas?

    Thursday, February 17, 2011 10:42 PM