473,322 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Debugging Custom MembershipProvider?

So far, I am more than a little underwhelmed by the Membership API in ASPNET2, and the ASP.NET Configuration wizard in VS2005. The
latter is slow as a pig whenever it does anything. Oh well, at least it's given me a chance to brush up on my Spider Solitaire game.

In any event, I am trying to implement a custom MembershipProvider for a website. Why? Because the default one that gets created by
the supplied wizard is way over the top, in terms of the complexity of information it manages, for the website I'm building.

The problem is I haven't been able to figure out how to debug my custom MembershipProvider. I've configured the site so that the
ASP.NET Configuration wizard uses the custom provider, but whenever I try to create a new user it blows up. It does give me an error
message when that happens. However, since that message is badly formatted, and refers solely to ASP.NET Configuration wizard files,
it's not much help.

So...how do I debug a MembershipProvider?

- Mark
Jan 10 '06 #1
2 2610
Hello Mark,

You once you run the configuration website, try and attach to the aspnet_wp
process with VS 2005 with your membership provider. THis has worked for me.

Shawn Wildermuth
C# MVP, Author and Speaker
http://adoguy.com
So far, I am more than a little underwhelmed by the Membership API in
ASPNET2, and the ASP.NET Configuration wizard in VS2005. The

latter is slow as a pig whenever it does anything. Oh well, at least
it's given me a chance to brush up on my Spider Solitaire game.

In any event, I am trying to implement a custom MembershipProvider for
a website. Why? Because the default one that gets created by

the supplied wizard is way over the top, in terms of the complexity of
information it manages, for the website I'm building.

The problem is I haven't been able to figure out how to debug my
custom MembershipProvider. I've configured the site so that the

ASP.NET Configuration wizard uses the custom provider, but whenever I
try to create a new user it blows up. It does give me an error

message when that happens. However, since that message is badly
formatted, and refers solely to ASP.NET Configuration wizard files,

it's not much help.

So...how do I debug a MembershipProvider?

- Mark

Jan 10 '06 #2
On Mon, 09 Jan 2006 19:01:37 -0800, Mark Olbert
<Ch*********@newsgroups.nospam> wrote:

The problem is I haven't been able to figure out how to debug my custom MembershipProvider. I've configured the site so that the
ASP.NET Configuration wizard uses the custom provider, but whenever I try to create a new user it blows up. It does give me an error
message when that happens. However, since that message is badly formatted, and refers solely to ASP.NET Configuration wizard files,
it's not much help.


If you are running the ASP.NET website config tool, then you'll want
to use Debug -> Attach to Process and find WebDev.WebServer.exe in the
process list. Set some breakpoints in your code, or use the Debug ->
Exceptions dialog box to have the debugger break when a managed
exception is thrown.

--
Scott
http://www.OdeToCode.com/blogs/scott/
Jan 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called...
6
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base...
0
by: Mark Olbert | last post by:
I'm posting this here to save other folks some hair-pulling time. No need to respond. You can debug custom MembershipProvider and RoleProvider classes under the ASPNET Configuration tool by...
5
by: Ben R. | last post by:
My website uses a custome membership and role provider. I can use a custom login control and user creation control and can debug my providers while doing so with breakpoints. However, when I launch...
0
by: Mwob | last post by:
Hi all, I'm about to start creating a custom membership provider. Its for a website that already has a table of users in a single table, so I need to create a custom MP to talk to the data in...
5
by: Alias | last post by:
Hi - I'm trying to implement a custom RoleProvider based on the SqlRoleProvider. I keep receiving a an error that it can't load type 'MyRoleTest.MyRoleProvider' when trying to load my...
8
by: Tomasz | last post by:
Hello Developers! I have an interesting problem using my custom MembershipProvider, RoleProvider and Forms Authentication. Both MembershipProvider and RoleProvider require session state, where...
4
by: freeflytim | last post by:
I'm trying to implement a custom MembershipProvider (and RoleProvider) together with a custom MembershipUser class in C#, Asp.Net 2.0, MS Visual Studio 2005. Everything has worked fine so far,...
2
by: StinkyDuck | last post by:
Hello, I am relatively new to ASP.NET 2.0 and have been reading a book and going through some articles on the internet. When looking for information regarding membership and roles, I see lots...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.