Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 423913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:13:40+00:00 2026-05-12T19:13:40+00:00

I have an app that uses EF. To test my stuff I generally wrap

  • 0

I have an app that uses EF. To test my stuff I generally wrap a simple console app around my code, run, rinse repeat till I get it right… So I was pretty surprised to see a stackoverflow when I moved my code to IIS.

Right now I get this problem on IIS 7.5 (windows 7 from MSDN). I have “gigs” of memory free but the code doesn’t seem to require ‘that much’ memory and like I said – the console app run just fine.

So I’m no IIS wizard but I’m wondering if I can manually increase the stack size or bump the memory w3wp uses etc. (it’s under 200 M right now).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:13:40+00:00Added an answer on May 12, 2026 at 7:13 pm

    A stack overflow occurs when your stack size reaches the defined limit and no more elements can be placed on the stack. The default stack size in Windows is normally 1 MB and has nothing to do with the total memory available to a process (therefore looking at the memory used by w3wp.exe makes not much sense in your case).

    It is possible to increase the stack size of an executable. From a Visual Studio command prompt you can issue

    editbin /STACK:4000000 w3wp.exe
    

    to increase the stack size to 4 MB.

    However, it could also be the case that the stack overflow is caused by a problem in the code (typically an infinite recursion) which would only occur when hosted as a WCF service.

    To trace this problem down, you need to find out where the recursion occurs. If you can’t get a stack trace intensive logging will help you here.

    UPDATE

    As it seems, w3wp.exe does not use Window’s default stack size of 1 MB but uses only 256 kB (see also this knowledge base article):

    dumpbin /HEADERS c:\windows\system32\inetsrv\w3wp.exe
    

    prints:

    [...]
    OPTIONAL HEADER VALUES
    [...]
        40000 size of stack reserve
    

    A blog post suggest to patch w3wp.exe using editbin as described above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 250k
  • Answers 250k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think how I would tackle this is to create… May 13, 2026 at 9:23 am
  • Editorial Team
    Editorial Team added an answer Jeff LaMarche has done some good work with NSFetchedResultsController. Try… May 13, 2026 at 9:23 am
  • Editorial Team
    Editorial Team added an answer This depends on how you are planning to do the… May 13, 2026 at 9:23 am

Related Questions

I have an app that uses some code scripts to generate dll's at run-time
I have an app that uses subdomains for each 'account'. From what I have
I have an app that uses the python/c api and I was wondering what
I have an app that uses flatpages and other constructs that don't take a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.