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

Home Posts Topics Members FAQ

MembershipUser object...

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.Secu rity.Membership User(Me.Applica tionName,
_eUser.UserName , _eUser.UserName , _eUser.External EmailAddress, String.Empty,
String.Empty, _eUser.Approved User)

you cant even make a defuault object and not get taht with

dim _user =new memberhsipuser

says the same thing even though the documentation on MSDN says this is
valid... what am I missing here?


Jun 29 '06 #1
1 1391
whoops some of that cut off in my original decleration, should be more in
there before the )
"Smokey Grindle" <no********@don tspam.net> wrote in message
news:ut******** ******@TK2MSFTN GP04.phx.gbl...
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.Secu rity.Membership User(Me.Applica tionName,
_eUser.UserName , _eUser.UserName , _eUser.External EmailAddress,
String.Empty, String.Empty, _eUser.Approved User)

you cant even make a defuault object and not get taht with

dim _user =new memberhsipuser

says the same thing even though the documentation on MSDN says this is
valid... what am I missing here?

Jun 29 '06 #2

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

Similar topics

0
1544
by: brett_fyisystems | last post by:
I'm trying to implement an inherited MembershipUser class for a custom MembershipProver 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...
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
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
1889
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
8671
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
8598
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
9152
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9016
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...
0
7709
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
6515
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
4360
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
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2321
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.