运行应用程序时解析器错误

本文关键字:错误 应用程序 运行 | 更新日期: 2023-09-27 17:54:38

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.

运行应用程序时解析器错误

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