473,789 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.e xe tool and have the tables created.
I've changed web.config with the following:
----
<membership defaultProvider ="CustomizedPro vider">
<providers>
<add name="Customize dProvider"
type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="ebdrup_s urvey"
enablePasswordR etrieval="false "
enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e"
requiresUniqueE mail="true"
passwordFormat= "Hashed"
maxInvalidPassw ordAttempts="5"
passwordAttempt Window="10"
applicationName ="Survey"
minRequiredPass wordLength="4"
minRequiredNona lphanumericChar acters="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 2220
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\Micr osoft.NET\Frame work\v2.0.50727 \CONFIG\machine .config:

<connectionStri ngs>
<add name="LocalSqlS erver" connectionStrin g="data
source=(local); Integrated Security=SSPI;I nitial Catalog=aspnetd b"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>

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.e xe tool and have the tables created.
I've changed web.config with the following:
----
<membership defaultProvider ="CustomizedPro vider">
<providers>
<add name="Customize dProvider"
type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="ebdrup_s urvey"
enablePasswordR etrieval="false "
enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e"
requiresUniqueE mail="true"
passwordFormat= "Hashed"
maxInvalidPassw ordAttempts="5"
passwordAttempt Window="10"
applicationName ="Survey"
minRequiredPass wordLength="4"
minRequiredNona lphanumericChar acters="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.WebServe r.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\Testin gAspnetConfig\& applicationUrl=/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\Mic rosoft.NET\Fram ework\v2.0.5072 7\WebDev.WebSer ver.EXE"
/port:21654
/path:"C:\WINDOW S\Microsoft.NET \Framework\v2.0 .50727\asp.netw ebadminfiles"
/vpath:"/asp.netwebadmin files"

Which means the built-in web server is serving a web site from
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\asp.netwebadm infiles"; and
it accepts two querystring "applicationPhy sicalPath" and "applicationUrl ".

Since WebDev.WebServe r.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\Mic rosoft.NET\Fram ework\v2.0.5072 7\asp.netwebadm infiles" and
use this virtual directory to config your web site. For example, if you
configured a virtual directory named "aspnetadmi n" and your web site is
located at "c:\inetpub\www root\TestAspnet Config", you could config it using
following URL on the server:

http://localhost/aspnetadmin/default...ath=c:\inetpub
\wwwroot\TestAs pnetConfig\&app licationUrl=/TestAspnetConfi g

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
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...
4
1515
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 configure the MemberShipProvider relative to the MemberInfo Table, it just define the connectionString in the web.config. thanks. -- Pony Tsui
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
14159
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 provider? For e.g. lets say I have a SQLMembership provider and OracleMembership provider. SQL would be my default provider. During authentication, based on the value of an additional parameter in the login screen, I need to validate against SQL or...
3
3282
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 on. I suppose that a custom provider could be used to accomplish this, is there another way?
4
7236
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 change the default one, so all those new, cool controls can start using the one I want. I can specify the provider for each of those controls, e.g.:
2
1585
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 the ASPNETDB.MDF and instead using a SQL2000 Database, and so far i have had no luck with doing such a thing... so far I've created the tables in the database using aspnet_regsql.exe and all looks correct! I am using the following connection...
5
2093
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 : http://www.c-sharpcorner.com/uploadfile/dsdaf/104012006083052am/1.aspx) Deploying ASP.NET 2 Web Site to Production Server: Part II (URL : http://www.c-sharpcorner.com/UploadFile/dsdaf/104092006022507AM/1.aspx)
2
1538
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 wierd. I can login ok. But it doesn't run the login redirect properly. Also, I wrote a simple test page that consists of this... Protected Sub Page_Load(ByVal sender As Object, ByVal e As
0
9511
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
10404
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...
1
10136
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
9016
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...
0
6765
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();...
0
5415
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
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4090
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
3
2906
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.