Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Using ClearScript. WebApplication problem

0
0
Hi niconico49,

The ClearScript.V8 NuGet package doesn't quite work with ASP.NET projects. Please try the following:

  • In the project(s) where you added the NuGet package, delete the post-build steps that copy ClearScript's native assemblies to $(TargetDir).
  • Make sure that ClearScript's native assemblies (ClearScriptV8-32.dll, ClearScriptV8-64.dll, v8-ia32.dll, and v8-x64.dll) do not appear in your web application's output directory ("bin" by default). For some reason ASP.NET just doesn't like mixed-mode assemblies in the output directory.
  • Add ClearScript's native assemblies as content files at the root of your web application. You should be able to find them in $(SolutionDir)packages\ClearScript.V8.5.3.7.0\tools\native\[x86|amd64]. Make sure their "Copy to Output Directory" properties are set to "Do not copy".
  • Make sure that either Visual Studio 2012 or the Visual C++ Redistributable for Visual Studio 2012 is installed on your deployment machine(s).
Please let us know if this works for you. If it doesn't, please consider making an archive of your project available to us for analysis.

By the way, that dependency list for v8-ia32.dll is definitely incorrect. The command "link /dump /dependents v8-ia32.dll" provides the correct list, which is quite short: MSVCR110.dll, KERNEL32.dll, WS2_32.dll, and WINMM.dll.

Good luck!

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles



Latest Images