473,778 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Membership Configuration Issues

Here is my configuration:
ASP.Net 2 running on IIS6/Win2k3
Developing on WindowsXP-Pro iwth Visual Studio 2005.

I am trying to utilize the Membership functionality in an ASP.net
website.

I am having the following issues:
1) In VS.Net 2005 there is no ASP.Net Configuration option under the
Website menu.
2) If I choose 'Administer Website' from the context menu of the Login
control, I get the error: "Exception has been thrown by the target of
an invocation."

I have already created the necessary database tables on my SQL Server
2005 instance using the aspnet_regsql wizard. The web.config has been
updated to use forms auth and the membership aggregate has been created
to use the correct connectionStrin g.

Does anyone have any suggestions to get WAT and the membership features
running?

Thanks in advance.

Jan 15 '06 #1
2 1465
Did you implement the roleManager?

I can also make note that the web.config settings are very delicate and some
not documented all that well. The membership provider
applicationName ="YourAppNam e" setting for example can cause conflicts and as
I want to recall can do so without raising an observable exception. I think
it has to match what the roleManager provider declares also. In fact,
neither may even be required unless your application accesses another
application on a different server. Complexity such as that needs to be
looked at which may be causing your problems.

I think it would have been helpful if Microsoft put out a bare bones
Membership starter kit with a base implemenation of the web.config. You
might also consider installing the DotNetNuke starter kit which does support
Membership just to determine if the WAT will function for you.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee. com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


"Josh Collins" <sk******@gmail .com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
Here is my configuration:
ASP.Net 2 running on IIS6/Win2k3
Developing on WindowsXP-Pro iwth Visual Studio 2005.

I am trying to utilize the Membership functionality in an ASP.net
website.

I am having the following issues:
1) In VS.Net 2005 there is no ASP.Net Configuration option under the
Website menu.
2) If I choose 'Administer Website' from the context menu of the Login
control, I get the error: "Exception has been thrown by the target of
an invocation."

I have already created the necessary database tables on my SQL Server
2005 instance using the aspnet_regsql wizard. The web.config has been
updated to use forms auth and the membership aggregate has been created
to use the correct connectionStrin g.

Does anyone have any suggestions to get WAT and the membership features
running?

Thanks in advance.

Jan 15 '06 #2
Clinton,

I have enabled the roleProvider. Below is my web.config:
<?xml version="1.0"?>
<configuratio n
xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings/>
<connectionStri ngs>
<remove name="LocalSqlS erver" />
<add name="LocalSqlS erver" connectionStrin g="Data
Source=catpoop; Initial Catalog=ej;Inte grated Security=True;"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>
<system.web>
<compilation debug="true" defaultLanguage ="c#" urlLinePragmas= "true"
/>
<authenticati on mode="Forms">
<forms name="Ej" timeout="20" loginUrl="Login .aspx" />
</authentication>
<authorizatio n>
<deny users="?"/>
<allow users="*"/>
</authorization>
<membership defaultProvider ="MySqlMembersh ipProvider">
<providers>
<clear />
<add connectionStrin gName="LocalSql Server"
applicationName ="CreativeEj "
name="MySqlMemb ershipProvider"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" />
</providers>
</membership>
<roleManager enabled="true"
defaultProvider ="CustomizedRol eProvider">
<providers>
<add name="Customize dRoleProvider"
type="System.We b.Security.SqlR oleProvider"
connectionStrin gName="LocalSql Server" />
</providers>
</roleManager>
</system.web>
</configuration>

I have set up the membership tables in a database named ej on a SQL
Server 2005 DB Instance.

Does anything look off here?

Jan 16 '06 #3

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

Similar topics

9
2175
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. It does not currently use any of the Commerce Server 2002 functionality with the exception of the user authentication features. I have written my replacement application to use a custom login form and custom connection string so that I can use...
5
1476
by: sloan | last post by:
Are there any "gotchas" on deploying the default Membership Provider (aspnetdb) to a hosting provider? I'm about to do it. And how does one get to the "auto configurer" .. that allows you to setup roles/users .....? Can I do these steps:
0
6244
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc for this MS Access db. Well, microsoft offers a download sample. Instructions are below. HOW TO USE MS ACCESS DB FOR ASPNET APPLICATION SERVICES ( membership, profile, roles, etc providers)
2
2220
by: Allan Ebdrup | last post by:
I'm using VS Team Suite 2005 and dotNet 2.0, my webserver is running dotNet 2.0 I trying to set up a membership provider using a MSSQL 2000 database. I've run the aspnet_regsql.exe tool and have the tables created. I've changed web.config with the following: ---- <membership defaultProvider="CustomizedProvider"> <providers> <add name="CustomizedProvider" type="System.Web.Security.SqlMembershipProvider"
4
4733
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality above and beyond what the prodiver currently allows. I need the ability to access a user id and the user's permission id. With Forms authentication in 1.1, I would just create a custom identiy and principal and store the information in the identity....
10
4869
by: perplexed | last post by:
After a user logs in (ASP.NET 2.0 membership/roles), how do I programmatically access their UserId and other information stored in the ASP.NET database structure? A user may login at Login.aspx and then they are redirected to somepage.aspx. somepage.aspx doesn't have a reference to the login object and can't access UserId. Also, are there any issues with changing the UserId column from a uniqueidentifier to an integer IDENT? Thanks.
2
2771
by: GaryDean | last post by:
My ASP.Net application, that uses the SQL Membership Provider, runs fine on my development box (server2003) as long as I use the standard provider. But, in anticipation of deployment to other servers I am attempting to register another provider instance. I'm not sure this is the right deployment choice but I haven't found any guidelines on how to best deploy apps using the SQL Membership provider. I first attached...
3
1940
by: GaryDean | last post by:
I have serveral applications now running that are using the MembershipProvider classes and they are each using their own security tables in SQL Server 2005 instead of the express databases - they are all work well. Now we have a need to have many different asp.net websites and web services use a single security database because they all share the same user and administrator community. It doesn't seem there will be a problem with all of...
8
3775
by: Nick | last post by:
Hi there, Membership.GetNumberOfUsersOnline() works great the first time, then jumps up to the number of users registered in the system. I have tried enumerating through each user individually and checking IsOnline which done likewise, first result was 4, then 22 every time after that and it's only be debugging locally using VS. Either I'm doing something seriously wrong or this function is a
0
9628
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
9464
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
10292
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
10122
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
8954
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
7471
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
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3627
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.