Microsoft Knowledge Base Email Alertz

(931415) - Describes an issue in which you may receive an error message when you try to load InfoPath 2007 form templates in a browser. A workaround is provided.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

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

Article ID: 931415 - View products that this article applies to.

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 ProjectName 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/

Properties

Article ID: 931415 - Last Review: February 8, 2007 - Revision: 2.1
APPLIES TO
  • Microsoft Office Forms Server 2007
Keywords: 
kbexpertiseinter kbtshoot kberrmsg kbprb KB931415
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate