title: Lightswitch: Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound
body: <p>Here is my scenario:</p>
  
  <p>Solution is made up of two projects - a LS app and a RIA Services project. The RIA services are connecting to remote Web Service which is residing in other domain. These RIA services were added as Data Sources into LS app. When I run this app as Desktop app, everything works. The correct credential handling is implemented in domain services and no errors occured through final testing.</p>
  
  <p>Then I was asked to publish this app on IIS. I use the zip package method. I still can't get it working. I am facing strange behavior.</p>
  
  <p>this is the message that sometimes appears in browser when I run the app:</p>
  
  <blockquote>
    <p>Load operation failed for query 'GetAuthenticationInfo'. The remote
    server returned an error: NotFound.</p>
  </blockquote>
  
  <p>thats all, then the default error message is displayed, no piece of GUI appears.</p>
  
  <p>when I look in Fiddler, I can see these two errors:</p>
  
  <blockquote>
    <p>404:
    /LsApp/Web/Microsoft-LightSwitch-Security-ServerGenerated-Implementation-AuthenticationService.svc/binary/GetAuthenticationInfo</p>
    
    <p>404:
    /Microsoft.LightSwitch.Client;component/screens/screenpresentation/internalframework/resources/resources/x.png</p>
  </blockquote>
  
  <p>I found on internet that some people had this too and that they solved it by repairing .NET installation or by setting up the server properly for running Lightswitch apps. I did all the recommended things - I patched the server, I reinstalled .NET, I installed LS Runtime prerequisities, I checked all the recommended settings of IIS - but no luck.</p>
  
  <p>Please, if you are aware of the reason of this behaviour, I will be very gladfull if you share your knowledge.</p>
  
  <p>Thank you.</p>
  
  <p>EDIT: because the remote service is a NAV Dynamics Web Service which is hosted directly in Microsoft.Dynamics.Nav.Server.exe process without IIS I installed a windows service which serves clientaccesspolicy.xml (<a href="http://blogs.msdn.com/b/freddyk/archive/2010/01/28/connecting-to-nav-web-services-from-silverlight-3.aspx" rel="nofollow">Freddys Blog</a>) and the problem is is still present. So I don't think it's a cross-domain related problem. </p>