0

I am working on an asp.net website. I have large amounts of data (around 20 millions) and need to cache them in order to query and display data faster in my website. I am using threads to do it but after visiting some pages on my local machine I get this error: Unhandled .net framework exception w3wp.exe

How can I avoid this error or what are things I need to check?

1
  • 1
    Find the exception message in Event Viewer. This screenshot shows nothing that can be used to determine the problem. Commented Feb 22, 2013 at 14:31

1 Answer 1

1

Try this:

Change the unhandled exception policy back to the default behavior that occurs in the .NET Framework 1.1 and in the .NET Framework 1.0.

Note We do not recommend that you change the default behavior. If you ignore exceptions, the application may leak resources and abandon locks.

To enable this default behavior, add the following code to the Aspnet.config file that is located in the following folder:

%WINDIR%\Microsoft.NET\Framework\v2.0.50727

<configuration>
    <runtime>
        <legacyUnhandledExceptionPolicy enabled="true" />
    </runtime>
</configuration>

Took from here

(Or) Try using Debug Diagnostic Tool to resolve your issue. Here is the link:-

Tool for diagnosing memory leaks in .NET (ASP.NET Application)

Also I found a nice article about memory leaks, go through this article and see that if there is something wrong with your code:-

http://msdn.microsoft.com/en-us/magazine/cc163491.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.