473,406 Members | 2,713 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,406 software developers and data experts.

Membership providers in dotNet 2.0

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"
connectionStringName="ebdrup_survey"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
applicationName="Survey"
minRequiredPasswordLength="4"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>
----

Now looking at the article at:
http://aspnet.4guysfromrolla.com/articles/120705-1.aspx
or at microsofts site:
http://msdn2.microsoft.com/en-us/library/yy40ytx0.aspx
It states that:
"To access the Web Site Administration Tool, on the Website menu, click
ASP.Net Configuration"

But there is no ASP.Net Configuration menu item in my Website menu, why is
this?

Kind Regards,
Allan Ebdrup
Nov 18 '06 #1
2 2194
I use both VS 2005 & WebDeveloper 2005 EXpress,and both provide the
developer with the Web Site Administration Tool.So you have encountered
quite a strange bug,:-)

but you can still configurate your membership provider by editing the
web.config file,in face the Web Site Administration Tool is just a tool
helping you edit web.config visually.

And remember,as you're using SQLserver 2000,please modify your .NET
Framework's machine.config to fit this 2000 DataBase Engine,or the
feature won't work

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONF IG\machine.config:

<connectionStrings>
<add name="LocalSqlServer" connectionString="data
source=(local);Integrated Security=SSPI;Initial Catalog=aspnetdb"
providerName="System.Data.SqlClient" />
</connectionStrings>

Allan Ebdrup ¼g¹D¡G
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"
connectionStringName="ebdrup_survey"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
applicationName="Survey"
minRequiredPasswordLength="4"
minRequiredNonalphanumericCharacters="0" />
</providers>
</membership>
----

Now looking at the article at:
http://aspnet.4guysfromrolla.com/articles/120705-1.aspx
or at microsofts site:
http://msdn2.microsoft.com/en-us/library/yy40ytx0.aspx
It states that:
"To access the Web Site Administration Tool, on the Website menu, click
ASP.Net Configuration"

But there is no ASP.Net Configuration menu item in my Website menu, why is
this?

Kind Regards,
Allan Ebdrup
Nov 19 '06 #2
Hi Allan,

By default, the ASP.NET Configuration web site is served by the built-in
WebDev.WebServer.EXE which can only manage web site that is located on
local path. I guess your web site to be managed is on remote IIS server.
That's why the menu item "ASP.NET Configuration" is not shown.

One workaround is install Visual Studio 2005 on your server and open this
web site locally.

I understand that this might not be possible for your scenario, therefore I
will suggest following workaround instead; however, please note this is
undocumented and unsupported.

When you use a local web site to test the ASP.NET configuration function,
you will notice that the url is in format such as:

http://localhost:21654/asp.netwebadm...cationPhysical
Path=c:\inetpub\wwwroot\TestingAspnetConfig\&appli cationUrl=/TestingAspnetCo
nfig

If you use TCPView (from www.sysinternals.com) to view get the process who
is opening the port 21654, you will notice it's served by following command
line:

"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Web Dev.WebServer.EXE"
/port:21654
/path:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.5072 7\asp.netwebadminfiles"
/vpath:"/asp.netwebadminfiles"

Which means the built-in web server is serving a web site from
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp .netwebadminfiles"; and
it accepts two querystring "applicationPhysicalPath" and "applicationUrl".

Since WebDev.WebServer.EXE is installed by Visual Studio 2005 instead of
..NET 2.0 Framework, we cannot use this built-in server; we could use IIS
instead: simply creating a virtual direcotry for
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp .netwebadminfiles" and
use this virtual directory to config your web site. For example, if you
configured a virtual directory named "aspnetadmin" and your web site is
located at "c:\inetpub\wwwroot\TestAspnetConfig", you could config it using
following URL on the server:

http://localhost/aspnetadmin/default...ath=c:\inetpub
\wwwroot\TestAspnetConfig\&applicationUrl=/TestAspnetConfig

Please note this tool can only be viewed using localhost.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '06 #3

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

Similar topics

9
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. ...
4
by: Pony Tsui | last post by:
I was install the starter kits CLUB, and created a CLUB WEB SITE, this application use the MemberInfo table in club.mdf to store the membership'data, but i can not find out where to define or...
0
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 ...
2
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership...
3
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is...
4
by: thomas | last post by:
Hello All, How to change the default Membership Provider during the runtime? I know I can reference any provider I want, e.g.: provider = Membership.Providers but the question is how to...
2
by: Inverse | last post by:
Would it be alright if i contact you here about a question that's been bugging me for some time to do with membership within ASP.NET 2.0, basically what i am trying to do is move away from using...
5
by: nadeaupn | last post by:
Hi, I followed the instructions contained in the articles named : Deploying ASP.Net 2.0 Web site to Production Server: Part I (URL :...
2
by: Bobby Edward | last post by:
My site is utilizing asp.net membership. It works perfect on the development machine. I copied the entire directory to the production server. Now it seems that the membership stuff is acting...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.