Static analysis of ASP.NET site fails due to problems with precompilation

Symptom

As with other applications assessed with AppScan Source, ASP.NET applications must go through the precompilation process to complete the assessment and related evaluation.

If precompilation of an ASP.NET site fails during a scan, the errors must be corrected to run a successful scan.

Resolution

Run the precompilation process outside of a scan, correct any errors, and then run the security scan again:
  1. Open the ASP.NET project in Visual Studio.
  2. Right-click the project and select Publish.
  3. In the resulting dialog, click Custom and provide a profile name.
  4. Under Publish Method, select File System.
  5. For Target Location, browse to and choose a local directory.
  6. Click Next.
  7. Select the build configuration from the drop-down menu.
  8. Expand the File Publish Options section.
  9. Select the check box Precompile during publishing and click Configure next to it.
  10. Deselect the option Allow precompiled site to be updatable.
  11. Click OK.
  12. Click Publish.
  13. Resolve any errors reported in Visual Studio.
  14. Scan the solution again with Static Analyzer.