Identekit (Community Member) asked a question.

I have a .NET desktop application written in C# with VS2019 that I am trying to submit for scanning in my sandbox. I have submitted both the EXE and the PDB files but after pre-analysis it shows that the PDB file could not be found.

In the screenshot below you can see that the PDB file has been uploaded.

2020-06-03 11_14_00-Veracode Platform

...but after the Prescan the file is marked as not found.

2020-06-03 11_29_39-Veracode Platform

It is interesting to note the long path that presedes the PDB file now. I'm not sure where that is coming from or why Veracode is looking in a location it would never have access to. Perhaps this is something being referenced in the EXE?


  • Identekit (Community Member)

    I have now been told that this issue should be resolved with a 20.8 release. However, Veracode Support would not tell me when this 20.8 release will be deployed....So, given all that I thought I'd share the solution that I got working.

     

    As it turns out, Veracode renames files that contain parenthesis, replacing the parentheses with underscores. For example, if the following two files, "TestApplication (v1.2.3).exe" and "TestApplication (v1.2.3).pdb", are uploaded to Veracode they will be renamed to "TestApplication _v1.2.3_.exe" and "TestApplication _v1.2.3_.pdb". The problem with strategy is that the EXE is still looking for a symbols PDB file with the original name containing parenthesis.

     

    To solve this I just renamed my application and remove the parenthesis.

     

    This issue caused me so much grief, false positives, bad mitigations and hours of lost time I'll never get back. I cannot for the life of me figure out why Veracode developers thought it would be a good idea to rename the files that are uploaded. Especcially when, as developers, they should know that applications reference other things and when referenceing other things names matter. But they did! Hopefully this supposed 20.8 release will get released sooner rather than later.

    Expand Post
    Selected as Best
  • Hello Identekit,

     

    Thank you for reaching to the Community!

     

    May I suggest that you follow the procedures on the link below in the section "Preparing Your Application for Analysis" section and zip these files before uploading. This should help you with your pre-scan

     

    https://help.veracode.com/reader/wySvh2U7LWNYqeVS7PQm_g/BhC~ZcdpYiRYfFmQjPuA0g

     

    Please let me know if you should need any further assistance with this.

    Best regards,

    Steven

    Expand Post
  • Identekit (Community Member)

    Steven,

    Thanks for your reply.

    Unfortunately those instructions do not produce a different result and the scan is still unable to find the PDB file.

     

    Here you can see I have a zip file containing the EXE and PDB files

    2020-06-09 08_41_00-Veracode Platform

    ...and has been uploaded.

    2020-06-09 08_42_00-Veracode Platform

    But yet the PDB file still comes up as "Not Found".

    2020-06-09 08_43_00-Veracode Platform

    Expand Post
  • Hello,

     

    I was talking to a co-working that brought up a great suggestion.

     

    Since you are coding in Visual Studio 201, we suggest that you install and use the Veracode Static for Visual Studio extension. This should help with the compilation packaging and the uploading for pre-scan. You can go to the link below and follow the section titled " Preparing Your >NET Application Using Veracode Static For Visual Studio".

     

    https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/UWyzuOKNbFbwQACRLkZVjA

     

    Regards,

    Steven

    Expand Post
    • Identekit (Community Member)

      Steven,

      Thank you again so much for keeping on this.

       

      Unfortunately I've also tried using Veracode Static to resolve this issue but still get the same results.

       

      Here you can see that I have uploaded the files using Veracode Static:

      2020-06-09 13_18_00-Veracode Platform

      ...and the files have been uploaded to the scan.

      2020-06-09 13_19_00-Veracode Platform

      But the PDB file still remains "Not Found"

      2020-06-09 13_20_00-Veracode Platform

      Expand Post
  • Hi Identekit,

     

    I just wanted to reach out to you to let you know I am still actively trying to come up with a solution on you issue.

    I have reached out to various departments to come up with a resolution for you.

     

    As soon as I have this information I will reach out to you.

    Thank you,

    Steven

     

     

    Expand Post
    • Identekit (Community Member)

      Steven,

      Thank you very much for the update and for keeping on top of this issue. I really appreciate it.

       

      Thanks

  • Hello Identekit,

     

    Assuming that the compilation with the VS Extension went w/o errors (as described above), we will need to consult with the Veracode Operation Services Engineering. For that, please pass us the application and scan names, and sandbox as well - if it was used.

     

    You may forward the information to support@veracode.com if it is preferable.

     

    Sincerely,

    Ilan

    Veracode Integration Technical Support Manager

    Expand Post
    • Identekit (Community Member)

      Ilan,

      Thank you for replying to this issue. I actually already have an open Veracode Support case open for this issue, Please coordinate with that case.

       

      If you need more information for this issue please feel free to email me at the contact for that case.

       

      Thanks

      Expand Post
10 of 13

Topics (0)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.