Sharepoint FBA pack 1.0.3 [Default Zone Webpart issue]

Jun 13, 2011 at 9:56 PM

Hello,

I've got the latest version 1.0.3 install but running into the same issue described here http://sharepoint2010fba.codeplex.com/discussions/255363

In a nutshell, I've the default zone running on NTLM & Intranet on FBA. The NTLM website gives an unexpected error when any of the webparts are added.

Please let me know if I'm missing anything.

Regards,

Harish

Coordinator
Jun 14, 2011 at 12:00 AM

That should have all been fixed in 1.02. Do the user / role management features work? Do the web parts work when logged into the Intranet zone?  Can you please check your log file and post the details of the errors?

Thanks,

Chris

Jun 14, 2011 at 9:58 AM

These the following things I've checked,

1. Membership Provider is added to both the web.config's.

2. Default zone is NTLM. Intranet is FBA

3. FBA is running against SQL.

4. I'm using a domain admin account.

When I try to access my webapp running on NTLM, I see the foloowing the int he ULS logs,

 Application error when access /SitePages/Home.aspx, Error=Object reference not set to an instance of an object. 
 at Visigo.Sharepoint.FormsBasedAuthentication.Utils.GetMembershipProvider(HttpContext context)   
 at Visigo.Sharepoint.FormsBasedAuthentication.MembershipRequestWebPart.AddCreateUserControl()   
 at System.Web.UI.Control.EnsureChildControls()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   

System.NullReferenceException: Object reference not set to an instance of an object.  
 at Visigo.Sharepoint.FormsBasedAuthentication.Utils.GetMembershipProvider(HttpContext context)   
 at Visigo.Sharepoint.FormsBasedAuthentication.MembershipRequestWebPart.AddCreateUserControl()   
 at System.Web.UI.Control.EnsureChildControls()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Control.PreRenderRecursiveInternal()   
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Full logs file is located @ http://www.sendspace.com/file/urmei4

Harish

Coordinator
Jun 15, 2011 at 3:51 AM

Do the user / role management features work? (Under Site Settings)

Can you login to the Intranet zone as an FBA user? (You should still be able to do this even without the FBA Pack installed)

Thanks,

Chris

Jun 20, 2011 at 10:19 PM

I've managed to get this working by adding the connection strings under the web.config for the default zone (which is running in NTLM). I'm running into a new issue though... No matter how many times I uninstall\reinstall the solution always the "Membership Review List" gives this error, 

I've checked the following,

1. The folder FBA management exists under 14\Template\Features

2. The memership review list folder also exists.

3. Have tried stsadm and powershell to enable the feature.

Note: I had installed the old CKS for MOSS in this sever(farm) before, could that cause this issue?

Source Error:

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.


Stack Trace:

[COMException (0x8107058a): <nativehr>0x8107058a</nativehr><nativestack>owssvr.dll: (unresolved symbol, module offset=00000000001A2F48) at 0x000007FEEDF92F48
owssvr.dll: (unresolved symbol, module offset=00000000000FCC1D) at 0x000007FEEDEECC1D
owssvr.dll: (unresolved symbol, module offset=00000000000FE53D) at 0x000007FEEDEEE53D
owssvr.dll: (unresolved symbol, module offset=00000000000FE7FF) at 0x000007FEEDEEE7FF
owssvr.dll: (unresolved symbol, module offset=00000000000FEC78) at 0x000007FEEDEEEC78
owssvr.dll: (unresolved symbol, module offset=000000000008A90E) at 0x000007FEEDE7A90E
owssvr.dll: (unresolved symbol, module offset=000000000008B8B9) at 0x000007FEEDE7B8B9
owssvr.dll: (unresolved symbol, module offset=000000000008CAE7) at 0x000007FEEDE7CAE7
owssvr.dll: (unresolved symbol, module offset=000000000008CD47) at 0x000007FEEDE7CD47
owssvr.dll: (unresolved symbol, module offset=0000000000006C6C) at 0x000007FEEDDF6C6C
owssvr.dll: (unresolved symbol, module offset=000000000009D5FE) at 0x000007FEEDE8D5FE
owssvr.dll: (unresolved symbol, module offset=000000000009D8DC) at 0x000007FEEDE8D8DC
owssvr.dll: (unresolved symbol, module offset=000000000009DBD9) at 0x000007FEEDE8DBD9
mscorwks.dll: (unresolved symbol, module offset=00000000002CB717) at 0x000007FEF9C5B717
Microsoft.SharePoint.Library.ni.dll: (unresolved symbol, module offset=00000000000D8C18) at 0x000007FEEF3C8C18
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001A83CAB) at 0x000007FEF20B3CAB
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001CBB1BB) at 0x000007FEF22EB1BB
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001B5BE17) at 0x000007FEF218BE17
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001F069F0) at 0x000007FEF25369F0
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=00000000021746EB) at 0x000007FEF27A46EB
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001F0AC81) at 0x000007FEF253AC81
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001CE59FF) at 0x000007FEF23159FF
Microsoft</nativestack>Feature '69ce2076-9a2f-4c71-aedf-f4252c01de4e' for list template '100' is not installed in this farm.  The operation could not be completed.]
   Microsoft.SharePoint.Library.SPRequestInternalClass.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex) +0
   Microsoft.SharePoint.Library.SPRequest.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex) +187

[SPException: Feature '69ce2076-9a2f-4c71-aedf-f4252c01de4e' for list template '100' is not installed in this farm.  The operation could not be completed.]
   Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +27445106
   Microsoft.SharePoint.Library.SPRequest.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex) +27822691
   Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews) +283
   Microsoft.SharePoint.SPList.get_LightweightViews() +103
   Microsoft.SharePoint.WebPartPages.ListViewWebPart.EnsureListAndView(Boolean requireFullBlownViewSchema) +256
   Microsoft.SharePoint.WebControls.SPListViewWebPartPageComponent..ctor(String id, ListViewWebPart webPart) +75
   Microsoft.SharePoint.WebPartPages.ListViewWebPart.CreateWebPartPageComponent() +97
   Microsoft.SharePoint.WebPartPages.WebPart.OnInit(EventArgs e) +239
   Microsoft.SharePoint.WebPartPages.ListViewWebPart.OnInit(EventArgs e) +67
   Microsoft.SharePoint.WebPartPages.WebPartMobileAdapter.OnInit(EventArgs e) +79
   System.Web.UI.Control.InitRecursive(Control namingContainer) +11029378
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +271
   System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart) +305
   System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPart(WebPart webPart) +1930414
   System.Web.UI.WebControls.WebParts.WebPartManagerInternals.AddWebPart(WebPart webPart) +63
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart) +746
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts) +7123
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts() +146
   Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +288
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +11041550
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1674
Coordinator
Jun 21, 2011 at 12:06 AM

From the error it sounds like the list that the Membership Review list uses didn't get installed properly.  It could potentially be because of the previous CKS installation - maybe the lists are conflicting.

I'd go into Central Admin -> System Settings -> Manage Farm Solutions and remove the FBA Pack as well as any CKS solutions that exist in there.  And then redeploy the FBA Pack.

Jun 21, 2011 at 9:29 PM

I had to rebuild the farm. It worked after that. Now an another issue cropped up,

1. In the home page I add the Memebership request webpart

2. Users fills in that info.

3. After clicking on create user

In the FBA Membership request management -> I don't see the new user request.

I've confirmed the following things,

1. user has permissions to the list & the site

2. Workflow timer service is started.

3. I'm able to add manually items to the "membership review list"

4. In the Site config -> I've enabled -> Review membership requests.

Thanks for your assistance ccoulson.

Harish

Coordinator
Jun 21, 2011 at 10:26 PM

Glad to hear that you got it working.  Does the user get a Membership Pending email? If no, you probably need to look at your SharePoint email settings. If you do get the emails, check the SharePoint log file and see if there are any errors logged.  

Do all of the other web parts, management pages work properly?

Jun 23, 2011 at 5:48 PM

It turned out to be very simple, there was no sufficient permissions in the "Membership review list". Thanks for your assistance ccoulson.

Harish

Jun 28, 2011 at 6:34 PM

Hello,

i configured the FBA to my web application and deployed the pack solution successfully but i'm facing some problems in using the FBA web parts...getting this error when trying 

to add membership request or password recovery web part :

                          Error: This page contains content or formatting that is not valid. You can find more information in the affected sections

any suggestions plz 

and thnx in advance

Regards,

Coordinator
Jun 28, 2011 at 6:39 PM

I haven't seen that one before.  Can you try and add the web parts to a new page.  And if that doesn't work, maybe try changing the page layout or try using the default master page (if you're using a customized master page).  My guess is that it's conflicting with something else on the page.  Can you add other web parts successfully? Can you add the Change Password web part successfully?

Jun 28, 2011 at 7:05 PM

i changed the page layout and it worked :)

Thank u very much

Regards

Jun 29, 2011 at 2:21 AM

i have two questions plz

1.when i request a membership in my sharepoint site through membership request i found that the user's name has been added to the database in the user table despite of the user's status being pending also the "is approved" field is set to true,and there is a password 

assigned in the password field though no password was entered in the membership request form.can't understand what's going on

2-i added the membership request in a web page but the approval button is disabled then though i'm the site admin i couldn't approve the page to be viewable by other users

Any Help 

Coordinator
Jun 29, 2011 at 3:09 AM

1. The user is automatically created by the underlying CreateUserWizard control. It acts as a placeholder until the user has been approved. Once the user is approved, the user gets recreated.  If someone were able to determine the password for the user, they still would not be able to login to SharePoint as the user is not granted any permissions until the user is approved.

2. SharePoint will not let you save a page with a web part that includes validation controls, until the controls validate.  So to save the page you must fill in the fields including the captcha and then click save.  You don't have to actually create the user.

Aug 12, 2011 at 4:01 AM

Hi,

 I added membership request webpart to an application page. When the new user comes and sign up(request membership) the user is not getting any email and in the membership request list no item is added. When I add

this webpart in any site page it is creating an item in the site membership review list. But if I add a link in the login page to this site page with membership webpart new user cannot access the site page without loging in? or

 can we make this sitepage accessable.

 

Coordinator
Aug 12, 2011 at 5:11 PM

It should work.  Make sure that you have the latest version of the FBA Pack - earlier versions did have problems with anonymous application pages.  You can follow the instruction on this post for creating an anonymous application page with the FBA Pack web parts:

http://sharepoint2010fba.codeplex.com/discussions/259533

Alternatively you can add the web parts to a regular SharePoint page and turn on anonymous access for the web application.  You'll also have to enable it in the site permissions - either anonymous access for the whole site, or for lists and libraries and then you'll have to give anonymous access to the list containing your page. There's some more info here:

http://www.topsharepoint.com/enable-anonymous-access-in-sharepoint-2010

 

Aug 14, 2011 at 9:46 AM

Thank you. Its working for application pages after deploying the latest version

Aug 23, 2011 at 7:22 PM

Hi, I successfully made it to work in our qa environment but facing the same issue(anonymous application page) in the staging environment.I deployed the same wsp file, which was working fine in qa, to staging.

Coordinator
Aug 24, 2011 at 12:34 AM

Is it the same error with the email? Are you sure email is configured properly on staging? Have you checked the log files for error messages?

Aug 24, 2011 at 7:35 AM

I am getting emails for the alerts in the lists. And also if I place this membershiprequest webpart in the sitepage it is sending emails and user is created. From the application page I am getting the problem I am not getting the

membership success page instead it is redirecting to the login page when I click create user button and no email sent and member is not created.

Aug 24, 2011 at 9:23 AM

I got it working after giving anonymous access to the list and libraries to the site