Forum Discussion

harshbodhi's avatar
harshbodhi
Copper Contributor
Apr 16, 2024

Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll installed by Visual studio 2022 has issue

I am using VS2022 community with latest update 17.9.6. I installed the component "Windows communication foundation" from VS installer. After it is installed, windows security reports this dll as suspicious and gives error "windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly" when I ran my WCF application (which opens a service host).

 

I debugged it further and noticed that machine.config is added with below:

 

 

  <commonBehaviors>
  <endpointBehaviors>
  <Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior/>
  </endpointBehaviors>
  <serviceBehaviors>
  <Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior/>
  </serviceBehaviors>
  </commonBehaviors>

 

 

I then checked the digital signature associated to this dll (in GAC). I see that the certificate validity is no more valid.

 

Now questions here are:

1) Can someone confirm if validity of the certificate is the reason of error "windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly"?

2) If yes, how do we get new version of this dll with valid signature?

 

 

NOTE: 

I am using windows 11 home with latest updates.

No RepliesBe the first to reply

Resources