Asp.net 异常消息是:无法加载文件或程序集';App#U代码';或者它的一个依赖项。系统找不到指定的文件

Asp.net 异常消息是:无法加载文件或程序集';App#U代码';或者它的一个依赖项。系统找不到指定的文件,asp.net,wcf,iis,Asp.net,Wcf,Iis,我正在尝试访问类似xxx.svc的WCF服务端点。我得到了这个错误: The exception message is: Could not load file or assembly 'App_Code' or one of its dependencies. The system cannot find the file specified 我打开了fusion日志,得到了以下信息: === Pre-bind state information === LOG: User = xxx\xx

我正在尝试访问类似xxx.svc的WCF服务端点。我得到了这个错误:

The exception message is: Could not load file or assembly 'App_Code' or one of its dependencies. The system cannot find the file specified
我打开了fusion日志,得到了以下信息:

=== Pre-bind state information ===
LOG: User = xxx\xxx
LOG: DisplayName = App_Code
 (Partial)
LOG: Appbase = file:///D:/myService/
LOG: Initial PrivatePath = D:\myService\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\myService\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\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.
我的web应用程序中没有应用程序代码文件夹。为什么要查找应用程序代码


谢谢

可能您使用了无效的引用,或者您没有引用您想要使用的内容。解决方法是查看您的web.config和所有引用,搜索所需但缺少的引用或无效引用。

我只是在睡了个好觉后才找到答案。我忘记了precompiledApp.config文件。

谢谢您的回复。我只是在睡了个好觉后才想出来。我忘记了precompiledApp.config文件。。。我想移除我的虚拟大脑。