Welcome Guest! To enable all features please
Login or Register.
My website is using Asp.Net Membership control.
I have successful integrated the forum in my website.
When I login from the main site and I open the default page in the ~/board1 folder YAF is recognising the user logged in.
The problem I have is that when I try to open the admin link as follow:
I am getting the follow:
Server Error in '/' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[NullReferenceException: Object reference not set to an instance of an object.]
YAF.Pages.Admin.admin.Page_Load(Object sender, EventArgs e) +504
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063
The same link from the Sample YAF application is working.
Do I miss anything?
Ok... I gave up to integrate YAF as just a subdirectory in my main website as the YAF Sample application.
The solution is to run YAF as stand alone application as advised by YAF people.
I tried to integrate the same way in a subfolder and had the same problem. The problem was that I had forgot to set id and runat="server" on the head tag in my own masterpage, like this:
<head id="YafHead" runat="server">
[copy custom yaf meta-tags from original default.aspx]
I saw you already moved your forum outside your website, but perhaps it will help someone else anyhow.
Thank you Markus.... at least I know it now if I need to install in this architecture
- 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.