Welcome Guest Search | Active Topics | Log In | Register

6 Pages <1234>»
YAF 1.9.2 (ASP.NET 2.0 Technology Preview) Options · View
jrmstuff
#16 Posted : Thursday, March 30, 2006 2:19:19 AM

Rank: YAF Forumling




Joined: 2/5/2006
Posts: 6
Location: Virginia
I tried a fresh install of v1.9.2. I kept getting the error message: could not find stored procedure dbo.aspnet_CheckSchemaVersion
Finally, I realized that I need to run aspnet_regsql on the new yaf db.

C:\WINDOWS\Microsoft.NET\Framework\<versionNumber>\aspnet_regsql.exe

pwlodarek
#17 Posted : Sunday, April 02, 2006 5:01:23 PM

Rank: YAF Forumling


Joined: 3/29/2006
Posts: 2
Institoris wrote:
When install page asks to create configuration pass, after inputting and pressing "next" button install page just reloads, and asks again to create conf pass...
What to do?


The cause:

1. The identity used by the ASP.NET engine has no permissions to write web.config file.

Code:
                        e.Cancel = true;         
                        try
                        {
                            Configuration config = WebConfigurationManager.OpenWebConfiguration("~/");
                            AppSettingsSection appSettings = config.GetSection("appSettings") as AppSettingsSection;

                            if (appSettings.Settings["configPassword"] == null)
                                appSettings.Settings.Remove("configPassword");

                            appSettings.Settings.Add("configPassword", System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text, "md5"));

                            config.Save( ConfigurationSaveMode.Modified );
                            e.Cancel = false;
                        }
                        catch
                        {
                        }

2. Exception is thrown and then swallowed by the ugly "catch{}" statement. Please do NOT swallow exceptions since it makes debug much harder.
3. Previously set "Cancel" remains true, resulting in canceling the "Next" button end effectively returning to the first page.

The solution:

The identity used by the ASP.NET must have the Read AND Write permission to the web.config AND the containing virtual directory. In the Explorer, right-click yaf folder (i.e. 'yafsrc-1.9.2'), go to Security tab, click 'Add...', search for 'ASPNET' or 'IIS_WPG' or 'IUSR_{computer_name}' depending on your configuration (IIS_WPG worked for me, but often it's ASPNET). Add it and check 'Full control'. Ensure that propagation to subdirectories (Advanced button) is checked. OK. Restart your web application - it should work fine now.
shaweiguo
#18 Posted : Tuesday, April 04, 2006 3:20:22 PM

Rank: YAF Forumling




Joined: 4/4/2006
Posts: 1
Location: China
Question how to change language and theme in 1.9.2??
Neven
#19 Posted : Tuesday, April 04, 2006 4:20:59 PM

Rank: YAF MVP



Joined: 11/26/2004
Posts: 509
Location: Zagreb, Croatia
shaweiguo wrote:
Question how to change language and theme in 1.9.2??
Isn't it
My Profile >> Edit Profile

Forum Settings
Select your preferred theme:
What language do you want to use:
Confused Question
... But trust me on the sunscreen!

test2005 wrote:
There not bugs(in YAF)...it's either un-defined features or exceptions to expected behavior!!
Institoris
#20 Posted : Wednesday, April 05, 2006 2:09:45 PM

Rank: YAF Camper



Joined: 2/21/2006
Posts: 13
Location: USSR, Moscow
My hoster does not allow me to use asp.net db.
Can there be versions for simple databases?
Deus To Vult!
vavkin
#21 Posted : Thursday, April 13, 2006 9:16:35 AM

Rank: YAF Forumling


Joined: 2/9/2006
Posts: 4
Location: Volgograd
On the page default.aspx?g=admin_edituser&u=<User number> user roles cannot be saved. In the file edituser.ascx.cs instead of the line
Roles.AddUserToRole(User.UserName, roleName)
you should type in
Roles.AddUserToRole(Name.Text, roleName)
As it's necessary to save the roles of the editable user not the current user
lizhou
#22 Posted : Sunday, April 16, 2006 1:55:33 AM

Rank: YAF Forumling


Joined: 4/16/2006
Posts: 1
Location: USA
I downloaded yafsrc-1.9.2.zip. However I can only see the web project. Is there any way I can get the project for yaf.dll? Thanks!
vavkin
#23 Posted : Sunday, April 16, 2006 10:05:35 AM

Rank: YAF Forumling


Joined: 2/9/2006
Posts: 4
Location: Volgograd
bhenden wrote:
To open this solution in VS2005 you need to download the Visual Studio Web Application Project.
cfishing
#24 Posted : Wednesday, April 19, 2006 3:36:39 PM
Rank: Advanced Member


Joined: 2/10/2006
Posts: 33
Location: North Carolina, USA
bhenden wrote:
I've been doing some more work on the migration to ASP.NET 2.0.


Great software! I am very excited about the ASP.NET 2.0 version. Do you have an estimate on when you will release a final version?
maddog39
#25 Posted : Thursday, April 20, 2006 1:03:21 AM

Rank: YAF Forumling


Joined: 4/17/2006
Posts: 1
Location: New Hampshire
LOL. This is why we have PHP based forums, to get rid of all those gay microsoft problems that everyone completely hates dealing with. Im a noob at ASP.NET as I am just learning it but ima PHP pro and this is the best ASP.NET BB system I have seen so far but PHP based boards and really beat them by a long shot.
ooptimum
#26 Posted : Sunday, April 23, 2006 12:44:19 PM

Rank: YAF Forumling



Joined: 4/22/2006
Posts: 5
Location: Dushanbe, Tajikistan
Mek wrote:
ok I must be doing something wrong, new install no upgrade, get to the third wizard screen where it asks for details like admin name, admin email etc.. fill that in and clicked next.

I then recieve error : Failed to create user: Error Status: Invalid Password.

If I can gleen anymore I'll post.


I have the exact same issue with my fresh installation. However, YAF's DB is prepared by aspnet_regsql.exe and the user, which is in fact the same for both "yafnet" and "AspNetCS" connections, has db_owner and aspnet_{Membership,Profile,Roles,Personalization}_FullAccess roles in YAF's DB. So, I am hunting for a clue. What I should look at next?
ooptimum
#27 Posted : Sunday, April 23, 2006 4:36:14 PM

Rank: YAF Forumling



Joined: 4/22/2006
Posts: 5
Location: Dushanbe, Tajikistan
Never mind. I've got into the password incomplexity issue. This post http://forums.asp.net/1004774/ShowPost.aspx gave me the clue.
Skip
#28 Posted : Monday, April 24, 2006 5:44:04 PM

Rank: YAF Camper



Joined: 4/20/2006
Posts: 10
Location: Switzerland
vavkin wrote:
On the page default.aspx?g=admin_edituser&u=<User number> user roles cannot be saved. In the file edituser.ascx.cs instead of the line
Roles.AddUserToRole(User.UserName, roleName)
you should type in
Roles.AddUserToRole(Name.Text, roleName)
As it's necessary to save the roles of the editable user not the current user


Hello.
I am having problems with the User in usergroups.
No matter what group I assigne the user to, when the user logson he or she has no acces to any forum, and in the admin user page the chckbox for the group the user is assigned to is unchecked.

I was happy to see this bit of code on the forum and thought that it might be the solution to my problem. Alas changing the code in the edituser.ascx.cs didn't work for me.

Anyone have an other idea

Thanx in advance
vavkin
#29 Posted : Tuesday, April 25, 2006 5:54:28 AM

Rank: YAF Forumling


Joined: 2/9/2006
Posts: 4
Location: Volgograd
Full change code in file edituser.ascx.cs
instead of the line
Code:

if (isChecked && !Roles.IsUserInRole(User.UserName, roleName))
  Roles.AddUserToRole(User.UserName, roleName);
else if (!isChecked && Roles.IsUserInRole(User.UserName, roleName))
  Roles.RemoveUserFromRole(User.UserName, roleName);

you should type
Code:

if (isChecked && !Roles.IsUserInRole(Name.Text, roleName))
  Roles.AddUserToRole(Name.Text, roleName);
else if (!isChecked && Roles.IsUserInRole(Name.Text, roleName))
  Roles.RemoveUserFromRole(Name.Text, roleName);

This solve problem "save roles".
Solve number 2. Users has no access to forum because users role do sync with aspnetdb. You must add line
Code:

if (!Roles.IsUserInRole(user.UserName, "Registered Forum Users"))
  Roles.AddUserToRole(user.UserName, "Registered Forum Users");

in file Security.cs in function UpdateForumUser(). For example
Code:

public static void UpdateForumUser(int nBoardID, MembershipUser user)
{
  //DB.user_setinfo(nBoardID, user);

  if (!Roles.IsUserInRole(user.UserName, "Registered Forum Users"))
    Roles.AddUserToRole(user.UserName, "Registered Forum Users");

  int nUserID = DB.user_aspnet(nBoardID, user.UserName, user.Email, user.ProviderUserKey);
  DB.user_setrole(nBoardID, user.ProviderUserKey, DBNull.Value);
  foreach (string role in Roles.GetRolesForUser(user.UserName))
  DB.user_setrole(nBoardID, user.ProviderUserKey, role);
}
vavkin
#30 Posted : Tuesday, April 25, 2006 7:44:41 AM

Rank: YAF Forumling


Joined: 2/9/2006
Posts: 4
Location: Volgograd
I wished to write not "Solve number 2" and "problem number 2"
Users browsing this topic
Guest (4)
6 Pages <1234>»
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.266 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET