Visual Studio 2012 Lightswitch应用程序导致错误' GetAuthenticationInfo'

时间:2014-04-15 14:36:52

标签: c# visual-studio-2012 iis-7 visual-studio-lightswitch

干杯! 我部署的Visual Studio Light Switch应用程序存在问题。如果我从我的视觉工作室启动应用程序,它运行没有问题。我将它部署到我的IIS后,我得到以下错误: enter image description here

Load operation failed for query 'GetAuthenticationInfo'. Could not load file or assembly 'Microsoft.LightSwitch.Design.Server.Internal, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

我真的不知道丢失了什么。该应用程序已从VS2010升级到VS2012解决方案。在我升级后修复了一些即将发生的构建错误之后,程序似乎在Visual Studio的Debug中运行时没有问题。

此外,我还运行了两个在VS2010中开发的Light Switch应用程序。两者都没有任何问题。也许有人知道如何解决这个问题?谢谢到目前为止!

修改1

基于Matts回复,我使用fiddler来解决问题(使用跟踪文件没有提供有关问题的信息。跟踪不良;)

Fiddler遇到HTML 404错误:

<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
 </fieldset></div>
</div>
</body>

此外,我在fiddler中找到了以下信息:

@Fault5http://schemas.microsoft.com/ws/2005/05/envelope/none@Code@Value�Sender@Reason@Textxmllang�en-US��Could not load file or assembly 'Microsoft.LightSwitch.Design.Server.Internal, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.@Detail@DomainServiceFaultDomainServices  i)http://www.w3.org/2001/XMLSchema-instance@    ErrorCode��@ErrorMessage��Could not load file or assembly 'Microsoft.LightSwitch.Design.Server.Internal, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.@IsDomainException�@
StackTrace�   at System.ServiceModel.DomainServices.Server.DomainService.DefaultDomainServiceFactory.CreateDomainService(Type domainServiceType, DomainServiceContext context)
   at System.ServiceModel.DomainServices.Hosting.DomainOperationInvoker.GetDomainService(Object instance)

似乎缺少某些东西,但我不知道为什么

3 个答案:

答案 0 :(得分:1)

看一下这篇关于如何诊断这样的错误的博客文章。这应该有助于引导您解决问题的根本原因。

http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx

答案 1 :(得分:1)

答案 2 :(得分:0)

我知道LightSwitch正在退役,但对于仍在使用它的人遇到此错误,我的解决方案是安装所有IIS组件 - 而不仅仅是默认设置或最小设置。希望它有所帮助!