完整的错误是:
Could not load file or assembly 'App_Web_xxxxxxxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
其中 xxxxxxxx 是 ASP.Net 生成的临时名称。
对于 ASP.Net 应用程序中托管的 WCF 服务,我们收到此错误。
奇怪的是,它偶尔会发生,与部署更改无关......并且当它确实发生时,所有后续请求的服务都会“中断”。
目前,我们目前的解决方法是从应用程序文件夹中删除临时程序集:
%windir%\Microsoft.NET\Framework64\v2.0.50727\临时 ASP.NET 文件
该应用程序托管在 Windows 2008 服务器上的 IIS 7 中,使用 .Net 3.5
任何想法都非常感激!
当 ASP.NET 应用程序中包含 .SVC 时,这可能是 ASP.NET 编译器的问题。您可以通过关闭批处理编译来避免该问题,即在 Web.Config 下添加以下内容<system.web>
元素,
<compilation batch="false">
请找到重现该问题的步骤,
a. Create a ASP.NET website application and add WCF Service (in this example EPOCS002.svc)
b. Set the “repro-website” directory as the root of a new site (I set it up on IIS 7.5 in classic
pipeline, 32-bit worker process, .NET 2.0 SP2/3.5SP1, with anonymous authentication enabled).
c. Recycle the application pool for the site.
d. Browse default.aspx
e. Browse EPOCS002.svc
f. Edit default.aspx in some way (add a space somewhere) and save it.
g. Browse again to default.aspx
h. Recycle the application pool for the site.
I. Browse again to default.aspx
J. Browse again to EPOCS002.svc
附: Microsoft 目前正在调查该问题的原因,当我获得一些信息时,我将更新该帖子。
哈特哈,
阿米特
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)