如何将 IIS 应用程序池从 x64 更改为 x86

发布于 2024-12-04 16:09:51 字数 195 浏览 3 评论 0原文

我担心看到错误无法加载文件或程序集“Interop.hMailServer”或其依赖项之一。运行 Web 应用程序时,访问被拒绝。。问题是我正在 64 位运行 32 位 Web 应用程序。好吧,Visual Studio 允许将构建选项更改为 32/64,但我只有一个带有源文件的 Web 项目,需要由 Google 几个小时重新编译,我发现了这个

I am afraid to see the error Could not load file or assembly 'Interop.hMailServer' or one of its dependencies. Access is denied. while running a web application. The problem is I am running 32 bit web application in 64bit. Well, Visual Studio allows to change the built option to 32/64 but I just have web project with the source files to recompile by Google hours together I found this 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/ hope it helps me. But I am working on windows 2003 server. Can anybody please tell me how to convert the application to run in 64 bit?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽袖吟 2024-12-11 16:09:51

必须在许多 x64 '03 机器上运行它才能支持旧组件。

运行 x86 位x64 上的应用程序 - 文档

开始 - 运行 - 导航至:

%systemdrive%\Inetpub\AdminScripts

运行此语句:

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

EDIT 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 扩展名。

Have had to run this on numerous x64 '03 machines to support older components.

Run x86 bit applications on x64 - Documentation

Start - Run - Navigate to :

%systemdrive%\Inetpub\AdminScripts

Run this statement:

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

EDIT 2 I hope this helps.

I went through some of my old documents and found this syntax I used succesfully before:

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

Also, remember to register IIS when it completes (in your .NET folder run)

EDIT 3

Start - Run - Enter the following:

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

Without harping on - allow the .aspx extension in IIS afterwards as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文