This project has moved. For the latest updates, please go here.

IIS Express is OK . But in Local IIS error: " Can not load assembly V8 interface ... " . Why ?

Jan 16, 2014 at 8:20 AM
Edited Jan 16, 2014 at 9:05 AM
BundleTranform is not working with JavaScriptEngineSwitcher.V8 on Local IIS

IIS Express 8 ======== > OK
IIS 7.5 (Win 7) ======= > Error

Why?

By way of testing , I created a simple project in Visual .

1 ) Added new " Web Application " Net 4.5
2 ) Added the " BundleTransformer.Less " package
3 ) Added the " JavaScriptEngineSwitcher.V8 " package
4 ) I created a file . " Less" with a red background in Content Folder .
5 ) the Configu BundleTransform to use V8
6 ) And follow the example provided by BundleTranform to add the file " teste.less " for minification
7 ) Build project using IIS Express

And everything is working perfectly!

Now build the project using IIS 7.5 native

Example :
http://localhost/myproject/

And is showing the error mentioned :

" Can not load assembly V8 interface ; VERIFY The Following files that are installed with your application : ClearScriptV8 - 32.dll , 64.dll ClearScriptV8 - v8 - v8 ia32.dll - x64.dll "

Anyone have any idea why? Associated with some setting in IIS ?

The problem is that the same mistake is going to publish the test on the web server . I resolve the problem locally run on IIS Express , but on the official server has no way ! So if you 're missing some setting in IIS 7.5 ... it must also be done on the server .

Follow the download test project to analyze :
http://www.4shared.com/zip/wGIkbg1Fce/BasicTransform.html
Coordinator
Jan 16, 2014 at 12:16 PM
Hello, Netdany!

Check the contents of directories: \bin\ClearScript.V8 and \ClearScript.V8.

In one of these directories should be the following assemblies: ClearScriptV8-32.dll, ClearScriptV8-64.dll, v8-ia32.dll and v8-x64.dll.
Jan 16, 2014 at 12:35 PM
Edited Jan 16, 2014 at 12:36 PM
Yes directories and dll exist.

1) There is a directory in the root ClearScript.V8 ... created by the package.

2) And the same directory inside the bin folder ... that is generated after the build.

Structure example:

[ ] App_Data
[ ] App_Start
[ ] bin
=> [ ] ClearScript.V8
          * ClearScriptV8-32.dll 
          * ClearScriptV8-64.dll 
          * v8-ia32.dll 
          * v8-x64.dll  

* ClearScript.dll
* JavascriptEngineSwitcher.Core.ddl 
* JavascriptEngineSwitcher.V8.dll 
[ ] .....
[ ] ClearScript.V8
   * ClearScriptV8-32.dll
   * ClearScriptV8-64.dll 
   * v8-ia32.dll 
   * v8-x64.dll
[ ] Content
[ ] Controllers
[ ] Models
[ ] Scripts
[ ] Views
...
Coordinator
Jan 16, 2014 at 12:41 PM
Then try to install the Visual C++ Redistributable for Visual Studio 2012 (http://www.microsoft.com/en-us/download/details.aspx?id=30679).
Jan 16, 2014 at 1:32 PM
I installed the above file, rebooted the PC and problem persists.

I have already had laying around here installed, Visual Studio 2013.

Remembering that when I access the site with IIS Express is transforming the files correctly.

The error only occurs with the Local IIS and server (smarterasp.net) too.

Any idea, what can this missing?
Coordinator
Jan 16, 2014 at 1:44 PM
No ideas, because I have everything worked correctly under IIS 7.5, and now works under IIS 8.0.

You have something wrong with settings. I recommend you to make from scratch the test project.
Coordinator
Jan 17, 2014 at 5:47 AM
Looked again at your URL:

http://localhost/myproject/

And I thought that you could not configure myproject as an application in IIS.
Jan 17, 2014 at 7:11 AM
Edited Jan 17, 2014 at 7:14 AM
Hi, thanks for the feedback!

Yes, "myproject" was created as an application in IIS
Image

Following your suggestion, I started all over again and the error persist.

https://clearscriptdany.codeplex.com/SourceControl/latest

See the project. It is extremely simple. Any other ideas?

Note: The project is working correctly with the engine "MSIE". The problem only occurs with ClearScript.V8

Unfortunately "Msie" is very slow compared to the V8

Thank you for your attention!
Coordinator
Jan 17, 2014 at 7:21 AM
Edited Jan 17, 2014 at 7:23 AM
Unfortunately "Msie" is very slow compared to the V8
Install a Internet Explorer 11 and switch JavaScriptEngineSwitcher.Msie v1.1.0 to the ChakraJsRt mode:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    ...
    <jsEngineSwitcher xmlns="http://tempuri.org/JavaScriptEngineSwitcher.Configuration.xsd">
        ...
        <msie engineMode="ChakraJsRt" />
    </jsEngineSwitcher>
    ...
</configuration>
Then it will be a fair comparison.
Jan 17, 2014 at 9:24 AM
Ok, Thanks for the suggestion! :)
Coordinator
Jan 17, 2014 at 1:54 PM
Jan 18, 2014 at 1:28 PM
Mysteriously, it worked in version 1.1.0 after I installed " Internet Information Services ( IIS ) 7 Manager "

http://www.microsoft.com/en-us/download/details.aspx?id=2299

I have no idea , that 's because ...

Already version 1.1.1 is also running, but has an error in some projects :
...
"System.IO.FileLoadException: Could not load file or assembly 'ClearScriptV8-32.dll' or one of its dependencies. Access is denied. "
...

However when I publish the project on an online server , nothing works .

In summary :

1 ) Server Online (Windows Server 2012, Net 4.5 and Full Trust):

Version 1.1.0 : ( ... ) " Can not load assembly V8 interface "
Version 1.1.1 : ( ... ) " Access is denied " . ( For all attempts . For all sites , even for new)

2 ) Locally , with Local IIS ( 7.5 )

Version 1.1.0 : OK , after " Internet Information Services ( IIS ) 7 Manager "
Version 1.1.1 : OK and " Access is denied " in project " Teste "


Note : " Access is denied " , I tried to clean everything: NET temporary files folder , bin and etc. . . Deleted package, reinstalled . Clean + Rebuild . But nothing worked ...

Another mystery .

Note:
<msie engineMode="ChakraJsRt" />

Also does not work on online server . I think it's because they do not have Explorer 11 ( ? ) .
Coordinator
Jan 18, 2014 at 3:27 PM
You have problems setting up rights. Re-create your site from scratch.
Dec 2, 2014 at 2:19 AM
I updated to the latest version JavaScript Engine Switcher for .Net and then solve my problem! :)