wesclyburn
  • Posts: 34
  • Joined: 25/09/2004
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
  • Posts: 35
  • Joined: 06/12/2007
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
  • Posts: 892
  • Joined: 12/07/2005
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
  • #34
  •  guest
  • Rank: Guest
  • Posts: 448
  • Joined: 18/03/2003
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
  • Posts: 902
  • Joined: 07/01/2007
JohnnySlotCar wrote:

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


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.
UserPostedImage 
Vamshi
  • Posts: 4
  • Joined: 28/11/2007
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
  • #37
  •  guest
  • Rank: Guest
  • Posts: 448
  • Joined: 18/03/2003
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
  • Posts: 902
  • Joined: 07/01/2007
@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.
UserPostedImage 
book_man25
  • Posts: 21
  • Joined: 05/06/2007
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
  • Posts: 902
  • Joined: 07/01/2007
@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.
UserPostedImage 
book_man25
  • Posts: 21
  • Joined: 05/06/2007
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
  • #42
  •  guest
  • Rank: Guest
  • Posts: 448
  • Joined: 18/03/2003
But in app.config file it is not accepting <root>.Can u please help me.

<appSettings>
<add key="BoardID" value="1" />
<add key="EnableURLRewriting" value="false" />
<add key="databaseObjectQualifier" value="yaf_" />
<add key="databaseOwner" value="dbo" />
<add key="providerExceptionXML" value="ProviderExceptions.xml" />
<add key="UploadDir" value="~/upload/" />
<add key="configPassword" value="3839D765AC616C5C571CA0D13671BA3C" />
</appSettings>

Where to keep that root.

Thank you
Jaben
  • Posts: 2544
  • Joined: 09/10/2004
<appSettings>
<add key="BoardID" value="1" />
<add key="EnableURLRewriting" value="false" />
<add key="databaseObjectQualifier" value="yaf_" />
<add key="databaseOwner" value="dbo" />
<add key="providerExceptionXML" value="ProviderExceptions.xml" />
<add key="UploadDir" value="~/upload/" />
<add key="configPassword" value="3839D765AC616C5C571CA0D13671BA3C" />
<add key="root" value="~/forum" />
</appSettings>
karcom2007
  • Posts: 13
  • Joined: 07/12/2007
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
  • Posts: 2544
  • Joined: 09/10/2004
Yes, you'd need to write a custom membership provider. YAF will use any provide and has no specific method requirements.
Users browsing this topic
    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.

    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

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved