完整的错误是:
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.
Run Code Online (Sandbox Code Playgroud)
其中xxxxxxxx是ASP.Net生成的临时名称.
我们在ASP.Net应用程序中托管的WCF服务收到此错误.
奇怪的是,它偶尔会发生,与部署更改无关......当它发生时,服务会"中断"所有后续请求.
目前,我们的解决方法是从应用程序的文件夹中删除临时程序集:
%windir%\ Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
该应用程序使用.Net 3.5在win 2008服务器上的IIS7中托管
任何想法最受赞赏!
ami*_*mit 10
在ASP.NET应用程序中使用.SVC时,这可能是ASP.NET编译器的问题.您可以通过关闭批处理编译来避免此问题,即在<system.web>元素下的Web.Config中添加以下内容,
<compilation batch="false">
Run Code Online (Sandbox Code Playgroud)
请找到重现问题的步骤,
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
Run Code Online (Sandbox Code Playgroud)
PS微软此刻正在调查此问题的原因,当我提供一些信息时,我会更新帖子.
HTH,阿米特
| 归档时间: |
|
| 查看次数: |
7507 次 |
| 最近记录: |