Coder Social home page Coder Social logo

Comments (13)

Yvand avatar Yvand commented on August 10, 2024 1

Unfortunately something went wrong when you deployed the solution.
Don't rely on the successful deployment message, LDAPCP is not installed correctly and you need to re-install it.
Please carefully follow the steps in http://ldapcp.com/Fix-setup-issues.html to fix this.
Don't worry about potential side effects, this will clean up everything and after that you can re-install LDAPCP like if it was installed for the first time.

from ldapcp.

Yvand avatar Yvand commented on August 10, 2024 1

Aaaaahhhhh, sorry for that...
Unfortunately you need to redo all the steps in http://ldapcp.com/Fix-setup-issues.html.
But after that you also need to run this stsadm command to delete the LDAPCP persisted object:

stsadm -o deleteconfigurationobject -id 5D306A02-A262-48AC-8C44-BDB927620227

No worries about this command, it deletes only the LDAPCP persisted object.
If you want to see how this persisted object looks like, you can run this SQL command in SharePoint config database:

SELECT * FROM [13_SharePoint_Config].[dbo].[Objects] WHERE Id LIKE '5D306A02-A262-48AC-8C44-BDB927620227'

from ldapcp.

Yvand avatar Yvand commented on August 10, 2024

Do you see LDAPCP when you run this cmdlet:
Get-SPClaimProvider
Are you running your script on a server that is not running SharePoint service "Microsoft SharePoint Foundation Web Application"?

from ldapcp.

XxXMike avatar XxXMike commented on August 10, 2024

I dont see LDAPCP as a claim provider.
Microsoft Sharepoint Foundation Web Application is not showing in Central Admin, but its showing as started if I run Get-SPService | Select TypeName, Status

also, when I try to deploy the package, I get that:
if I force deployment, it will eventually say, that its deployed everywhere successfully.

XC-S-ZW00068 : Failed to load receiver assembly "ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=455f141f47bb8cc6" for feature "LDAPCP" (ID: b37e0696-f48c-47ab-aa30-834d78033ba8).: System.IO.FileNotFoundException: Could not load file or assembly 'ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=455f141f47bb8cc6' or one of its dependencies. The system cannot find the file specified. File name: 'ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=455f141f47bb8cc6'    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)    at System.Reflection.Assembly.Load(String assemblyString)    at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. XC-S-ZW00068 : Failed to load receiver assembly "ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=455f141f47bb8cc6" for feature "LDAPCP" (ID: b37e0696-f48c-47ab-aa30-834d78033ba8).: System.IO.FileNotFoundException: Could not load file or assembly 'ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=455f141f47bb8cc6' or one of its dependencies. The system cannot find the file specified. File name: 'ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=455f141f47bb8cc6'    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)    at System.Reflection.Assembly.Load(String assemblyString)    at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

from ldapcp.

XxXMike avatar XxXMike commented on August 10, 2024

I get something like that when trying to uninstall
s1

from ldapcp.

Yvand avatar Yvand commented on August 10, 2024

This is why I wrote carefully
As explained in section "Identify LDAPCP features to fix", you must first create directory "LDAPCP" and put feature files inside

from ldapcp.

XxXMike avatar XxXMike commented on August 10, 2024

I swear I did it!
ok now, it seems to be gone, I will try installing again
Get-SPFeature| ?{$_.DisplayName -like 'LDAPCP*'}| fl DisplayName, Scope, Id, RootDirectory
is not returning anything

anything else I should check to make sure its really gone, before doing it again ?

Thanks for your support.

from ldapcp.

Yvand avatar Yvand commented on August 10, 2024

No you're good, but for safety you should close and open a fresh PowerShell command line.

However, if the server where you are re-installing LDAPCP does not run "Microsoft Sharepoint Foundation Web Application", you need to manually add LDAPCP.dll in the GAC as described in section "Important - Limitations" in http://ldapcp.com/Install-LDAPCP.html

from ldapcp.

XxXMike avatar XxXMike commented on August 10, 2024

:( new error now

image

from ldapcp.

XxXMike avatar XxXMike commented on August 10, 2024

yay! its working now, merci beaucoup!

from ldapcp.

Yvand avatar Yvand commented on August 10, 2024

My pleasure :)

from ldapcp.

pscheidemann avatar pscheidemann commented on August 10, 2024

If I may suggest something else (years after): Insted of setting the ClaimProviderName-Member on the authenticationProvider, you may try:

$cp = Get-SPClaimProvider "<name goes here>"; $ap = Get-SPTrustedIdentityTokenIssuer; **Set-SPTrustedIdentityTokenIssuer -Identity $ap -ClaimProvider $cp**

This will configure the Authentication Provider using dedicated objects instead of "reference by string" and ... worked for me. Reinstalling my claimProvider unfortunately did not do the trick.

Regards!

from ldapcp.

Yvand avatar Yvand commented on August 10, 2024

Thanks @pscheidemann for this tip!
I'll test it and maybe update the install procedure to use this, it is indeed cleaner this way

from ldapcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.