Microsoft KB Archive/913447

= Code analysis fails when you analyze an ASP.NET project that contains binary dependencies from an earlier version of the .NET Framework in Visual Studio 2005 Team System Developer Edition =

Article ID: 913447

Article Last Modified on 4/13/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Team System Developer Edition

-





SYMPTOMS
Consider the following scenario. You use the code analysis tool in Microsoft Visual Studio 2005 Team System Developer Edition. You analyze a Microsoft ASP.NET project that contains binary dependencies from an earlier version of the Microsoft .NET Framework. In this scenario, the code analysis fails with exit code 8. Error CA0055 is in the error list and mentions the name of the binary dependency that causes the failure.

An XML file contains the code analysis output. This file is located in the Project subfolder of the Solutions folder. This file contains more detailed descriptions of the error. The file may appear similar to the following:  Microsoft.FxCop.Common.AssemblyLoadException Could not load ASPNETCommerce.dll. Microsoft.FxCop.Sdk.FxCopException The first successfully loaded assembly for this project was linked against v2.0.50727. 'ASPNETCommerce' was linked against v1.0.3705 and so cannot be analyzed from within the same project.   at Microsoft.FxCop.Engines.Introspection.IntrospectionAnalysisEngine.CanLoadTargetFile(TargetFile target) at Microsoft.FxCop.Common.EngineManager.LoadTargets(TargetFile target, Boolean resetCounts, String loadEngine) 



CAUSE
This problem occurs because the Web site contains binary dependencies that are compiled by using an earlier version of the .NET Framework. The code analysis tool cannot analyze binaries that reference an earlier version of the .NET Framework runtime at the same time that the Web site uses the current version of the .NET Framework.



RESOLUTION
To resolve this problem, obtain the latest service pack for Visual Studio 2005.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
For more information about code analysis, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/3z0aeatx.aspx

Additional query words: VSTS

Keywords: kbprogramming kberrmsg kbtshoot kbprb KB913447

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.