I have exercised my frustration to its utmost today while trying to deploy a Lightswitch application to a Windows 2008 R2 server running IIS 7.5. Upon navigating to the application, I receive the following execrated error:
Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound.
Both the .NET trace and server Event Log have this to say about it:
Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/63835064 Exception: System.Web.HttpException (0x80004005): The service '/Web/Microsoft-LightSwitch-Security-ServerGenerated-Implementation-AuthenticationService.svc' does not exist.
Configuration details are as follows:
- I have selected "Do not enable authentication" under my Access Control options.
- In my "Application Server Configuration" publish options, I am selecting IIS Server with the prerequisites checkbox unchecked.
- Under "Publish Output", I'm creating a package on my local disk. Later, I'm copying that package to the server and running the .deploy.cmd manually, which appears to work fine.
- My database connection under "Other Connections" is correct -- it is a SQL login that works from my box, and other sites on this server connect to the same DB server with no trouble.
On the server side:
- The site is running in its own app pool in .NET 4.0 Integrated Mode, using the ApplicationPoolIdentity.
- Only anonymous authentication is enabled.
What I've tried:
- Installed all the Lightswitch stuff for 2011 and 2012 from the Web Platform Installer.
- Installed RiaServices.msi.
- Repaired .NET 4.5.
- Ran aspnet_regiis -i
None of these had any effect at all. The only hint I have about the bolded error above is that that .svc is generated at runtime, and that it will throw a 404 error if some other issue occurs on the WCF end. (That's why I tried the RiaServices.msi install.)
I am able to "Remotely publish to a server now" to my own local IIS Express, and the app there works fine. Copying those files to the remote server yields the same result as before, however.
Any suggestions on how to troubleshoot this further?