Skip to main content

Microsoft Silverlight

Advanced Forum Search Results

  • Re: Re: Authentication failed after switching to WCF RIA

    Even simpler, add the following ASP.NET page to your Silverlight application (the Web part).<%@ Page Language="C#" AutoEventWireup="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html ...
  • Re: Re: Log out option

    If you want to logout from Silverlight using the RIA Service AuthenticationService, you can use.   WebContext.Current.Authentication.Logout(true); (I assume you've created an AuthenticationDomainService on the server already) Kyle
  • Re: Re: Authentication failed after switching to WCF RIA

    Steve, let's dig into you ASP.NET integration. Could you create an ASP.NET with the same configuration (just copy everything you included in your post). You can create a new "ASP.NET Web Application". See if you can get it running against the same membership data locally as well as when you publish and run it on your server. It ...
  • Re: Re: Re: Compare username string value against table value?

    A simple example might be to use the Business Application Template. Create a new application. In the Web.config file, set the authentication mode to "Windows". In the App.xaml file, comment out FormsAuth and uncomment WindowsAuth. Also, if you are using the permission to protect data, you need to be doing that on the server instead ...
  • Re: Authentication failed after switching to WCF RIA

    Also, authentication tends to be the first DomainService people test (because it's built into the Business Application Template). Please check whether any domain services work for you with the new bits. Authentication has changed very little from the last release, however the transport layer and endpoints are all new. Kyle
  • Re: Dataform not giving option to Add and Delete Records from a bounded domain service

    It doesn't work if you're trying to bind against one of the genereated entity lists in a DomainContext. Jeff blogged about one solution here (http://jeffhandley.com/archive/2009/08/14/entitycollectionviewconverter.aspx). Kyle
  • Re: Secure Services

    I'm not sure there's a great solution for this. The default authentication service requires you to expose all the IAuthentication methods as service endpoints. If you don't want them visible along with your other custom methods, you might want to split the DomainService in two. Perhaps the AdminService and AuthenticationService should ...
  • Re: Help with AuthenticaitonService

    I had to add a workaround to a few of the samples for the July bits to make RiaContext.Current.User bindable. Just copy the partial RiaContext class I added to App.xaml. Kyle
  • Re: Help with AuthenticaitonService

    The first problem you're seeing is that UserBase.Name is not being set. It is the (an) entity key for User. You can probably get rid of UserName and just use Name directly. It looks to me like you'll hit a few more problems, though. ValidateUser should never be hardcoded to return true. That's the same as not having authentication. ...
  • Re: Using HTTPS for all RIA Services operations

    I have not heard of a way to configure the default web server provided by VS to use https. The only way I have been able to test https is using IIS. It doesn't mean there aren't other ways, but I would assume it is not something you can do directly from Visual Studio. Kyle
1 2 3 4 5 Next >
Microsoft Communities