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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Debugging DNN User Control in VS 2008Debugging DNN User Control in VS 2008
Previous
 
Next
New Post
2/20/2009 2:42 PM
 

Based on a tutorial I found online, I did the following to create a new module:

  1. Created a new, very simple web user control under "(DNN Root)\DesktopModules\MyModule" folder
  2. Wrote the source HTML/ASP.net and the code behind and compiled the page
  3. Created a new module definition in DNN website and uploaded the user control
  4. Created a new page in the DNN website
  5. Dropped this new module on this new page.

The intended functionality is working great within the live website, but I would like to debug the code-behind using standard VS2008 tools.  The way I have traditionally done it is by attaching the debugger to the w3wp.exe process running managed code (after making sure that the VS project/website is running under "debug" confuguration).  

The issue is that this is not working in this case.  The breakpoint in my code-behind never gets hit (displays that typical "symbols have not been loaded" error).  I am guessing that this is because the dynamic page that executes in the site at runtime does not use the web user control at a physical level?  I am new to DNN and do not know how to proceed.  For this simple piece it is fine, but for more complex code, I'd definitely like to be able to step through it.  Any help someone can give me would be greatly appreciated!

Thanks!

 
New Post
2/20/2009 3:45 PM
 

Hey VishalG,

Here is some background information about setting up a Web Application Project for your module. If this configuration is suitable for you - go ahead and set your module up like this and you should be able to debug normally.

Let me know how it goes!

http://weblogs.asp.net/ianrobinson/archive/2008/10/15/creating-dotnetnuke-modules-using-a-web-application-project-wap.aspx

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
2/20/2009 4:45 PM
 

Thanks Ian.  I actually did some more research and found exactly what you said.  I have created the WAP module and placed it on a page in DNN, and can debug normally without an issue.  

Now, the issue that I see is that for every single module, I am going to have to have a web application project in my DNN solution.  Our corporate website contains over 100 user controls, which means I am going to have to have over a 100 separate WAP projects in my DNN solution, correct?  Is this normal for a typical association's website?  Also, those user controls contain redirect hyperlinks/buttons etc - how would I set a hyperlink's NavigateURL in a user control when I do not even know the full page URL that's going to be automatically generated for each module?

Thanks!

 
New Post
2/21/2009 3:10 PM
 

 Hey VishalG,

A DNN Module can most certainly have more than one user control, so you can (and probably should) group them logically into projects. You could have 100 projects or you could have 1 project, just depends on how it makes sense to organize things.

The typical way to redirect from one user control to another is using NavigateURL and EditURL utilities using control keys. When you register multiple user controls with one module definition, you'll assign the controls a key (however, the default control has no key).

There is some good information here about module navigation: http://www.adefwebserver.com/DotNetNukeHELP/Misc/ModuleNavigationOptions.htm

Let me know how it goes!

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
2/25/2009 8:26 AM
 

 Thanks again, Ian.  I will look into the help link you provided, and hopefully post a solution to my own question in a couple of days.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Debugging DNN User Control in VS 2008Debugging DNN User Control in VS 2008


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