Microsoft KB Archive/931415

= Error message when you try to load Office InfoPath 2007 form templates in a Web browser: &quot;Out of memory&quot; =

Article ID: 931415

Article Last Modified on 2/8/2007

-

APPLIES TO


 * Microsoft Office Forms Server 2007

-



SYMPTOMS
When you try to load Microsoft Office InfoPath 2007 form templates in a Web browser, the following error message is logged in the Application log or in the System log:

Out of memory.



CAUSE
This problem occurs if the following conditions are true:
 * The server has InfoPath Forms Services enabled.
 * The Web browser is running on an x86-based computer.
 * You have more than 100 InfoPath form templates that contain managed code.
 * There is insufficient free contiguous memory. The memory is fragmented because the managed code DLLs are loaded in random segments and because the common language runtime (CLR) does not compact large object heaps. Therefore, the system cannot allocate the required contiguous memory.



WORKAROUND
To work around this problem, you can rebase the managed code DLLs. After you do this, the DLLs are loaded into one segment of the large object heap.

To specify a base address in Microsoft Visual Studio at build time, open the Visual Studio project, click  Properties on the Project menu, select the Build section, and then click Advanced.

To pick base address ranges, create a memory dump file for the W3wp.exe process in which you will be loading the DLLs. To do this, follow these steps:
 * 1) On the Debug menu, click Attach to Process, click to select the Show processes in all sessions check box, click the W3wp.exe process under Available Processes, and then click Attach.
 * 2) On the Debug menu, click Windows, and then click Modules. You will see the address range that is being used to load the modules.

Note If rebasing is completed at post-build time, this will invalidate the strong name that the InfoPath designer applies to managed code assemblies. These assemblies have to be reset.

Alternatively, you can upgrade to an x64-based computer. An x64-based computer has more addressable memory. Therefore, you will rarely experience an out-of-memory problem.



MORE INFORMATION
For more information about rebasing, click the following Microsoft Web site:

http://msdn.microsoft.com/msdnmag/issues/06/02/CLRInsideOut/

Additional query words: IP2007 InfoPath2007



Keywords: kbexpertiseinter kbtshoot kberrmsg kbprb KB931415

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.