在主机上找不到Clearscript文件 [英] Clearscript files cannot be found on host

查看:1195
本文介绍了在主机上找不到Clearscript文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像许多其他人一样,在部署我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆