OutOfMemoryException WinHttp

Posted on 2009-05-27
Medium Priority
Last Modified: 2012-05-07
I have a Problem with WinHttp. I call a ASPX Site over WinHttp and one or two times per day I get this OutOfMemory Exception and I doesn't know why. It is a Windows 2003 Server with IIS6 and more than 2GB Memory and you can find this into the Event Log:

Event Type:       Warning
Event Source:   ASP.NET 2.0.50727.0
Event Category:    Web Event
Event ID:             1310

Event code: 3008
Event message: A configuration error has occurred.
Event ID: 1d2985b3267e46b6a7cf63ccc97b6ef7
Event sequence: 1
Event occurrence: 1
Event detail code: 0
Process information:
    Process ID: 2152
    Process name: w3wp.exe
Exception information:
    Exception type: HttpException
    Exception message: Exception of type 'System.OutOfMemoryException' was thrown.
Request information:
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
    Thread ID: 11
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
   at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

So now I hope everywhere can help me with this Problem or know this Problem.

winHttp.Option(0) = "http_requester/0.1" 
winHttp.Option(4) = 13056 
winHttp.Option(6) = false 
winHttp.Option(12) = false 
winHttp.SetTimeouts 10000, 30000, 30000, 30000 
winHttp.open "GET", url, false

Open in new window

Question by:verivox
1 Comment
LVL 29

Accepted Solution

David H.H.Lee earned 2000 total points
ID: 24554051
Hi verivox,
You may need to divide the application into different pool in IIS and try to allocate the physical RAM usage wisely inside the running server. It did help us to wipe out this issue after the configured. Hope it helps you.
Check this MSDN article for further details:

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming…
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
To export Lotus Notes to Outlook PST or Exchange and Domino Server files to Exchange Server or PST files with ease, go for Kernel for Lotus Notes to Outlook conversion tool. Through the video, you can watch the conversion process. A common user with…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question