Forum


HomeHomePremiumPremiumDevelopmentDevelopmentDebug and Packaging problem with module  Debug and Packaging problem with module
Previous
 
Next
New Post
6/3/2014 8:52 AM
 

I have a module I've been converting to DNN7 from DNN4, and from VB to C#. It's a multi-part module, with some components shared between the parts.

There are a few strange things that have been happening. First off the old VB would not work when recompiled until I manually build the .designer files and moved some declarations. I used SharpDevelop to convert each to C#, and have done some restructuring to prepare for more DNN7 "like" behavior. So far so good, I have the module with both components working fine locally. I haven't tackled the "fancier" stuff like iPortable or iSearchable yet, just trying to get all the views and links working, with some basic CRUD operations.

Now comes the really weird part. I've been converting a page at a time, and all the various list views and cross links work fine. I converted a pair of view and edit pages, but I cannot step through them in the debugger. I can put a breakpoint in the DAL and hit that, which is called from the view or edit page, but I never hit a breakpoint in ascx.cs itself. I can hit them in the first pages I converted, but not the recent additions. The pages in both packages work fine LOCALLY, and when I run the install package wizard on the production site it works fine too. All the list pages in the first package work fine, the 2nd package doesn't work. The detail view/edit pages (the ones that won't debug) display an error that the ascx.cs is not found (which is true, it's not in the installer, but neither are the pages that work).

I'm totally baffled as to how to proceed. I've done cleans, builds, rebuilds, looked manually at the project file to compare the working and non-working pages, etc. It seems like both a DNN packaging problem AND a build problem, but I can't explain why it works locally just fine if it's a build problem.

 
New Post
6/3/2014 2:55 PM
 

Keith,

It's hard for me to guess the problem without looking at the code.  

But the behavior you describe sounds like the module that's not working may be referencing the code-behind as a codefile instead of codebehind (look at the declaration on the ascx).  This would explain why it doesn't work when you deploy just the ascx, but it works locally.  It would also explain why, if you attached a debugger to the process, your code behind doesn't break unless you call a DAL function which is in the assembly.

Anyway, that's my guess.  Let me know how far off I am!

 
New Post
6/4/2014 6:54 AM
 

That was it! Sure enough, no matter how long I looked at it I didn't see it. The detailed view/edit were generated by DNNKickStart, and had the codefile directive instead of all the others with codebehind. Changing that fixed both the debug and packaging problems! Thanks much.

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentDebug and Packaging problem with module  Debug and Packaging problem with module



Try FREE
30 days money back guaranteed