c sharp interview question using -'c#,asp.net'

c sharp interview question  using -'c#,asp.net'

This is an interview question I need help with.

You have the following ASP.NET code-behind class:

public partial class Page1 : Page
    private string _value;

    public Page1()
        if (DateTime.Now.Ticks % 10 == 0)
            _value = "Test";

            _value = string.Empty;      

Any time someone requests this page, the w3wp.exe process terminates unexpectedly.  

Why does this occur versus the user seeing a yellow screen of death (default ASP.NET error page)?
Why is there always an OutOfMemoryException present on the managed heap?


asked Sep 7, 2015 by rajesh
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.