我面临着与托管WCF服务(.NET Framework 4,IIS 7,Windows 2008 Standard SP2)相关的特殊问题.
在我部署服务之后,它工作正常一段时间,它会通过抛出一个未找到文件的异常而自行消亡.例外细节如下.
该应用程序托管在IIS7中,具有指向.NET Framework 4版本的特定应用程序池.我已经使用FusionLog找到了更多丢失的程序集,没有运气.但是,如果我从托管服务器中删除所有程序集并从构建文件夹中再次复制它,它将再次开始工作,绝对没有问题.我无法解释这种行为,并搜索/尝试了很多寻找答案.为了提供更多信息,该服务是本地程序集,我使用Enterprise Library进行异常处理和日志记录.WCF使用httpBinding为我们服务.程序集是调试版本.请帮忙.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
------
<!-- Begin .......Exception Handling Configuration-->
<!-- End .........Exception Handling configuration-->
<!-- Start .............Logging Configuration-->
<!--End............ Logging Configuration-->
<system.web>
<compilation debug="true" targetFramework="4.0" />
<identity impersonate="true" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<defaultDocument>
<files>
<add value="Service.svc" />
</files>
</defaultDocument>
</system.webServer>
<!-- Start WCF ................Settings-->
<system.serviceModel>
<diagnostics>
<messageLogging logEntireMessage="true" logMessagesAtServiceLevel="true" />
<endToEndTracing propagateActivity="true" activityTracing="true" messageFlowTracing="true" />
</diagnostics>
<!-- Begin..Included for Switching off Security-->
<bindings>
<basicHttpBinding> …Run Code Online (Sandbox Code Playgroud)