EDITBIN 给出 LNK1104(无法打开文件)

发布于 2024-12-13 07:02:26 字数 252 浏览 2 评论 0 原文

我尝试使用以下命令增加 32 位 IIS 的堆栈大小

EDITBIN /STACK:1048576 w3wp.exe

,但面临以下问题:

fatal error LNK1104: cannot open file w3wp.exe

我检查了 windows/system32/inetsrv 文件夹中是否存在 w3wp.exe。

I am trying to increase stack size of 32 bit IIS by using following command

EDITBIN /STACK:1048576 w3wp.exe

but facing following issue:

fatal error LNK1104: cannot open file w3wp.exe

I checked w3wp.exe is present in windows/system32/inetsrv folder.

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

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

发布评论

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

评论(3

对风讲故事 2024-12-20 07:02:26

了解您使用显式创建线程解决方法解决了您的问题(可能是堆栈溢出异常),这是您问题的实际答案:

提供的错误(“无法打开文件 w3wp.exe”)是,如上所述,一个文件访问错误或某种。文档 (http://msdn.microsoft.com/en-us/library/ ts7eyw4s.aspx) 列出了导致此错误的各种可能原因,但您可能会遇到以下三个问题之一:

  • 也许该文件正在使用,因为进程正在运行(请确保停止所有实例w3wp.exe 在您的系统上运行,无论是谁启动了该进程 - 例如通过手动停止所有应用程序池)。
  • 也许您没有编辑该文件的权限,因为您没有“以管理员身份”启动 VS 命令提示符。
  • 也许您没有编辑该文件的权限,因为它属于“TrustedInstaller”,甚至“Administrators”组也没有写入权限。如果是这种情况,则要修改文件,您需要更改所有者(例如 http://helpdeskgeek.com/windows-7/windows-7-how-to-delete-files-protected-by-trustedinstaller/

我必须处理所有这三个问题问题是能够实际更改 Windows 7 上 IIS 中的默认最大堆栈大小。

但正如您所指出的,如果您可以这样做,则显式线程创建通常是一个更好的主意,因为它将避免手动的服务器维护开销每次 Windows 更新修改 w3wp.exe 文件时都会对其进行修补。

Understanding that you addressed your issue (presumably a Stack Overflow Exception) with the explicitly-create-threads workaround, here's the actual answer to your question:

The error provided ("cannot open file w3wp.exe") is, as described, a file access error or some sort. The documentation (http://msdn.microsoft.com/en-us/library/ts7eyw4s.aspx) lists all sorts of possible causes for this error, but you are likely encountering one of three issues:

  • Maybe the file is in use because the process is running (make sure you stop all instances of w3wp.exe running on your system, regardless of who started the process - eg by stopping all application pools manually).
  • Maybe you do not have permissions to edit the file because you did not start the VS command prompt "As Administrator".
  • Maybe you do not have permissions to edit the file because it is owned by "TrustedInstaller", and even the "Administrators" group does not have write access. If this is the case, then to modify the file you would need to change the owner (eg http://helpdeskgeek.com/windows-7/windows-7-how-to-delete-files-protected-by-trustedinstaller/)

I had to deal with all three of these issues to be able to actually change the default max stack size in IIS on Windows 7.

But as you noted, the explicit thread creation will usually be a better idea if you CAN do this, as it will avoid the server-maintenance overhead of manually patching the w3wp.exe file every time a windows update modifies it.

孤芳又自赏 2024-12-20 07:02:26

我通过参考以下链接创建一个新线程解决了这个问题。

http ://blogs.msdn.com/b/tom/archive/2008/03/31/stack-sizes-in-iis-affects-asp-net.aspx

I solved the issue by creating a new Thread with reference of following link.

http://blogs.msdn.com/b/tom/archive/2008/03/31/stack-sizes-in-iis-affects-asp-net.aspx

南城旧梦 2024-12-20 07:02:26

我试图将我的 Visual Studio 更新为 LARGEADDRESSAWARE。根据 http: //mkwec.de/2010/01/08/make-visual-studio-use-more-than-2-gig-of-memory/

事实证明我需要简单地启动开发人员命令提示符对于 Visual Studio“以管理员身份”,按照 Tai 的建议

I was trying to update my Visual Studio to be LARGEADDRESSAWARE. As per http://mkwec.de/2010/01/08/make-visual-studio-use-more-than-2-gig-of-memory/

It turns out I needed to simply launch Developer Command Prompt for Visual Studio "As Administrator" as suggested by Tao

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