Welcome Guest Search | Active Topics | Members | Log In | Register

6 Pages<1234>»
YAF 1.9.2 (ASP.NET 2.0 Technology Preview)
jrmstuff Offline
#16 Posted : Wednesday, March 29, 2006 9:19:19 AM(UTC)

Rank: YAF Forumling

Joined: 2/4/2006(UTC)
Posts: 6
Location: Virginia

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#17 Posted : Sunday, April 02, 2006 12:01:23 AM(UTC)
Rank: YAF Forumling

Joined: 3/29/2006(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#18 Posted : Monday, April 03, 2006 10:20:22 PM(UTC)

Rank: YAF Forumling

Joined: 4/3/2006(UTC)
Posts: 1
Location: China

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Question how to change language and theme in 1.9.2??
Neven Offline
#19 Posted : Monday, April 03, 2006 11:20:59 PM(UTC)


Rank: YAF MVP

Joined: 11/25/2004(UTC)
Posts: 506
Location: Zagreb, Croatia

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#20 Posted : Tuesday, April 04, 2006 9:09:45 PM(UTC)

Rank: YAF Camper

Joined: 2/20/2006(UTC)
Posts: 13
Location: USSR, Moscow

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
My hoster does not allow me to use asp.net db.
Can there be versions for simple databases?
Deus To Vult!
vavkin Offline
#21 Posted : Wednesday, April 12, 2006 4:16:35 PM(UTC)
Rank: YAF Forumling

Joined: 2/8/2006(UTC)
Posts: 4
Location: Volgograd

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#22 Posted : Saturday, April 15, 2006 8:55:33 AM(UTC)
Rank: YAF Forumling

Joined: 4/15/2006(UTC)
Posts: 1
Location: USA

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#23 Posted : Saturday, April 15, 2006 5:05:35 PM(UTC)
Rank: YAF Forumling

Joined: 2/8/2006(UTC)
Posts: 4
Location: Volgograd

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
bhenden wrote:
To open this solution in VS2005 you need to download the Visual Studio Web Application Project.
cfishing Offline
#24 Posted : Tuesday, April 18, 2006 10:36:39 PM(UTC)
Rank: Advanced Member

Joined: 2/9/2006(UTC)
Posts: 33
Location: North Carolina, USA

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#25 Posted : Wednesday, April 19, 2006 8:03:21 AM(UTC)
Rank: YAF Forumling

Joined: 4/17/2006(UTC)
Posts: 1
Location: New Hampshire

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#26 Posted : Saturday, April 22, 2006 7:44:19 PM(UTC)

Rank: YAF Forumling

Joined: 4/22/2006(UTC)
Posts: 5
Location: Dushanbe, Tajikistan

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#27 Posted : Saturday, April 22, 2006 11:36:14 PM(UTC)

Rank: YAF Forumling

Joined: 4/22/2006(UTC)
Posts: 5
Location: Dushanbe, Tajikistan

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Never mind. I've got into the password incomplexity issue. This post http://forums.asp.net/1004774/ShowPost.aspx gave me the clue.
Skip Offline
#28 Posted : Monday, April 24, 2006 12:44:04 AM(UTC)

Rank: YAF Camper

Joined: 4/20/2006(UTC)
Posts: 10
Location: Switzerland

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#29 Posted : Monday, April 24, 2006 12:54:28 PM(UTC)
Rank: YAF Forumling

Joined: 2/8/2006(UTC)
Posts: 4
Location: Volgograd

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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 Offline
#30 Posted : Monday, April 24, 2006 2:44:41 PM(UTC)
Rank: YAF Forumling

Joined: 2/8/2006(UTC)
Posts: 4
Location: Volgograd

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I wished to write not "Solve number 2" and "problem number 2"
Users browsing this topic
Guest
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.4 RC4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.386 seconds.