views:

30

answers:

2

My ASP.NET asserts aren't firing. Build configuration is debug. what gives?

EDIT: They are firing and silently hanging my website (exiting the thread).

+1  A: 

I believe you probably lack this:

<system.diagnostics>
   <assert assertuienabled="true" />
</system.diagnostics>

in your web.config.

x0n
is there a way to make them more intrusive (not just log to output, like actually get in my face)
Dustin Getz
A: 

Are you using a separate server for your development ? Because an Assert will trigger a modal message box on your server which will hang your website until the message box is closed.

Locksfree
VS is running on the same host as the server. But I see no box.
Dustin Getz