YAFLogo

wesclyburn
17 years ago
LOL, if you're suggesting I use Google to find instances of people who don't know how to do something, I'll be here all day. Try "I can't connect to SQL Server" or "I can't put on my own pants".

I know there are pros and cons for both methods. There are also many benefits to WSPs, even for real-life, professional, high-impact web apps. And 8 out of 10 of the issues people raise with WSPs are due to a cronic unfamiliarity with aspnet_compiler.exe .

I'm using YAF in two projects now, which are WAPs. I don't want YAF to be the application. I want YAF to be a set of controls that I plop into my application (which can be a WAP if I choose, or not). YAF's current packaging makes this easy. I have its core assemblies, and I have the UI, which I can customize or throw out altogether if I wish. When I build my application into a WAP, YAF's pages are included in the build just like my own pages. YAF becomes part of my WAP.

There's no "migrating to a WAP" involved at all; just a ./forum/ directory in my app containing YAF's UI-- no different from any of the other files I'm building.

The key thing is that those who want YAF to be a WAP can build it that way right now. 100% of users can use it. If Jaben changes to a WAP model, then 40% of users can use it. Migrating from a WAP to a WSP is much more difficult.

testero
  • testero
  • 75.8% (Friendly)
  • YAF Forumling
17 years ago
I have version 1.9.1.6.

Can i upgrade it to 1.9.3 Immediately?

No need to upgrade to version 1.9.1.7 and 1.9.2 and .....?

Thank you guys for good staff

Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
17 years ago
You can upgrade directly from 1.9.1.6, remember to backup before you do.

Also remember its not a final release, so not meant for production environemnts.


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )

guest
17 years ago
I hope I don't get myself in trouble here...

I'm VERY excited about your project and looking forward to integrating YAF into some of my other .NET membership projects; what I'm wondering is how difficult it would be for me to adapt other providers - specifically Screwturn's wiki and it's member model.

Screwturn has already stated that they won't be supporting the ASPNETDB, and I know you folks use their wiki here. Has anyone on the YAF dev team looked under the hood at the wiki model? If so, any opinion on how difficult an integration would be for an intermediate level hack (like me!)??

...or am I totally off my rocker on this one?

Thanks in advance!

Ederon
  • Ederon
  • 100% (Exalted)
  • YAF Developer
17 years ago

...or am I totally off my rocker on this one?

JohnnySlotCar wrote:

Screwturn Wiki uses her own provider model. I've made my custom Screwturn Wiki user provider, it just calls membership provider configured for ASP.NET application. If you are interested in trying it or helping with it, just PM me and we'll get in touch.

Short answer - it's easy to integrate ASP.NET provider model with SC Wiki one. It's matter of few dozens lines of code.


When I post FP:Ederon in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting.
Vamshi
  • Vamshi
  • 52.4% (Neutral)
  • YAF Forumling
17 years ago
Thanks for putting 1.9.3 out there. I have been waiting!

How do you merge the ASP Profile that I already have with the YAF profile? I didn't merge anything relating to Profiles from development.config. I get an exception in YAF.Classes.Utils.YafContext:GetProfile function - can't cast ProfileCommon to YafUserProfile.

Here is a simple bug I think -

YAF.Classes.Utils.YafContext:ForumRoot function (line 786-789 context.cs). I can't see how if ( path.StartsWith( "~" ) ) will never get executed after the line at 786 which is if ( path [0] != '/' ) path = path.Insert( 0, "/" );. Also, I had to change 785 to path += YAF.Classes.Config.Root; to get my installation going.

I'm on VS2008 and .NET 3.5. And it works mostly. I have a couple of issues like the Forums not showing under a category. I will send back any bugs I find/fix.

guest
17 years ago
Hi

I downloaded YAF v1.9.3 ALPHA (Dated 12/22/2007) which is having Membership roles. It is working fine. I want to merge that into my application. In the previous YAF which does not have Membership worked fine after merging into my application when i modified the root in yafnet.config. But in the YAF v1.9.3 ALPHA it is not having yafnet.config.Can you plz tell me where to modify that.And can i merge YAF's web.config file to my applications web.config file as one application should have only one web.config file.

Thanks

Ederon
  • Ederon
  • 100% (Exalted)
  • YAF Developer
17 years ago
@ashokt4 - root tag is now in app.config IIRC


When I post FP:Ederon in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting.
book_man25
17 years ago
I have a problem when trying to add yaf to an existing website with already created membership and roles. I'm not exactly sure how to do it but what I've tried to do is add the yaf roles, membership, and profile to the exisiting web.config file. Everything works fine until I try to migrate existing users over to yaf. I then receive the following error. This is from the install process and the user doesn't exist until I add him as the admin user on the previous step. Any ideas what I might be doing wrong?

The user 'bryan' is already in role 'Administrators'.

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.Configuration.Provider.ProviderException: The user 'bryan' is already in role 'Administrators'.

Source Error:

Line 190: {

Line 191: RoleMembershipHelper.SyncRoles( PageBoardID );

Line 192: RoleMembershipHelper.SyncUsers( PageBoardID );

Line 193: }

Line 194: e.Cancel = false;

Source File: d:\wwwroot\aamro\site\forums\install\default.aspx.cs Line: 192

Stack Trace:

[ProviderException: The user 'bryan' is already in role 'Administrators'.]

System.Web.Security.SqlRoleProvider.AddUsersToRolesCore(SqlConnection conn, String usernames, String roleNames) +2238010

System.Web.Security.SqlRoleProvider.AddUsersToRoles(String[] usernames, String[] roleNames) +705

System.Web.Security.Roles.AddUserToRole(String username, String roleName) +341

YAF.Classes.Utils.RoleMembershipHelper.MigrateUsersFromDT(Int32 pageBoardID, Boolean approved, DataTable dt) +3062

YAF.Classes.Utils.RoleMembershipHelper.SyncUsers(Int32 pageBoardID) +254

YAF.Install._default.Wizard_NextButtonClick(Object sender, WizardNavigationEventArgs e) in d:\wwwroot\aamro\site\forums\install\default.aspx.cs:192

Ederon
  • Ederon
  • 100% (Exalted)
  • YAF Developer
17 years ago
@book_ma25 - look at this topic , I think it dicusses your issue. It's fixed in SVN, but I'm not sure whether it is already in latest distribution. But it's really minor change, so you might be able to apply it yourself.
When I post FP:Ederon in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting.
book_man25
17 years ago
Actually it's not a problem with the roles but rather the users. I thought it might have something to do with having multiple roles, membership, and profiles in my web.config. It seems like it's trying to add the user multiple times to the role.
guest
17 years ago
But in app.config file it is not accepting .Can u please help me.

Where to keep that root.

Thank you

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer Topic Starter
karcom2007
17 years ago
Quick question and hopefully it will help others.

I have an existing website (classic ASP) with a SQL Server DB backend for authentication. I have existing authentication sprocs and very specific user table (username/password).

To integrate YAF, will I need to build a custom Membership Provider with methods specific to what YAF might expect in a Membership Provider?

Thanks in advance for more information and direction.

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer Topic Starter
17 years ago
Yes, you'd need to write a custom membership provider. YAF will use any provide and has no specific method requirements.