在主机上找不到Clearscript文件 [英] Clearscript files cannot be found on host
问题描述
像许多其他人一样,在部署我的ASP.Net MVC应用程序时,我收到以下错误:
Like a lot of others I'm receiving the following error when deploying my ASP.Net MVC application:
无法加载V8界面部件;验证您的应用程序是否安装了以下文件:ClearScriptV8-32.dll,ClearScriptV8-64.dll,v8-ia32.dll,v8-x64.dll
Cannot load V8 interface assembly; verify that the following files are installed with your application: ClearScriptV8-32.dll, ClearScriptV8-64.dll, v8-ia32.dll, v8-x64.dll
Clearscript是作为努力转换较少文件的一部分而安装的,用于页面请求。
Clearscript was installed as part of an effort to transform less files on the fly for page requests.
我已经在ISS Express中本地测试了我的应用程序和ISS无妨。
I have tested my application locally in ISS Express and ISS without a hitch.
根据建议 http://clearscript3.rssing。 com / chan-14849437 / all_p12.html 我还将缺少的代码库作为资源添加到我的项目中。
As suggested here http://clearscript3.rssing.com/chan-14849437/all_p12.html I've also included the missing code libraries as resources to my project.
ClearScriptV8 -32.dll
, ClearScriptV8-64.dll
, v8-ia32.dll
v8-x64.dll
都包含在bin文件夹中的一个文件夹ClearScript.V8中。删除此文件夹无法解决问题。
ClearScriptV8-32.dll
, ClearScriptV8-64.dll
, v8-ia32.dll
, v8-x64.dll
are all included in a folder ClearScript.V8 in the bin folder. Removing this folder does not resolve the issue.
在我的智慧结束。任何帮助是赞赏。
At my wits end. Any help is appreciated.
推荐答案
原因是asp.net立即加载/ bin目录中的所有库。
我添加了以下规则来忽略Clearscript程序集,它的工作原理是
the cause is that asp.net load instantly all libraries in /bin directory. I added the following rule to ignore Clearscript assemblies, and it worked
<configuration>
<system.diagnostics>
<trace autoflush="true" />
</system.diagnostics>
<system.web>
<compilation>
<assemblies>
<remove assembly="ClearScriptV8-64" />
<remove assembly="ClearScriptV8-32" />
....
</assemblies>
</compilation>
...
这篇关于在主机上找不到Clearscript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!