YAFLogo

Posted by: RyeRocks - Monday, 14 March 2016 21:34:29
Hi. New to the YAF forum and software - and a bit new to web development as well, so bear with me. I've developed a site, but have not yet published it. I am looking to have a page on my website with a forum for members and was hoping to add YAF to my visual studio solution, but I'm not sure how to do it. As far as I know visual studio has a built in IIS, so the installation instructions for YAF confuse me a bit. Has anyone done this, or know what I'm talking about haha. Appreciate any advice or assistance anyone can provide, thanks.

Posted by: Zero2Cool - Tuesday, 15 March 2016 19:13:40
I believe this would be a great starting point for you. https://github.com/YAFNET/YAF.SampleWebApplication

Posted by: RyeRocks - Tuesday, 15 March 2016 20:54:40
I D/L'd the sample app, and was trying to figure out how to hook up the DB. Is there an mdf or bak file I can attach/restore to my sql server express? I haven't found the db yet to make it work.

Posted by: Zero2Cool - Wednesday, 16 March 2016 16:04:11
[quote=RyeRocks;66671]I D/L'd the sample app, and was trying to figure out how to hook up the DB. Is there an mdf or bak file I can attach/restore to my sql server express? I haven't found the db yet to make it work.[/quote] You have to create a database, then enter the the necessary values in your connection string. The connection string can be found in db.config

Posted by: RyeRocks - Wednesday, 16 March 2016 16:48:22
Ok, thanks. And where do I get the details on table names and column names? Apologies if this is documented somewhere, but I haven't seen it yet.

Posted by: Zero2Cool - Wednesday, 16 March 2016 16:49:51
[quote=RyeRocks;66676]Ok, thanks. And where do I get the details on table names and column names? Apologies if this is documented somewhere, but I haven't seen it yet.[/quote] When you navigate to your forum after you've added the connection string, you'll be put into the Install/Setup Wizard and that will create the tables for you.

Posted by: RyeRocks - Wednesday, 16 March 2016 16:51:41
Sweet. Will give it a try this afternoon.

Posted by: RyeRocks - Wednesday, 16 March 2016 19:55:37
Getting an error: Could not find stored procedure 'dbo.yaf_registry_list'. I guess the connection is working to get this far? Any thoughts? I'm running the webpage called "Default" - is that correct?