Problem Description

While running the .NET analysis you may get the below type of warnings in your analysis log:

DOTNET.0048:Error while loading XML document 'D:\CAST_ANALYSIS\ECS\AMD\ISPI\CMS_SOURCE\ISPI\SourceCode\ServerSizing\ServerSizing.csproj': Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 11, position 3.. The analysis results may be incomplete

Observed in CAST Extension Version


Release

Yes/No

1.2(tick) 
Observed in RDBMS

RDBMS

Yes/No

CSS3 (tick) 
CSS2 (tick) 
Step by Step Scenario
  1. Package the source code
  2. Run the analysis
Action Plan

Perform the below actions

  1. Check in the analysis log and see which analysis unit has the warning.

  2. Navigate to the project file of that analysis unit and open the project file to check the structure of the file.
  3. Check the warning to see which line has the issue and correct the XML file accordingly and save the file.
  4. Run the analysis.
  5. Even after correcting the XML file, if you are getting the warnings,  then contact CAST Technical Support. with the following Relevant Input for the reproduction of the issue
Notes/comments


Related Pages