John Bailey
Check me out on the web at Home.
| Forum | Thread | Replies | Latest activity |
|---|---|---|---|
| Tech Off | CA2022 - Object can be disposed more than once | 22 | Jul 23, 2010 at 11:46 AM |
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
| Forum | Thread | Replies | Latest activity |
|---|---|---|---|
| Tech Off | CA2022 - Object can be disposed more than once | 22 | Jul 23, 2010 at 11:46 AM |
Client Application Services with Visual Studio 2008
Mar 13, 2009 at 6:18 PM<authentication mode="Forms">
<forms cookieless="UseCookies" />
</authentication>
The default is to autodetect. Client Application Services does not work without cookies and for some reason the autodetect must be determining that cookies are not supported. It works when I force cookie support at the server.
Client Application Services with Visual Studio 2008
Mar 12, 2009 at 8:34 AMprivate void btnLoad_Click(object sender, EventArgs e)
{
if (Thread.CurrentPrincipal.Identity.IsAuthenticated)
{
txtLow.Text = Settings.Default.lowValue.ToString();
txtHigh.Text = Settings.Default.highValue.ToString();
}
}
and I get the following error when I select the Load button:
Error status code returned by the Web Service: InternalServerError. Error details from service: {"Message":"You must log on to call this method.","StackTrace":" at System.Web.ApplicationServices.ApplicationServiceHelper.EnsureAuthenticated(HttpContext context)\r\n at System.Web.Profile.ProfileService.GetPropertiesForCurrentUser(IEnumerable`1 properties, Boolean authenticatedUserOnly)","ExceptionType":"System.Web.HttpException"}
Again, I'm not sure what would cause the roles and profile to fail, but it looks like these services do not think the user is logged in even though the IsAuthenticated property on the principal is true.
Any help or suggestions would be appreciated.
Client Application Services with Visual Studio 2008
Mar 12, 2009 at 7:39 AMI am running Vista Ultimate SP1 and Visual Studio 2008 Professional SP1. I have .Net 3.5 sp1 installed. SQL Server 2005 Express is at SP3. I loaded the demo and tried to authenticate with boss666!/boss666! and got a failed authentication. I added a user of my own using the ASP.Net manager tool just in case it was an issue with the id and password and tried it and again got a failed authentication. I have tried it on both my laptop and desktop development machines with the same result.
With my custom providers the authentication works, but no roles or settings are available. When trying to access the settings it gives an error stating that you have to be authenticated to call the function. Checking the IsAuthenticated property of the identity before hand gives a true response, but I still get the error.
I'm not really sure what could be the issue here. When debugging my custom providers, I see the authentication service called, but the role service it is never called. I can't really debug your demo as there isn't any real code in the server side.
I appear to be one of many who are having issues. Does anyone have a clue what could be the issue or is CAS just too buggy to use in any kind of a real environment?