Does anybody Know ?ClientApplication Services and NotSupportedException on anymethod apart from login?Is it how works?

Last post 06-18-2008 5:28 AM by brix. 4 replies.

Sort Posts:

  • Does anybody Know ?ClientApplication Services and NotSupportedException on anymethod apart from login?Is it how works?

    06-16-2008, 12:58 PM
    • Member
      12 point Member
    • brix
    • Member since 06-02-2008, 2:58 PM
    • Posts 92

    Hi,

    I have written a CustomMembership Provider and I was reading that you can use Client Application Services to make use of Asp.net Membership,roles etc... in a windows app.

     I have managed to get it working however if I wanted use any other methods apart from validateUser it says:

    NotSupportedException. I Tried with membership.GetUser and any other.

    How are we supposed to use it?

    Can we call all the methods that asp.net membershipProvider provides from a Windows app?

    If not I dont see the point of it all.

    Am i missing the obvious?

     

    thanks alot

    Thanks a lot
  • Re: Does anybody Know ?ClientApplication Services and NotSupportedException on anymethod apart from login?Is it how works?

    06-18-2008, 4:00 AM

    Hi

    What the membership block have you configured in your system?.These are the min settings you need to set in order to use custom membership.

    <membership defaultProvider="ExampleSqlProvider">
        <providers>
            <clear />
            <add name="ExampleSqlProvider" 
            type="CustomSqlMembershipProviderType" 
            connectionStringName="ExampleConnectionString" 
            />
        </providers>
    </membership>
    Best Regards
    XiaoYong Dai
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: Does anybody Know ?ClientApplication Services and NotSupportedException on anymethod apart from login?Is it how works?

    06-18-2008, 4:10 AM
    • Member
      12 point Member
    • brix
    • Member since 06-02-2008, 2:58 PM
    • Posts 92

    Thanks for your reply ,at least somebody replied.

    May be my question is not that clear.

    Can you using ClientApplicationServices 3.5  call any method in the membership provider?

    It looks like to me that you can only call ValidateUser and logout  all the rest of methods are not supported by ClientApplicationServices.Is this true?#

    In answer to your question and I dont think it's relevant  I  have a full blown Custom Sql MembershipProvder where all methods are implemented.In my web config i have

    <membership defaultProvider="MyAppSqlMembershipProvider">
     <providers>
      <clear/>
      <add name="MyAppSqlMembershipProvider" type="MyApp.Security.MembershipEntaSqlProvider"
      connectionStringName="Authorization"
      enablePasswordRetrieval="true"
      enablePasswordReset="true"
      requiresQuestionAndAnswer="true"
      requiresUniqueEmail="true"
      passwordFormat="Encrypted"
      applicationName="MyApp"
      applicationId="1"
      writeExceptionsToEventLog="false"/>
     </providers>
    </membership>

    +

     <system.web.extensions>
      <scripting>
       <webServices>
        <authenticationService enabled ="true"
                requireSSL="false" />
       </webServices>
      </scripting>
     </system.web.extensions

    Again.Calling validateUser works!!! any other methods throws me an exception of not Supported.

    Can anybody clarify?

     

    thanks a lot as usual

     

     

    Thanks a lot
  • Re: Does anybody Know ?ClientApplication Services and NotSupportedException on anymethod apart from login?Is it how works?

    06-18-2008, 4:11 AM
    Answer
    • All-Star
      60,921 point All-Star
    • anas
    • Member since 09-21-2006, 4:31 AM
    • Palestinian Territory, Occupied
    • Posts 6,865
    • Moderator

    Reference of MSDN :

    you can use these services to perform the following tasks:

    • Authenticate a user. You can use the authentication service to verify a user's identity.

    • Determine the role or roles of an authenticated user. You can use the roles service to change the user interface of your application depending on the user's role. For example, you can provide additional features for users who are in an administrator role.

    • Store and access per-user application settings located on the server. You can use the Web settings service (also known as the profile service) to share settings across multiple applications and locations.

     Please check this blog for more information about cleint services .

    http://blogs.msdn.com/winformsue/archive/2007/05/20/client-application-services-in-windows-forms-end-to-end-walkthrough-available.aspx

    And there is an article here

     

    Regards,

    Anas Ghanem | Blog

  • Re: Does anybody Know ?ClientApplication Services and NotSupportedException on anymethod apart from login?Is it how works?

    06-18-2008, 5:28 AM
    • Member
      12 point Member
    • brix
    • Member since 06-02-2008, 2:58 PM
    • Posts 92

    Thanks for your reply

    Funny enough I have used both articles to learn about ClientApplicationServices.May be I have failed to see the obvious that as  those articles say you can only authenticate a user-DetermineRoles and use Profile services.

    English is not my first language  so I might have missed important points,but I thought Client Application Services would allow to full use all methods from the Membership Provider in a windows app,but is just authentication.

    In view of this .As anybody used the Asp.Net membership Provider in a real world app from a Windows application?

    Thanks alot

     

    Thanks a lot
Page 1 of 1 (5 items)