Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Thread Exception when adding Module to pageThread Exception when adding Module to page
Previous
 
Next
New Post
2/23/2008 1:59 PM
 

Hi,

I have created a very simple module with just one label that says "Hello world".  It is a C# based module. Everything compiles fine and i am able to launch the webstite at that point.  I go through the necessary steps of adding the module definition throuh the DNN admin pages and all is well.   I then create a new page and attempt to add the module to this page through the control panel using "Add new module" function at the top...nothing happens when i click "Add".  When i fire up the debugger and repeat the steps to add the module to the page, i see the error below after clicking on the "add" link:

"A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll"

 I stepped through the code and found the problem occurs in ControlPanel\IconBar.ascx.vb, in method AddModule_Click.  In particular, this line:

Response.Redirect(Request.RawUrl, True)

After some research, i changed the "True" to "False" and repeat the steps.  This time i do not see the thread exception, but still the module is not added to the page.   This DOES NOT happen for other modules that shipped with DNN.  I can add those fine.  It's just these new simple module that are exhibiting this issue.

Any thoughts on this?

Thankyou,

Mike

 

 
New Post
2/24/2008 3:14 AM
 

After changing the second parameter of Redirect to FALSE, I figured out the reason it was still not working was that my module did not extend DotNetNuke.Entities.Modules.PortalModuleBase.  I was a bit disappointed that there was no error or other notification indicating this was the problem.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Thread Exception when adding Module to pageThread Exception when adding Module to page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out