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 |
Observed in RDBMS
RDBMS | Yes/No |
---|---|
CSS3 | |
CSS2 |
Step by Step Scenario
- Package the source code
- Run the analysis
Action Plan
Perform the below actions
Check in the analysis log and see which analysis unit has the warning.
- Navigate to the project file of that analysis unit and open the project file to check the structure of the file.
- Check the warning to see which line has the issue and correct the XML file accordingly and save the file.
- Run the analysis.
- 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