.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Sharepoint 2010 Custom Membership Provider

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :SharePoint
 

Hi,

I'm trying to create a site with fba using my own memebership and role provider.
The problem i have is when i am creating the sitecollection from the central administration, my web app has windows and fba authenticacton turned od, in the membership provider and role mananer i put my own providers. When i am creating the sitecollection for that web app in the administrator textbox is not finding the windows user... I don't understand why...
My web application authorization is windows with FBA turn on. If i turn off the fba authentication in the web app, the windows user is working as the administration....
I don't understand why is happening this..

 

UpDate: I checked the eventviewer and i have this error when i want to put the windows user:

An exception occurred in Forms Auth claim provider when calling SPClaimProvider.FillResolve(): The configuration section cannot contain a CDATA or text element. (E:\inetpub\wwwroot\wss\VirtualDirectories\48079\web.config line 457).

This line on the web.config is where i have my membership provider:

 <add name="LMSMemberShipProvider" type="Company.LMS.LiveMembershipProvider, Company.LMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=464df6932833bbb2" applicationName="/"/>

 

Th


View Complete Post


More Related Resource Links

Custom Login Page , with custom membership provider for sharepoint 2010

  

Dear All,

I am new to sharepoint, i am developing a custom application on sharepoint 2010. i need to create a custom login page in sharepoint 2010 with a custom membership provider which will authenticate against a 3rd party web service. 

Can anybody guide me with the steps i need to do for this. do i need to write a custom claims provider for this or is it enough if i write a custom authentication provider and use it for my login page which we do for asp.net.

i am confused about these. 

thanks in advanace 

UB


Custom Login Page , with custom membership provider for sharepoint 2010

  

Dear All,

I am new to sharepoint, i am developing a custom application on sharepoint 2010. i need to create a custom login page in sharepoint 2010 with a custom membership provider which will authenticate against a 3rd party web service. 

Can anybody guide me with the steps i need to do for this. do i need to write a custom claims provider for this or is it enough if i write a custom authentication provider and use it for my login page which we do for asp.net.

i am confused about these. 

thanks in advanace 

UB


problem using custom membership provider in sharepoint 2010, please help!

  

hi,

My company developed a custom membership provider using .net framework 4 which causes the problem. As you know, all web application in sharepoint 2010 is running on .NET framework 2, so when a web application is configured to use our .net 4 custom membership provider, .NET CLR version 2 is loaded to run the web application but our membership provider assembly binds to .NET CLR version 4. So it is not surprising to see the following exception:

Could not load file or assembly '[our membership provider assembly]' or one of its dependencies.This assembly is built by a runtime newer than the currently loaded runtime andcannot be loaded.

Logically, there are two ways to solve this problem, but neither of these ways actually works.

1. Change the application pool under which the web application runs to use .NET 4 rather .NET 2. But this causes a lot of web.config exceptions. I don't quit understand those config exceptions because in asp.net it's framework backwards compatible.

2. Redirect our membership provider assembly to be executed under .net framework 2. But this way also doesn't work because if our membership provider assembly uses some classes available only in .net framework 4, that part of code has no way to be executed.

Can you give

Can i reuse MOSS custom membership provider in SPS 2010

  

I have a MOSS 2007 site which uses the fba  with ustom membership provider. and now i want to reuse that membership provider in the new SPS 2010 claims based authentication which supports FBA.

Here, my question is  can i reuse the DLL which created the custom membership provider and deploy ti in the new sps 2010 environwemt?

will that suffice? i will  deploy the dll in new sps 2010 central admin web.config and sts toen service webconfig and my custom web appln's web.config. wil  tyhat enoughto up& runnning the new web appln with FBA enabled?

i am validating the users against a web service in teh MOSS envmnt.

Can anybody help me the right appraoch with links/resources.

 

 

 

 


PrasadWT PrasadWT

How to deploy custom membership provider dll in STS web config in SPS 2010

  

i am having a custom membership provider dll which i want to deploy in the STS webconfig file in sps 2010. i donno how to deploy it. since sts webconfig doesnt have any <system.web>, <sharepoint> entries and where shoudl i add these? will that suffice to deploy my custom membership provioder assembly? also  i am NOT  using any oob membershi p providers. am using a CUSTOM PROVIDER.  can anyone help by what are the steps and where & wher to add those entries.  below one isused for  aspnetsqlmembership provider.                       

can i use the same pattern with changes in the name of the assembly withmy  custom provider will work for me/

<system.web>
  <membership>   <providers> <memberships>  </membership> ....

any sample code with the sts web.config format /src code will be helpful

 thanks

 


Custom Role Provider Issue In Sharepoint 2010

  

Hi,

I have? migrated my existing wsp solution that contains working custom FBA membership and role providers to Sharepoint 2010. As stated in several migration or custom membership provider articles that I fround in Net for Sharepoint 2010, I followed the steps below:

  • Created my FBA login page under _layouts, I inherited it from FormsSignInPage.
  • Set authentication of the web application to Claims
  • Enabled forms based authentication for the application and set my custom provider names.
  • Added provider names to not only my application's web.config but also to central application web.config and securitytoken web service's web.config (which is located in [14 hive]\WebServices\Securitytoken).

The current issue I am having is as follows:

  • When user types in username and password and presses the login button in the FBA login page, yellow "screen of death" :) is displayed indicating: "The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentati

How to deploy custom membership provider dll in STS web config in SPS 2010

  

i am having a custom membership provider dll which i want to deploy in the STS webconfig file in sps 2010. i donno how to deploy it. since sts webconfig doesnt have any <system.web>, <sharepoint> entries and where shoudl i add these? will that suffice to deploy my custom membership provioder assembly? also  i am NOT  using any oob membershi p providers. am using a CUSTOM PROVIDER.  can anyone help by what are the steps and where & wher to add those entries.  below one isused for  aspnetsqlmembership provider.                       

can i use the same pattern with changes in the name of the assembly withmy  custom provider will work for me/

<system.web>
  <membership>   <providers> <memberships>  </membership> ....

any sample code with the sts web.config format /src code will be helpful

 thanks

 


Unable to search Custom User Property Created in User Profiles in SharePoint 2010

  

Hi ,

I have created a custom user property,and created metadata property and added mapping to it, still i m not able to Search in People,Please advise


Implementing a custom Membership Provider vs. using aspnet_Profile table - Which should I do?

  

I wanted to expand the amount of information that is associated with each user(MembershipUser) in the ASPNETDB.MDF database file. Adding columns like FirstName, LastName, etc. So I began implementing my own custom Membership Provider. I created a derived MembershipUser class with the extra private variables that I wanted each MembershipUser record to store. Its basically done. Almost after I did this I stumbled across the columns in the ASPNETDB.MDF->aspnet_Profile table called "PropertyNames" and "PropertyValuesString".  Could I have simply used these two columns to accomplish what I was attempting to do or are these columns for global application configuration settings?  

Is the aspnet_Profile table purpose to store expanded/related information about users such as personal information? Or is it for something else? Thanks.


Quick Note: Create Custom List Definitions in SharePoint 2010

  
In this exercise, you create a custom list definition in Microsoft SharePoint 2010 and then create an event receiver that is triggered when the list is used.

Walkthrough: Writing a Claims Provider in SharePoint 2010

  
By using claims authentication, you can assign rights based on claims without knowing who a user is, or how they are authenticated. You have to know only the attributes of the user.

Sample: SharePoint 2010 Claims Provider

  
Download a code sample that shows how to write a claims provider in SharePoint 2010 to augment claims and provide name resolution.

Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverlight 3

  
Learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Video: Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverli

  
Watch the video that accompanies the MSDN article and learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Quick Note: Create Custom Content Types in SharePoint 2010

  
Learn how to create a custom content type. Then you add two fields to the content type: a new text field and a field that already exists in web site.

Quick Note: Create Lists with Custom Content Types in SharePoint 2010

  
Learn how to create a list in SharePoint Server 2010 and associate it with a new content type. Next, you disassociate the list from the content type and then delete the list.

Video: SharePoint 2010: Creating Custom Service Applications

  
Do you need more than the services provided by SharePoint? In this advanced session targeted at high-end developers, you will learn how to create a custom SharePoint service. (Length: 36:31)
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend