ASP.NET 2.0 event log error workaround when using network shares

By Stefan Barlow - Updated On 2/6/2020

After considerable research by our team and Microsoft, we found an un-documented issue with ASP.NET 2.0.   The issue manifests itself with tons of error messages in the event logs:

Unable to get the private bytes memory limit for the W3WP process. The
ASP.NET cache will be unable to limit its memory use, which may lead to a
process restart. Error: 0x80070005

The only support documentation we could find was related to Application Center 2000 or using IISCFG to replicate the IIS Metabase settings between sites in a load balanced cluster.  Neither of these applied in our situation, and none of the suggested workarounds actually solved the issue.

What we did find was an issue when using the "Connect As..." option for storing web site files on a network share.  It turns out that this account must be included in the IIS_WGP Group as well, plus give it "Logon as a Service" privileges.  Here is a complete list of the steps we had to take on each server to resolve the issue:

  1. aspnet_regiis –ga “Network Service”
  2. cscript metaacl.vbs IIS://Localhost/W3SVC/AppPools IIS_WPG RE
  3. Add “Connect As” account to IIS_WPG group.
  4. Allow "Connect As" accont to logon as a service.

 

About the Author

Stefan Barlow

Stefan Barlow is a DevOps Practice Manager at Amazon AWS and was previously the CTO and Co-Founder of AmeriCommerce.

Share This Article!

Become An E-Commerce Expert!

Join the thousands of entrepreneurs who receive ecommerce tips, resources, and news delivered directly to your inbox for free.

More Awesome Content


Get tips and resources for selling delivered directly to your inbox.

Resource Categories

  • E-Commerce Power Ups

    Helpful tips and tricks to help you optimize your store to "sell stuff!"

  • E-Books & Guides

    In-depth guides, whitepapers and e-books for all e-commerce entrepeneurs.

  • News & Announcements

    News about the AmeriCommerce platform, release announcements and much more.

  • Case Studies

    See how these brands helped solve their e-commerce pain points with AmeriCommerce.

  • AmeriCommerce Pro-Tips

    Flex your AmeriCommerce capabilities to bring your online store to the next level.

Comments
(
1
)


AcSupport
September 21, 2009 1:54 PM

Thanks Stefan!

Leave A Comment

AmeriCommerce Flag