1

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).

2 Answers 2

1

I believe you probably lack this:

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

in your web.config.

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

1 Comment

is there a way to make them more intrusive (not just log to output, like actually get in my face)
0

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.

1 Comment

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

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.