HP Fortify Pre compilation errors.(could not load file or assembly Oracle.Dataacess )

时间:2016-10-20 19:12:51

标签: odp.net fortify

I try to analyze my .net solution with HP FORTIFY from visual studio .But I am unable my web project and got pre compilation error message . I tried to trouble shoot from command prompt and got "could not load file or assembly Oracle.Dataacess ".

In my solution one of the project refers Oracle.Dataacess dll and that project is refered by the web project .I tried to use x64 version of the dll . But I still got the error .

Appreciate your suggestions to get rid of this pre compilation error .

Thanks, Bala

1 个答案:

答案 0 :(得分:1)

调试预编译器问题的首选方法是将此命令添加到Visual Studio中Web项目的生成后事件中,这样错误就会出现在错误列表中。

"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe" -v / -p $(ProjectDir)

另外要记住的是,如果您的文件不属于解决方案但属于Web项目目录,那么aspnet_compiler仍会读取它们。

当开发人员从Visual Studio中排除文件时,我发现这种情况很常见。这不会删除它们。或者,如果他们删除它们,则通过Visual Studio界面删除,但不从底层源代码存储库删除,并且只在结帐时再次下载。

检查此方法的一种简单方法是在Visual Studio解决方案资源管理器窗口中打开Show All Files