swazendo

Has anyone seen this when running code analysis from within the IDE I've started the project from scratch (delete .sln, .suo, bin, and obg directories).

Error 1 FxCopCmd.exe exited with code -2147023895. MyPorject

Error 2 Unable to read output report: bin\Debug\MyProject.dll.CodeAnalysisLog.xml MyProject

Tried on two machines. First time I've seen this. All other projects work fine. I can delete and read MyProject.dll.CodeAnalysisLog.xml


Thanx.



Re: Visual C# IDE Code analyasis error

Rick van den Bosch

Hi,

Have a look at the total length of the filename (including the folders). Visual Studio has a maximum when it comes to filenames. I believe it's 258 characters. Maybe that is what's bugging this specific project...

Hope this helps.






Re: Visual C# IDE Code analyasis error

Mary Deyo - MSFT

A quick online search for this error code suggests there might be a stack overflow problem here. Is this VS 2005 Are you saying that an XML report file is generated If there is a stack overflow problem, this file might not be valid XML but could still be readable with a text viewer. Is this what you are seeing



Re: Visual C# IDE Code analyasis error

swazendo

The full length of the filename is about 120 so looks like htis isn't it. Thanks for the reply





Re: Visual C# IDE Code analyasis error

swazendo

Thanks for the feedback. Today this worked fine for me although for a few days it wasnĄ¯t. This is VS2005 and there is a generated XML file. When it was failing the XML file length would be 0. I never tried reading the 0 length file through VS2005.