运行应用程序时出现分析程序错误

时间:2011-05-01 20:08:42

标签: c#

Could not load file or assembly 'ScriptReferenceProfiler' or one of its dependencies. The system cannot find the file specified.

运行应用程序后出现此错误。可能的问题是什么? 我正在使用visual studio 2008,.NET 3.5 sp1 for C#。

*构建后的ASP.NET应用程序调试。

**装配负载跟踪

=== Pre-bind state information === LOG: User = ORG-FA431C61BE1\ahsan LOG: DisplayName = ScriptReferenceProfiler (Partial) LOG: Appbase = file:///C:/Documents and Settings/My Documents/Visual Studio 2008/myproj/myproj/ LOG: Initial PrivatePath = C:\Documents and Settings\My Documents\Visual Studio 2008\myproj\myproj\bin Calling assembly : (Unknown).

LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Documents and Settings\My Documents\Visual Studio 2008\myproj\myproj\web.config LOG: Using machine configuration file from C:\WINDOWS.0\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: The same bind was seen before, and was failed with hr = 0x80070002.

1 个答案:

答案 0 :(得分:0)

可能的原因是您的应用程序所依赖的ScriptReferenceProfiler程序集尚未被引用或引用了不正确的版本。引用程序集并编译项目后,Visual Studio将自动将其复制到输出文件夹,以便在运行时解析它。如果这是一个ASP.NET应用程序,则程序集必须存在于bin文件夹中。否则它应该与可执行文件一起。