ClearScript icon indicating copy to clipboard operation
ClearScript copied to clipboard

WebActivator incompatibility due to native DLLs

Open drumboog opened this issue 6 years ago • 1 comments

This is related to https://github.com/Microsoft/ClearScript/issues/75

I received similar errors and after troubleshooting for several days, I found that it was the result of adding a reference to the WebActivatorEx NuGet package. WebActivatorEx iterates over all available assemblies, which caused the same issue described in the link above. I wanted to make you aware in case others have this issue or you feel it should be added to ClearScript's NuGet documentation.

The fix was to add a regular expression to the appSettings section so WebActivator would not scan the ClearScript assemblies. Something like this:

<configuration>
  <appSettings>
    <add key="webactivator:excludedFilesExpression" value="(ClearScriptV8-64.dll)|(ClearScriptV8-32.dll)" />
  </appSettings>
</configuration>

drumboog avatar Sep 05 '19 21:09 drumboog

Thanks for reporting this, @drumboog!

ClearScriptLib avatar Sep 10 '19 16:09 ClearScriptLib

Please reopen this issue if it is still relevant. ClearScript has undergone many packaging changes in order to support the new .NET runtimes and multiple platforms. Thank you!

ClearScriptLib avatar Oct 15 '22 14:10 ClearScriptLib