|
|
 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
|
|
|
 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.
|
|
|
 Rank: YAF Forumling

Joined: 4/4/2006 Posts: 1 Location: China
|
 how to change language and theme in 1.9.2??
|
|
|
 Rank: YAF MVP

Joined: 11/26/2004 Posts: 509 Location: Zagreb, Croatia
|
shaweiguo wrote: 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: ... But trust me on the sunscreen!
test2005 wrote:There not bugs(in YAF)...it's either un-defined features or exceptions to expected behavior!!
|
|
|
 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! 
|
|
|
 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
|
|
|
 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!
|
|
|
 Rank: YAF Forumling
Joined: 2/9/2006 Posts: 4 Location: Volgograd
|
|
|
|
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?
|
|
|
 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.
|
|
|
 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?
|
|
|
 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.
|
|
|
 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
|
|
|
 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); }
|
|
|
 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 (5)
|