Got same problem on IIS 8.5.
AppDomain.CurrentDomain.BaseDirectory -> "C:\Websites\beta.lawfirm.org.ua\"
AppDomain.CurrentDomain.RelativeSearchPath -> "C:\Websites\beta.lawfirm.org.ua\bin"
- It is working on local IIS 7.5 (Windows 7)
- Before I put AssemblyResolve code I got an Exception from "at Microsoft.ClearScript.V8.V8Proxy.LoadAssembly()" and for ClearScriptV8, that sound like LoadNativeLibrary code was executed succesfully.
-
After adding AssemblyResolve, I now got an Exception from "at Microsoft.ClearScript.V8.V8Proxy.LoadNativeLibrary()" with
Cannot load V8 interface assembly. Load failure information for v8-x64.dll: C:\Websites\beta.lawfirm.org.ua\bin\v8-x64.dll: The specified module could not be found C:\Websites\beta.lawfirm.org.ua\v8-x64.dll: The specified module could not be foundI am using this code for AssemblyResolving
var rootPath = HostingEnvironment.MapPath("/Dependencies");
if (args.Name.Contains("ClearScript"))
{
return Assembly.LoadFrom(Path.Combine(rootPath, "ClearScriptV8-64.dll"));
}
As you see all libs are in Dependencies folder. While v8 is not requested to AssemblyResolver, ClearScriptV8. If I put v8 into root folder, error is the same.AppDomain.CurrentDomain.BaseDirectory -> "C:\Websites\beta.lawfirm.org.ua\"
AppDomain.CurrentDomain.RelativeSearchPath -> "C:\Websites\beta.lawfirm.org.ua\bin"