YAFLogo

Posted by: SketchySteve - Thursday, 18 June 2009 10:19:47
Hi guys, I've been pulling my hair out all day trying to get YAF working in the way I want. I have got the website code working though I want to integrate the forum into a web application so I need to convert it. After following the instructions I have now got a web application version working to the extent that I can go through the install although it bombs out with an error message as soon as it completes "There has been a serious error loading the forum. No further information is available.". I have tried setting break points in the forum control to no avail and also checked the log table in the database which is empty. As I'm unable to provide any real detail on the error I have uploaded my project here. http://www.2shared.com/file/6363642/ddb6fa67/Forum.html I would be really grateful if some one could assist me with this! Cheers Steve PS - tried using a number of web configs, have converted it to a web application, it builds fine, it creates the database fine and the forum is in the root.

Posted by: imukai - Thursday, 18 June 2009 10:26:35
I received that "There has been a serious error" immediately also. I ended up turning on errors to view the actual .NET blow-up error page. Turns out the error related to not being able to write the configuration passcode to app.config. I added it manually, and the install scripts worked. You might try enabling errors to see exactly what the problem is.. if you can't resolve it yourself, post the error page and let's take a peek.

Posted by: mddubs - Thursday, 18 June 2009 10:38:49
Maybe my tutorials will help. http://www.bunkerhollow.com/blogs/matt/archive/2008/10/27/integrate-yetanotherforum-with-your-net-site-from-source.aspx http://www.bunkerhollow.com/blogs/matt/archive/2008/12/06/working-with-yaf-source-code-from-svn-repository.aspx

Posted by: SketchySteve - Friday, 19 June 2009 02:27:31
Thanks for the help guys. I resolved the issue, I had incorrectly referenced some assemblies using the wrong name in the web.config. Had an issue with the Ajax Control Toolkit, clashing versions. Removed all Ajax Toolkit Dll's from my system, downloaded the full source for it - compliled it then refrenced the new dll. That fixed that issue. Now I've got another bug but will keep at it for a bit before getting you guys involved lol Thanks again Steve

Posted by: sheepdip - Wednesday, 24 June 2009 04:15:09
I found some instructions on converting to a web application here: http://forum.yetanotherforum.net/yaf_postst8407_How-to-createconvert-NET-Web-Project-from-NET-Website.aspx (I think the idea of making it a web site in 1.9.3 was a mistake, by the way - VS is a free download, so anyone can get it.)

Posted by: JoeOuts - Wednesday, 24 June 2009 04:56:29
There is nothing wrong with a web site project. You just use it for different reasons. Here are some of them: Need to migrate large Visual Studio .NET 2003 applications [color=red]Web Application Projects[/color] Prefer single-page code model to code-behind model [color=blue]Web Site Projects[/color] Prefer dynamic compilation and working on pages without building entire site on each page view (that is, save file and then simply refresh the page in the browser). [color=blue]Web Site Projects[/color] Need to control names of output assemblies [color=red]Web Application Projects[/color] Need to generate one assembly for each page Web Site Projects Need stand-alone classes to reference page and user control classes [color=red]Web Application Projects[/color] Need to build a Web application using multiple Web projects [color=red]Web Application Projects[/color] Need to add pre-build and post-build steps during compilation [color=red]Web Application Projects[/color] Want to open and edit any directory as a Web project without creating a project file [color=blue]Web Site Projects[/color] Here is a link to some help in converting a web site project to a web application project: [url]http://msdn.microsoft.com/en-us/library/aa983476(VS.80).aspx[/url]

Posted by: sheepdip - Wednesday, 24 June 2009 08:26:03
I don't have anything against web site projects per se. But for me, none of the purposes for Web Site projects that you quote make a compelling argument for changing YAF to this model. The reason I mention Visual Studio is because one of the developer's main reasons for YAF being a WS project is: [quote]A Website project is dynamically compiled, allowing users without Visual Studio the ability to make some small changes in the code-behind without recompilation issues. WAP's aren't. I also believe there were a few other small technical issues which escape me at present. But a large proportion of our user base doesn't have access to VS.[/quote] (I found this here: http://www.bunkerhollow.com/blogs/matt/archive/2008/12/06/working-with-yaf-source-code-from-svn-repository.aspx) I don't think this is a good reason. Sure, it saves people having to download the free version of Visual Studio, but the downside is more significant: it makes it more difficult to integrate. EDIT: I just read the next post on that blog and where the developer says: [quote]Thanks to Richards112 on the YAF forum I've found more on this issue, because WAPs aren't dynamically compiled they have issues with certain providers (Profile and Virtual Path Provider being two of them).[/quote] This may be a good reason for converting YAF to a web site.

Posted by: JoeOuts - Wednesday, 24 June 2009 09:08:43
As a web developer I can say that I find the third one in the list very helpful in building and testing apps. [quote]Prefer dynamic compilation and working on pages without building entire site on each page view (that is, save file and then simply refresh the page in the browser).[/quote] To each his own as they say.

Posted by: Mek - Wednesday, 24 June 2009 12:14:23
Agreed, its very much like marmite. You either like it or you hate it. Another major factor in why we switched is that we have a large number of users who are unable to compile. Running as a WAP for a number of years and the volume of posts in regards to making little changes in the code behind helped push us down that path. The free express editions were alot more basic and compilation was an absolute nightmare for users unexperienced with compiling code, it may not be quite as strong a case now with the newer versions of express.

Posted by: jshepler - Wednesday, 24 June 2009 12:14:25
Even in WAPs, the .aspx is still dynamically compiled. Only the code-behind is pre-compiled. You can make changes to the .aspx file, save and refresh your browser - no need to re-compile. In fact, you can edit .aspx files live on the production server in notepad and the changes will immediately take effect. YAF used to be a WAP and was changed to WSP because, at the time, VSWD Express did NOT support WAPs.

Posted by: JoeOuts - Friday, 10 July 2009 11:24:01
No mater which way it's done, someone will not be happy. To quote Conner McCloud - "There can be only one."

Posted by: Jaben - Friday, 10 July 2009 13:25:41
remember publishing a web site project is an option -- it will compile all the code-behind. Kind of a mess, but it sort of works :)