System.DirectoryServices.Protocols.dll

Lukasz Zymla 0 Reputation points
2024-09-25T08:18:42.94+00:00

System.DirectoryServices.Protocols.dll

is located in two folders:

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.DirectoryServices.Protocols\v4.0_4.0.0.0__b03f5f7f11d50a3a\ System.DirectoryServices.Protocols.dll

C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices.Protocols\v4.0_5.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.Protocols.dll

But in v4.0_5.0.0.0__b03f5f7f11d50a3a dll is NOT SIGNED (doesn't have digital signatures), which cause issues when running some programs.

  • how to get certificate for v4.0_4.0.0.0__b03f5f7f11d50a3a\ System.DirectoryServices.Protocols.dll ?
  • why are there 2 versions of dll on some windows systems?

BR Lukasz

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,166 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hui Liu-MSFT 48,571 Reputation points Microsoft Vendor
    2024-09-25T12:57:12.5+00:00

    Hi,@Lukasz Zymla. Welcome to Microsoft Q&A.

    1.Prefer using the signed version (v4.0_4.0.0.0) in your application by explicitly referencing it and setting up binding redirects.

    <configuration>
    
      <runtime>
    
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    
          <dependentAssembly>
    
            <assemblyIdentity name="System.DirectoryServices.Protocols" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
    
            <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="4.0.0.0"/>
    
          </dependentAssembly>
    
        </assemblyBinding>
    
      </runtime>
    
    </configuration>
    
    

    If the unsigned version is causing problems, consider reinstalling or repairing the .NET Framework to get the correct assembly version.

    Uninstall and reinstall the appropriate version of the .NET Framework that includes the correct signed version. Ensure that all updates or patches are correctly applied.

    You can also try repairing the .NET Framework installation through Programs and Features in Windows.

    2.The different versions of System.DirectoryServices.Protocols.dll (e.g., v4.0_4.0.0.0 and v4.0_5.0.0.0) are likely the result of different .NET runtime installations.

    These DLLs are stored in the Global Assembly Cache (GAC), where .NET assemblies are shared across applications. Different versions of the same assembly can coexist in the GAC.

    The v4.0_5.0.0.0 version is unsigned could be due to an incomplete or incorrect installation of the .NET Framework, or this specific version might have been installed as part of a specific update or patch. Unsigned assemblies might cause trust or security issues, depending on how your application is configured to handle strong names.


    If the response is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.