CLavoie320462 (Community Member) asked a question.

Receiving error: Veracode Greenlight does not support the selected project type. Select csproj or vbproj to start scan.

Receiving error: Veracode Greenlight does not support the selected project type. Select csproj or vbproj to start scan.

 

Running VS2019 and using Veracode Greenlight 2019 to scan a CS file. I get the above error. Any ideas on how to fix?


  • Hello @CLavoie320462 (Community Member)​ ,

     

    Thank you for reaching out to the Community.

     

    Are you still receiving same error?

     

    Please send us the Greenlight log file.

     

    Also, send us the screenshot of the error.

     

    Retrieve Greenlight error log file

    Please send me the Greenlight log that you can retrieve doing the below steps:

     

    1) Open the Output window (if it's not opened yet) doing on View > Output.

    2) On "Show Output from:" select Veracode Greenlight.

    3) Click inside the log panel, do Ctrl + A to select all, Ctrl + C to copy the content and paste in a .txt file.

     

    Thank you,

    Steven

    Veracode Support Engineer

    Expand Post
    • BCrowell604080 (Community Member)

      Hi, Did we get a resolution to the problem? A developer is experiencing the same issue.

  • AClaure044938 (Community Member)

    Hello,

    I am facing the same error

    here the logs

     

    [4:09:26 PM] - info - .NETVersion: 4.0.30319.42000, Is64BitOS: True, OSVersion: Microsoft Windows NT 10.0.19043.0, VSGLPluginVersion: 2.1.4674.294, IDEVersion: 14.0 Enterprise

    [4:09:26 PM] - error - Select a solution source file or folder to scan and try again.

    [4:12:57 PM] - info - Communicating with the Veracode Greenlight service.

    [4:12:58 PM] - error - You are not authorized to use Greenlight. Contact your Veracode account manager.

    [4:13:48 PM] - info - Communicating with the Veracode Greenlight service.

    [4:13:49 PM] - error - You are not authorized to use Greenlight. Contact your Veracode account manager.

    [4:13:59 PM] - info - .NETVersion: 4.0.30319.42000, Is64BitOS: True, OSVersion: Microsoft Windows NT 10.0.19043.0, VSGLPluginVersion: 2.1.4674.294, IDEVersion: 14.0 Enterprise

    [4:13:59 PM] - error - Select a solution source file or folder to scan and try again.

    [4:14:58 PM] - info - .NETVersion: 4.0.30319.42000, Is64BitOS: True, OSVersion: Microsoft Windows NT 10.0.19043.0, VSGLPluginVersion: 2.1.4674.294, IDEVersion: 14.0 Enterprise

    [4:14:58 PM] - error - Veracode Greenlight does not support the selected project type. Select csproj or vbproj to start a scan.

    [4:18:16 PM] - info - .NETVersion: 4.0.30319.42000, Is64BitOS: True, OSVersion: Microsoft Windows NT 10.0.19043.0, VSGLPluginVersion: 2.1.4674.294, IDEVersion: 14.0 Enterprise

    [4:18:16 PM] - error - Veracode Greenlight does not support the selected project type. Select csproj or vbproj to start a scan.

     

    Expand Post
  • Hello @AClaure044938 (Community Member)​ ,

     

    After reviewing this error in the log you provided. it appears that either the Greenlight Subscription has expired or their isn't a Greenlight Subscription.

     

    Please confirm that these 2 either subscriptions are valid, or reach out either your Veracode CSM or Sale Lead.

     

    Best regards,

    Steven

    Veracode Support Engineer

    Expand Post
    • AClaure120432 (Community Member)

      Now I have a valid subscription and still getting the below error:

       

      [5:31:42 PM] - info - .NETVersion: 4.0.30319.42000, Is64BitOS: True, OSVersion: Microsoft Windows NT 10.0.19043.0, VSGLPluginVersion: 2.1.4674.294, IDEVersion: 14.0 Enterprise

      [5:31:42 PM] - error - Veracode Greenlight does not support the selected project type. Select csproj or vbproj to start a scan.

      Expand Post
    • AClaure120432 (Community Member)

      We are with project type .net framework 4.8

      <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>

      <SchemaVersion>2.0</SchemaVersion>

       

  • Hello @AClaure120432 (Community Member)​ ,

     

    Technical Requirements for Visual Studio Greenlight

     

    Veracode Greenlight for Visual Studio performs security scans at the file level.

    You must meet these requirements when using Greenlight for Visual Studio:

    imageGreenlight for Visual Studio can only scan these files types:

    • CS, VB, JS, ASCX, ASHX, or ASPX files that are part of a .NET project that compiles correctly.
    • JavaScript embedded in HTML, JS, or TS files.

    C/C++ files are not supported.

     

    If you feel you fit these requirements, I would suggest opening a support ticket to further investigate this issue.

     

    You can log a case:

     

    1. Navigate to the upper right corner of any page in the Community, click on your user avatar.
    2. Select Contact Support from the drop-down menu.

     

    Once you have a ticket number, please let me know and I can follow up afterward.

    Expand Post

Topics (1)

No articles found
Loading

Ask the Community

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