首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用ClearScript.V8加载程序集或依赖项

无法使用ClearScript.V8加载程序集或依赖项
EN

Stack Overflow用户
提问于 2017-06-27 21:16:34
回答 1查看 2.9K关注 0票数 1

我和ClearScript.V8一起开始了一个项目。我正在用C#开发Windows 10 & Visual 2015。网络是IISExpress,最终将在Windows2012服务器上发布。我使用ClearScript.V8添加了包NuGet (v5.4.9)。我总是从一开始就得到下面的错误,甚至还没有初始化ClearScript (是的,它是法文的,但应该很容易理解):

不可能的充电器的最后一次组装'ClearScriptV8-32.DLL‘ou une de ClearScriptV8。可输入模块spécifiéest。 描述:一个例外,非gérée‘s’‘est produite au moment de l’eécution de la requ actuelle。电话: trace la trace la pile pour dans d‘’informations l‘’erreur et son origine dans le code。 例外: System.IO.FileNotFoundException:不可能的充电器和装配,ClearScriptV8 8-32.dll‘ou une de ClearScriptV8。可输入模块spécifiéest。 资料来源: 一个例外,非gérée‘s’‘est produite lors de l’‘exécution de la requ实际。Les信息亲属与l‘’origine和l‘es de l’en de l‘’exception identifiées en utilisant la trace la Les d‘’exception ci-dessous。 追踪德拉桩: FileNotFoundException:不可能的充电器,不可能组装,ClearScriptV8-32.dll‘ou une de se.可输入模块spécifiéest。 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,String,RuntimeAssembly locationHint,StackCrawlMark& stackMark,IntPtr pPrivHostBinder,布尔throwOnFileNotFound,布尔forIntrospection,布尔suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName,String codeBase,String,RuntimeAssembly locationHint,StackCrawlMark& stackMark,IntPtr pPrivHostBinder,Boolean,Boolean,Boolean ) +36 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,Boolean,RuntimeAssembly reqAssembly,StackCrawlMark& stackMark,IntPtr pPrivHostBinder,Boolean,Boolean,Boolean) +152 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,assemblySecurity,StackCrawlMark& stackMark,IntPtr pPrivHostBinder,Boolean ) +77 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,StackCrawlMark,StackCrawlMark& stackMark,Boolean ) +21 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName (布尔型starDirective) +38 ConfigurationErrorsException:不可能的充电器,不可能组装,ClearScriptV8-32.dll‘ou une de se.可输入模块spécifiéest。 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName (布尔型starDirective) +738 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +92 System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath,Boolean& isRefAssemblyLoaded) +290 System.Web.Compilation.BuildManager.ExecutePreAppStart() +157 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager,IApplicationHost appHost,IConfigMapPathFactory configMapPathFactory,HostingEnvironmentParameters hostingParameters,PolicyLevel policyLevel,Exception appDomainCreationException) +549 HttpException (0x80004005):“不可能的充电器和组装”ClearScriptV8 8-32.dll‘ou une de seépendances。可输入模块spécifiéest。 +10044576 System.Web.HttpRuntime.FirstRequestInit(HttpContext上下文) +95 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext上下文)+ +254 版本:微软.NET框架:4.0.30319;版本ASP.NET :4.7.2046.0

我遵循https://microsoft.github.io/ClearScript/Details/Build.html的指示(特别是第四节),所以我的bin文件夹中有文件ClearScript.dll、ClearScriptV8-32.dll、ClearScriptV8-64.dll、v8-ia32.dll和v8-x64.dll。我的根文件夹中还有ClearScriptV8-32.dll和ClearScriptV8-64.dll (带有复制到输出=不复制)。

我遗漏了什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-06-28 12:42:41

尝试将那些.dll(ClearScriptV8 8-*..dll,V8-*..dll)的所有放到根文件夹中,并确保您做了而不是bin中有副本。如果要部署到没有Visual (或Visual,但没有C++支持)的计算机上,请安装适当版本的VisualC++可再发行版(它必须与用于构建ClearScript的编译器相匹配)。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44790060

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档