Click here to Skip to main content
15,914,109 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hiya,

I am trying to use the ASP.NET membership database on a WPF application as I want a local front end for a database as well as a front end online.

I have tried the example on this video: http://windowsclient.net/learn/video.aspx?v=293710

However, when I use the code as follows I get the following error:

System.NotSupportedException occurred
Message=Specified method is not supported.
Source=System.Web.Extensions

C#
Membership.CreateUser("gumby", "pokey");


This error also applies to getting roles and also logging users in.

Can anyone offer any advice as to how I can resolve this?
Posted
Comments
Sergey Alexandrovich Kryukov 25-Jun-12 14:00pm    
How can ASP.NET have anything to do with WPF? If you want WPF front-end to something, just do it, how it can possibly be related to ASP.NET.
What's the use of your exception information if you do not explain what you do? Does not seem to make any sense at all.
--SA
Scrappy 1871 25-Jun-12 14:40pm    
It is related to ASP.NET because I am using the ASP.NET Membership database. My question was, how do I go about using the ASP.NET Membership database's user functions with WPF? The exception information wasn't really included because I thought it was obvious from what I'd written that the exception was caused by Membership.CreateUser() and that it wasn't supported.

What I want to know is what can I do to get round this?

1 solution

Please see my comment to the question: it is not clear what are you trying to do, and how ASP.NET and WPF application can be related. I have an impression that you are trying to do something totally wrong, but cannot be quite sure because of the very vague question.

If you have some working ASP.NET application you are trying to re-use with different front end, probably you should think about or creating an ASP.NET Web service you would consume by your WPF front-end application, or, better yet, to create a WCF service hosted by IIS and also consume it by your your WPF front-end.

Please see: http://msdn.microsoft.com/en-us/library/ms972326.aspx[^].

These CodeProject articles could be useful:
Understanding the Basics of Web Service in ASP.NET[^],
ASP.NET Web Service[^].

On WCF services, please see:
http://msdn.microsoft.com/en-us/library/bb332338.aspx[^],
http://msdn.microsoft.com/en-us/library/aa751792.aspx[^],
http://msdn.microsoft.com/en-us/library/ms733766.aspx[^].

These CodeProject articles could be useful:
Create, Host (Self Hosting, IIS hosting) and Consume WCF Service[^],
What's the Difference between WCF and Web Services?[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900