79159207

Date: 2024-11-05 13:04:06
Score: 0.5
Natty:
Report link

The error you’re encountering ModuleInitializeException is related to missing dependencies of the Microsoft.Identity.Web.Certificate package.

<PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.4.0" />
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="3.0.0" />
<PackageReference Include="Azure.Identity" Version="1.9.0" />
<PropertyGroup>
 <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

This setting ensures that all DLLs are copied to the output folder when building locally or in CI/CD.

Now after making the above changes I can see the DLLs in my Azure Web App.

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Antti
  • Low reputation (0.5):
Posted by: Sirra Sneha