Hi Tdar,
Welcome to ASPNET newsgroup.
From your description ,you're trying to use the
ActiveDirectory MembershipProvi der to do formsauthentica tion through
Activedirectory . Howevere you're getting errro at the runtime.
As for the exception, are you getting it when you call the
System.Web.Secu rity.Membership .ValidateUser method ? If so that did be
something incorrect with ADMembership Provider's configuration. Anyway,
please confirm that you're using the latest ASP.NET 2.0(.NET FRAMEWORK 2.0)
environement, at least beta2 or Auguest CTP ?
Then, from the error info you provided, it seems that the problem is focus
on the conneciton string attribute of the
<add name="MyADMembe rshipProvider"
element. Have you checked that your connectionStrin g "ADConnectionSt ring"
is set correctly in the web.config?
Also, you can change it to another name then run again to see whether the
problem is with the incorrect name or the connectionStrin g itself.
If it is related to the connectionStrin g itself, you can try checking
whether the ADSI conneciton string is correct. You can try do some adsi
querty in an console app to see whether it works.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Reply-To: "Tdar" <Td**@noemail.n ospam>
| From: "Tdar" <Td**@noemail.n ospam>
| Subject: Forms Authentication with Active Directory LDAP Problem
| Date: Thu, 29 Sep 2005 22:02:04 -0400
| Lines: 43
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| X-Antivirus: avast! (VPS 0539-2, 09/29/2005), Outbound message
| X-Antivirus-Status: Clean
| Message-ID: <Os************ **@TK2MSFTNGP14 .phx.gbl>
| Newsgroups:
microsoft.publi c.dotnet.framew ork.aspnet,micr osoft.public.do tnet.framework. a
spnet.security
| NNTP-Posting-Host: 11-95.35-65.tampabay.res .rr.com 65.35.95.11
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet.secu rity:6714
microsoft.publi c.dotnet.framew ork.aspnet:1281 53
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Sorry for the dup post but looking for a response and this is being
posted
| under my MSDN
| managed newsgroups handle and in a different newsgroup
|
| Hi,
| As I said in the past post I am using this Article
|
http://msdn.microsoft.com/security/d...en-us/dnpag2/h
tml/paght000026.asp
|
| I belive i have everthing all set but I get this error when trying to log
| into the site.
|
| How do I correct this problem:
|
| Server Error in '/' Application.
|
----------------------------------------------------------------------------
----
| Configuration Error
| Description: An error occurred during the processing of a configuration
file
| required to service this request. Please review the specific error details
| below and modify your configuration file appropriately.
| Parser Error Message: The container specified in the connection string
does
| not exist.
| Source Error:
|
|
| Line 40: <membership defaultProvider ="MyADMembershi pProvider">
| Line 41: <providers>
| Line 42: <add name="MyADMembe rshipProvider"
| type="System.We b.Security.Acti veDirectoryMemb ershipProvider, System.Web,
| Version=2.0.0.0 , culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
| connectionStrin gName="ADConnec tionString"
| connectionUsern ame="silver1\ad ministrator"
| connectionPassw ord="THEPASSWOR D"/>
| Line 43: </providers>
| Line 44: </membership>
|
| Source File: E:\Webs\Silverq ueen\WWW\web.co nfig Line: 42
|
----------------------------------------------------------------------------
----
| Version Information: Microsoft .NET Framework Version:2.0.502 15.44;
ASP.NET
| Version:2.0.502 15.44
|
|
|
|
|