This project is read-only.


Integration with SharePoint 2010


Hi I am performing an integration with SharePoint 2010.

The plan was to deploy YAF to the _layouts folder without creating a new Virtual Directory.

Following are the things that I have done:
1) Copied bin*.* from YAF folder to wss\VirtualDirectories\80\bin
2) Copied SharePointRoleSyncModule.cs to wss\VirtualDirectories\80\App_Code
3) Added configuration for YafRoleProvider, YafMembershipProvider, YafProfileProvider in wss\VirtualDirectories\80\web.config
5) Added configuration for HTTPModule & HTTPHandler in wss\VirtualDirectories\80\web.config
4) Added the necessary assembly reference, and compiler version set to .Net 3.5

I am getting this error in the ULS log Viewer (SharePoint Log)
System.NullReferenceException: Object reference not set to an instance of an object.   
 at YAF.Classes.Core.UserPageBase.InitUserAndPage()    
 at YAF.Classes.Core.UserPageBase.get_Page()    
 at YAF.Classes.Core.UserPageBase.PageValueAsInt(String field)    
 at YAF.Classes.Core.UserPageBase.get_PageUserID()    
 at ASP._layouts_yaf_default_aspx.Page_Error(Object sender, EventArgs e)    
 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)    
 at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)    
 at System.Web.UI.TemplateControl.OnError(EventArgs e)    
 at System.Web.UI.Page.HandleError(Exception e)    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
 at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
 at System.Web.UI.Page.ProcessRequest()    
 at System.Web.UI.Page.ProcessRequest(HttpContext context)    
 at ASP._layouts_yaf_default_aspx.ProcessRequest(HttpContext context)    
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Did I miss out something?

Closed Dec 28, 2016 at 4:47 PM by tha_watcha


tha_watcha wrote Jul 15, 2013 at 2:48 PM

which yaf version?

Are you shure you added all yaf related nodes to the web.config? Can you post your web.config?