I am trying to move a LightSwitch 2012 solution using FormsAuthentication between machines, so I added the solution to TFS (using my TFSPreview account) on one machine and checked everything in.

On the new machine I did a fetch, opened the solution and attempted to run. When the application starts, the `Loading...` screen is displayed and does not disappear. I do not get an error message.

If I take off the `?IsLaunchedByVS=True` from the query string then I do see the login screen.

I zipped up the original working source off the old machine, copied it over to the new machine, opened and ran it. This works correctly and I can get in without needing to change the query string.

I've run a diff between the two folders, there were a couple of differences in the csproj files around the version number being specified in the references the the lightswitch DLLs, I tweaked these so the version number was specified however there is no change.

I've tried this on a third machine, and get the same.

I've run Fiddler when trying to load the machine and here I do see a difference. In the GetAuthenticationInfo request the working original code is returnning a TestUser along with the Permissions set as per the project property dialog. In the code fetched out of TFS the User and permissions are nil. This would appear to be the cause of the application not logging in correctly.

I cannot see the cause of this, can anyone give me any pointers?

Code copied from original machine
`@GetAuthenticationInfoResponsehttp://tempuri.org/@GetAuthenticationInfoResult aDomainServices i)http://www.w3.org/2001/XMLSchema-instance^
TotalCount��^IncludedResults b9http://schemas.microsoft.com/2003/10/Serialization/Arrays_anyType.type�c:User cehttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation`FullName� Test User`Name�TestUser`
Permissions\_string�!LightSwitchApplication:IsAccounts\_string�LightSwitchApplication:IsOffice\_string�!LightSwitchApplication:IsEngineer\_string� LightSwitchApplication:IsManager\_string�5Microsoft.LightSwitch.Security:SecurityAdministration`Roles.nil�^
RootResults behttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation_AuthenticationInfo_AuthenticationType�Forms_UserName�TestUser`

Code from TFS
`@GetAuthenticationInfoResponsehttp://tempuri.org/@GetAuthenticationInfoResult aDomainServices i)http://www.w3.org/2001/XMLSchema-instance^
TotalCount��^IncludedResults b9http://schemas.microsoft.com/2003/10/Serialization/Arrays_anyType.type�c:User cehttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation`FullName.nil�`Name`
Permissions.nil�`Roles^
RootResults behttp://schemas.datacontract.org/2004/07/Microsoft.LightSwitch.Security.ServerGenerated.Implementation_AuthenticationInfo_AuthenticationType�Forms_UserName`