HP Fortify扫描得到ASP预编译错误 [英] HP Fortify scans get ASP Pre-Compilation error

查看:93
本文介绍了HP Fortify扫描得到ASP预编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有最新规则包的Visual Studio 2012和HP Fortify 4.21.

I am using Visual Studio 2012 and HP Fortify 4.21 with the latest rule packs.

代码(C#)驻留在装有HP Fortify的同一台计算机上,我仅使用AWB而不是SCC.当开发人员进行构建时,代码成功构建,但是当我尝试使用Fortify进行扫描时,出现错误.

The code (C#) lives on the same machine that has HP Fortify and I am only using AWB not SCC. The code successfully builds when the developer does the build, but when I try to scan with Fortify I get an error.

ASP预编译错误

ASP Pre-compilation error

无论我是从VS还是从命令行启动,都会发生此错误.日志未显示任何错误或警告,但最后指出没有任何要存储的内容,因此永远不会创建fpr文件.如果我从Audit Workbench运行扫描,则崩溃只会说明无法创建内部版本ID.

This error happens whether I am launching from VS or from command line. The logs show no errors or warnings, but stating at the end that there is nothing to store, so a fpr file is never created. If I run the scan from Audit Workbench it crashes only stating that it cannot create the build ID.

我确实找到了以下建议来解决ASP问题,但是它失败了,并且没有创建fpr文件以能够运行最后一行(进行扫描).

I did find a suggestion (below) to resolve the ASP issue but it fails and does not create the fpr file to be able to run the last line (to do the scan).

感谢您的协助!

步骤1:清洁sourceanalyzer -b构建ID" -clean

Step 1: Clean sourceanalyzer -b "Build ID" -clean

第2步:翻译/构建sourceanalyzer -b构建ID" -Xmx1280M -Xss8M -debug -logfile trans.log devenv"Sample.sln"/重建调试

Step 2: Translation/Build sourceanalyzer -b "Build ID" -Xmx1280M -Xss8M -debug -logfile trans.log devenv "Sample.sln" /Rebuild Debug

第3步:分析sourceanalyzer -b内部版本ID" -Xmx1280M -Xss8M -debug-日志文件scan.log -scan -f Results.fpr

Step 3: Analysis sourceanalyzer -b "Build ID" -Xmx1280M -Xss8M -debug -logfile scan.log -scan -f Results.fpr

推荐答案

我遇到了这个问题,这解决了我的问题.

I was running into this issue and this took care of my problem.

第1步.点击构建"标签第2步.单击清洁解决方案"步骤3.很可能两个文件夹出现在解决方案资源管理器中(bin和obj).右键单击每个并将其删除,无论您按什么顺序执行都可以.步骤4.点击"BUILD"标签步骤5.单击重建解决方案"第6步.尝试再次运行FORTIFY

Step 1. Click the "BUILD" tab Step 2. Click "Clean Solution" Step 3. Most likely two folders appeared in the Solution Explorer (bin and obj). Right click each one and delete it, doesn't matter what order you do it in. Step 4. Click the "BUILD" tab Step 5. Click "Rebuild Solution" Step 6. Try to run FORTIFY again

额外步骤步骤7.如果仍然无法正常工作,请检查您的web.config中是否有错误.该项目将生成错误,但会因Fortify而导致预编译失败.

Extra steps Step 7. If it still doesn't work check your web.config for errors. The project will build with errors but will cause the precompilation to fail with Fortify.

步骤8.尝试通过转到HP Fortify->选项->项目设置->内存(MB)-> 1024(或更高版本)为Fortify分配更多RAM.

Step 8. Try allocating more RAM to Fortify by going to HP Fortify -> Options -> Project Settings -> Memory (MB) -> 1024 (or higher).

这篇关于HP Fortify扫描得到ASP预编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆