Membership providers in dotNet 2.0

A

Allan Ebdrup

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
 
G

Garfilone

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\CONFIG\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
 
W

Walter Wang [MSFT]

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.netwebadminfiles/default.aspx?applicationPhysical
Path=c:\inetpub\wwwroot\TestingAspnetConfig\&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\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE"
/port:21654
/path:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\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.aspx?applicationPhysicalPath=c:\inetpub
\wwwroot\TestAspnetConfig\&applicationUrl=/TestAspnetConfig

Please note this tool can only be viewed using localhost.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top