14 years ago
tejas7001 wrote:

According to zee's code i did the following

Dim sPassword As String = FormsAuthentication.HashPasswordForStoringInConfigFile(pgen.fvar(Request, "ppass"), "md5")
Dim userID As Object = yaf.DB.user_login(1, pgen.fvar(Request, "puser"), sPassword)
If Not userID Is DBNull.Value Then
Dim idName As String = String.Format("{0};{1};{2}", userID, 1, pgen.fvar(Request, "puser"))

If (Request.QueryString("ReturnUrl") <> Nothing) Then
FormsAuthentication.RedirectFromLoginPage(idName, True)
FormsAuthentication.SetAuthCookie(idName, True)
End If
End If

i am gettin the error : System.ApplicationException: Failed to get configuration from Web.config. at yaf.Config.get_configSection() at yaf.YafDBConnManager.InitConnection() at yaf.DB.ExecuteScalar(SqlCommand cmd) at yaf.DB.user_login(Object boardID, Object name, Object password) at bestprax._default1.Page_Load(Object sender, EventArgs e) in C:\whb\Sites\9231\Web\default.aspx.vb:line 100

I also added the machine key in my web.config as well as yaf's web.config :

please help me out

hai tejas7001,
what is the solution for this problem/error?
i got this error too:roll:
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button