From last two days i was looking for the issue "RiaContext.Current.Authentication.User is null" while authenticating user.
The simple code is shown below which works fine on local development server.
private AuthenticationService _userService = RiaContext.Current.Authentication;
always returns False.
After debugging the above on the production server "RiaContext.Current.Authentication.User"
Then i use fiddler which gave me following error:
The resource cannot be found.
HTTP 404 : The resource cannot be found.
There are many reasons for the above error:
1.Your application should run in Full Trust Mode.
2.Make sure that your web.config contains the following entries:
3.Above can also happen due to missing assembly reference so make sure that you have all the assemblies installed.