EDITBIN gives LNK1104 (cannot open file)

I am trying to increase the stack size of a 32-bit IIS using the following command

EDITBIN /STACK:1048576 w3wp.exe 

but before the next problem:

 fatal error LNK1104: cannot open file w3wp.exe 

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

+1
source share
3 answers

Understanding that you solved the problem (presumably an exception) with a workaround explicitly create-thread, the answer to your question:

The provided error ("cannot open the w3wp.exe file"), as described, is an error accessing the file or some kind. The documentation ( http://msdn.microsoft.com/en-us/library/ts7eyw4s.aspx ) lists all sorts of causes for this error, but you probably ran into one of three problems:

  • Perhaps the file is used because the process is running (make sure you stop all instances of w3wp.exe running on your system, regardless of who started the process, for example, by manually stopping all application pools).
  • Perhaps you do not have permission to edit the file because you did not run the VS “As Administrator” command line.
  • Perhaps you do not have permission to edit the file, because it belongs to "TrustedInstaller", and even the "Administrators" group does not have write access. If so, then to change the file you will need to change the owner (for example, http://helpdeskgeek.com/windows-7/windows-7-how-to-delete-files-protected-by-trustedinstaller/ )

I had to deal with all three of these issues in order to be able to actually resize the default maximum size in IIS on Windows 7.

But, as you noted, explicitly creating threads will usually be better if you CAN do this, as this will avoid manual server maintenance overhead by fixing the w3wp.exe file every time a Windows update changes it.

+7
source

I solved the problem by creating a new topic with a link to the following link.

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

0
source

I tried to upgrade my Visual Studio to LARGEADDRESSAWARE. By http://mkwec.de/2010/01/08/make-visual-studio-use-more-than-2-gig-of-memory/

Turns out I just need to run the Developer Command Prompt for Visual Studio "As an Administrator" as suggested by Tao

0
source

Source: https://habr.com/ru/post/1302141/


All Articles