最近,我正在部署Silverlight RIA应用程序。应用程序在测试机上运行良好,当我将其移至生产服务器时开始出现问题。应用程序使用Windows身份验证。基本上,我复制了测试计算机的环境IIS设置,然后复制了整个应用程序文件夹并修改了Web配置。在下面,我列出了我遇到的问题和症状:
当我尝试从PRODUCTION服务器登录到应用程序时,出现登录框。显然,服务器可以在Windows域中使用。我无法使用域凭据登录。
当我尝试从外部计算机登录应用程序时,虽然我可以使用自己的凭据登录,但也会出现日志记录框。出现提及的异常(System.ServiceModel.DomainServices.Client.DomainOperationException
)。这很奇怪,因为在测试服务器中,我从未需要传递Windows域凭据。
我已经使用提琴手来检查AuthenticationService.svc调用的服务器响应:
@Fault5http://schemas.microsoft.com/ws/2005/05/envelope/none@Code@Value�Sender@Reason@Textxmllang�pl-PL@Detail@DomainServiceFaultDomainServices i)http://www.w3.org/2001/XMLSchema-instance@ ErrorCode��@ErrorMessage.nil�@IsDomainException�
另外,我还向应用程序添加了跟踪:
<source name="LANOS.Web.AuthenticationContext"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="xml" />
</listeners>
</source>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true" >
<listeners>
<add name="xml"/>
</listeners>
</source>
<source name="LANOS.Web"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<listeners>
<add name="xml" />
</listeners>
</source>
</sources>
我知道gooogle中有很多答案。但是,此异常非常普遍,我还没有找到类似的问题。我尝试根据网络中的不同解决方案来处理DLL并修改web-config。没有任何帮助。
我设法找到了解决该问题的方法。 http://support.microsoft.com/kb/896861 方法2。