【问题标题】:How to change IIS application pool from x64 to x86如何将 IIS 应用程序池从 x64 更改为 x86
【发布时间】:2011-09-16 10:41:51
【问题描述】:

我害怕在运行 Web 应用程序时看到错误 Could not load file or assembly 'Interop.hMailServer' or one of its dependencies. Access is denied.。问题是我在 64 位运行 32 位 Web 应用程序。好吧,Visual Studio 允许将构建选项更改为 32/64,但我只有一个带有源文件的 Web 项目,要由 Google 小时一起重新编译我发现这个 http://dailydotnettips.com/2011/07/03/could-not-load-file-or-assembly-presentationcore-or-one-of-its-dependencies-an-attempt-was-made-to-load-a-program-with-an-incorrect-format-a-solution/ 希望它对我有帮助。但我正在使用 Windows 2003 服务器。谁能告诉我如何将应用程序转换为 64 位运行?

【问题讨论】:

    标签: asp.net application-pool


    【解决方案1】:

    必须在众多 x64 '03 机器上运行它以支持旧组件。

    Run x86 bit applications on x64 - Documentation

    开始 - 运行 - 导航到:

    %systemdrive%\Inetpub\AdminScripts

    运行此语句:

    cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 1

    编辑 2 我希望这会有所帮助。

    我浏览了一些旧文档,发现我之前成功使用过的语法:

    cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

    另外,记得在完成时注册 IIS(在您的 .NET 文件夹中运行)

    编辑 3

    开始-运行-输入以下内容:

    %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

    无需重复 - 之后也允许在 IIS 中使用 .aspx 扩展名。

    【讨论】:

    • 在运行上述代码时出现错误Expected end of statement,错误代码为800A0401
    • 字符 25 处没有错误。请在此处查看stackoverflow.com/questions/7443775/…
    • 但错误显示在 char 25 处,即代码结尾处 adsutil.vbs 并且错误是 Expected end of statement
    • 抱歉,我无法提供更多帮助,但请查看我的编辑 2:它对我来说非常有效。
    • 如何注册 IIS。如何执行任务aspnet_regiis.exe -i
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多