OutOfMemoryException WinHttp

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

Description:
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
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: HttpException
    Exception message: Exception of type 'System.OutOfMemoryException' was thrown.
 
Request information:
    User:  
    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

OutOfMemoryException.JPG
verivoxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David H.H.LeeCommented:
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:
http://support.microsoft.com/kb/820108
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.