473,698 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MembershipUser implementation

I'm trying to implement an inherited MembershipUser class for a custom
MembershipProve r for RTM ASP.NET 2.0

I'm using an external assembly that implements these classes. I've
signed the assemblies and they compile and sit in the \Bin directory of
the ASP.NET website.

When I use the ASP.NET Site Configuration manager and hit the Security
tab, I get the following...

Type is not resolved for member
'FYI.Sys.Provid ers.KBMemberUse r,KBEvent, Version=1.0.0.0 ,
Culture=neutral , PublicKeyToken= 2f38403ac619f52 1'

KBMemberUser's definition follows:::::

<Serializable() > _
Public Class KBMemberUser : Inherits MembershipUser

Private _Login As FYI.Entity.Logi n

Public Sub New()
_Login = New FYI.Entity.Logi n
End Sub

Public Sub New( _
ByVal providerName As String, _
ByVal username As String, _
ByVal FullName As String, _
ByVal providerUserKey As Object, _
ByVal email As String, _
ByVal passwordQuestio n As String, _
ByVal isApproved As Boolean, _
ByVal isLockedOut As Boolean, _
ByVal creationDate As DateTime, _
ByVal lastLoginDate As DateTime, _
ByVal lastActivityDat e As DateTime, _
ByVal lastPasswordCha ngedDate As DateTime, _
ByVal lastLockoutDate As DateTime _
)
MyBase.New(prov iderName, username, providerUserKey , email,
passwordQuestio n, FullName, isApproved, isLockedOut, creationDate,
lastLoginDate, lastActivityDat e, lastPasswordCha ngedDate,
lastLockoutDate )

_Login = New FYI.Entity.Logi n
If Not _Login.LoadByPr imaryKey(CType( providerUserKey ,
Integer)) Then
Throw New InvalidOperatio nException("Use rID could not
be found")
End If

End Sub

End Class

Anyone inherited from MembershipUser class yet?

Nov 19 '05 #1
0 1544

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

Similar topics

8
5435
by: Mark Olbert | last post by:
I'm writing a custom MembershipProvider which uses a custom class derived from MembershipUser (basically, the derived class adds a field to the MembershipUser base class). When I try to configure my website using the ASP.NET Configuration tool, and go to the Security page, I get the following error: Could not load type 'OMLMembershipUser' from assembly 'App_Code.olsckwwk, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Yet...
9
1798
by: Mark Olbert | last post by:
I'm reposting this in case it got lost... The ASPNET Configuration tool does not appear to be able to handle derived MembershipUser classes. Even the simplest possible derived class (one which merely wraps MembershipUser itself, duplicates its public constructor but adds no additional methods or properties) causes ASPNET Configuration to blow up. The error message indicates that ASPNET Configuration cannot load the derived Type from the...
0
1139
by: mark d. | last post by:
I've been working through the new features in 2.0 for about a month now, am at the point of trying to apply them to my e-comerce applications. My apps assign a unique custid field in tracking the user throughout their visit. (ie, XYZ20001) I've found a couple of examples on how to customize the membershipprovider object: <a href="http://www.devx.com/asp/Article/29256/1954?pf=true">Writing A Custom Membership Provider for your ASP.NET...
3
2223
by: Linn | last post by:
Hi, I am trying to update the e-mail for å user (as an admin), but the new e-mail address is not saved. The msgbox gives met he correct email, but when I reload my data in the gridview, the old value is displayed. Anyone any idea? Dim user As MembershipUser Dim bruker as string
1
1392
by: Smokey Grindle | last post by:
Im trying to write a custom membership provider but in the GetUser method it returns a MembershipUser, but when i create an object called that it says overload resolution failed... no accessable 'new' accepts this number of arguments... even though my argument list matches up... Dim _user As New System.Web.Security.MembershipUser(Me.ApplicationName, _eUser.UserName, _eUser.UserName, _eUser.ExternalEmailAddress, String.Empty, String.Empty,...
2
1330
by: Cliff | last post by:
Hi, i try to get the emailaddress of an membershipuser: Dim a As MembershipUser Dim em As String em = a.Email.ToString In runtime, i get the error: "Object reference not set to an instance of an object. "
3
1890
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm trying to extend the MembershipUser class, and have encounter a problem: << See in the middle of this post for info about why I do this >> << See below of this post for the source code of Contact class >> public class Contact : MembershipUser
2
9968
by: Jeff | last post by:
ASP.NET 2.0 The code below doesn't set IsApproved to true. I mean that I've debugged this code and usr.IsApproved actually get set to true. But when I quit the application and in VS2005 I start "ASP.NET Configuration" then I still see the user without the "active" column checked. To me it looks like usr.IsApproved isn't saved back to the database, I thought the MembershipUser automatically would do this?? What am I doing wrong here??? ...
0
1618
by: =?Utf-8?B?TmVhbA==?= | last post by:
I have developed a simple membershipuser class and membershipprovider class. I basically followed the procedures referenced at http://msdn.microsoft.com/en-us/library/44w5aswa.aspx and made it even simpler by inheriting sqlmembershipprovider, and did overrides on only a couple of methods. So far, they seem to work fine when used in code. However, I tried using the web site administration tool to edit a user and received the error below. ...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9023
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7721
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.