DNN.Blog icon indicating copy to clipboard operation
DNN.Blog copied to clipboard

Constant Exceptions from DefaultLanguage While Debugging

Open WillStrohl opened this issue 1 year ago • 2 comments

Describe the bug

I'm attempting to see if I can resolve an issue with the notification feature. However, I keep having to dismiss the following exception over and over again, without end. It seems there's a timed task that keeps executing it.

Software Versions

  • DNN: 09.11.00
  • Module: 06.05.04

To Reproduce

Steps to reproduce the behavior:

  1. Clean install of both DNN and the blog module.
  2. Make sure the site is in Debug mode.
  3. Add a page and add the blog module to the page.
  4. Add a new blog.
  5. (Optional) Create a new blog post.
  6. {Optional) Create a blog post comment.
  7. Open Visual Studio (2022) and open the Blog source code.
  8. Attach to the w3wp process, and wait.

Expected behavior

Nothing happens. It just sits there.

Actual Behavior

Every few moments, seems to be maybe less than a minute, the exception keeps occurring, preventing all other kinds of debugging and development.

Screenshots

image

Error log

No errors are logged anywhere that I can see.

Additional context

None.

WillStrohl avatar Jan 12 '24 21:01 WillStrohl

A lack of portal context usually happens when the current thread is not in a web request (i.e. from a scheduled service). I'll have a look.

donker avatar Jan 19 '25 12:01 donker

However there is a try-catch around it that purposely ignores that exception. So, in theory you should be able to adjust your debug settings to not halt on any and all exceptions.

valadas avatar Jan 19 '25 17:01 valadas