Do you use Trace.Fail or set AssertUIEnabled="true" in your web.config?
  v3.0 Posted at 20/10/2010 7:56 PM by System Account
Have you ever seen dialogs raised on the server-side? These dialogs would hang the thread they were on, and hang IIS until they were dismissed. In this case, you might use Trace.Fail or set AssertUIEnabled="true" in your web.config.

See Scott's blog Preventing Dialogs on the Server-Side in ASP.NET or Trace.Fail considered Harmful

 public static void ExceptionFunc(string strException)
Figure: Never use Trace.Fail
      <assert AssertUIEnabled="true" logfilename="c:\log.txt" />
Figure: Never set AssertUIEnabled="true" in web.config
      <assert AssertUIEnabled="false" logfilename="c:\log.txt" />
Figure: Should set AssertUIEnabled="false" in web.config

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:


    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.