YAFLogo

fung2202
  • fung2202
  • 50.6% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
HI

I am very new to both active directory and yaf. :oops:

I have read a lot of post from your site and tried many things but still cant manage to apply active directory login...

Can anyone tell me what exactly i should do to implement the active directory...

thanks:oops:

when I try to implement AD

I got this error

System.NotSupportedException: The Active Directory membership provider does not support setting of the ApplicationName property.

Sponsor
fuzylogik
14 years ago
Hi Legends,

even i get such error can u guys help me ?

The Active Directory membership provider does not support setting of the ApplicationName property.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NotSupportedException: The Active Directory membership provider does not support setting of the ApplicationName property.

Source Error:

Line 107: this.Controls.AddAt( 0, _header );

Line 108:

Line 109: this.Controls.Add( forumControl );

Line 110:

Line 111: // add the footer control after the page...

Source File: d:\YET-ANOTHER-FORUM\App_Code\YAF\Forum.cs Line: 109

Stack Trace:

[NotSupportedException: The Active Directory membership provider does not support setting of the ApplicationName property.]

System.Web.Security.ActiveDirectoryMembershipProvider.set_ApplicationName(String value) +54

System.Web.Security.Membership.set_ApplicationName(String value) +36

YAF.Classes.Base.ForumPage.InitProviderSettings() +22

YAF.Classes.Base.ForumPage.ForumPage_Init(Object sender, EventArgs e) +81

System.Web.UI.Control.OnInit(EventArgs e) +99

System.Web.UI.UserControl.OnInit(EventArgs e) +74

System.Web.UI.Control.InitRecursive(Control namingContainer) +321

System.Web.UI.Control.AddedControl(Control control, Int32 index) +221

System.Web.UI.ControlCollection.Add(Control child) +146

YAF.Forum.Forum_Load(Object sender, EventArgs e) in d:\YET-ANOTHER-FORUM\App_Code\YAF\Forum.cs:109

System.Web.UI.Control.OnLoad(EventArgs e) +99

System.Web.UI.Control.LoadRecursive() +47

System.Web.UI.Control.LoadRecursive() +131

System.Web.UI.Control.LoadRecursive() +131

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
Bug: I'll change in the latest code. If you know how to compile YAF, just remove the call to the InitProviderSettings() function in the ForumPage.cs file and recompile.