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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Compiled vs Interpreted differencesCompiled vs Interpreted differences
Previous
 
Next
New Post
1/9/2007 6:54 PM
 

OK, I'm at the point of babbling to myself.

I'm running ASP.Net 2.0, DNN 4.3.5. I've got some C# code written in the full-on development environment that works just fine - if a user logs in and is missing some information I require in the profile, I use AddModuleMessage(this, "Need more data", ModuleMessage.ModuleMessageType.YellowWarning). I also call a display routine to display whatever is there. When the info is completed and submitted, I post to the database and re-call the display routine.

Then I publish/compile the code into dlls and zip it up, and try to install it on a test portal. When I register a new user and go to the module, I get no warning message like I do in the development environment. When I complete the information and submit it, I get a postback - but the re-display doesn't display anything, and the information never ends up in the database. I have put in a RegisterStartUpScript command which displays a javascript alert, which runs in the on_click event. Displays when running in development; not at all in test (interestingly enough, parhaps twice out of a hundred times it did, however).

I'm at my wits end - I'm definitely not a novice at this, I've written dozens of production modules.

If anybody has helpful suggestions, either as to what might be going on, where to look, or how to debug the deployed dll code, I'd be most appreciative. Thanks.

 
New Post
1/9/2007 9:31 PM
 

I may have been barking up the wrong tree.

I finally noticed (while doing some further testing) that the information from a previously logged in user was being displayed. I had been in the habit of logging in as host, uploading the new module, then logging out and immediately registering a new user. When I'd enter and submit the new user's information, I checked and found that DNN's this.ModuleId function said I was userId=1 (host). Since I was disabling profile update through this particular page for host and administrators, my updates were getting thrown away. Apparently the couple of times it did update were when I was explaining the issue to co-workers - thus taking longer, letting the cache time out (??) and by the time I loaded the offending page, everything behaved properly.

I loaded DNN 4.4.0, and the problem went away. Same code, just no problem (and no, it wasn't the newly-minted site, because I had minted at least two others after I discovered the problem, one with the same localhost url, and one with a different one, both on new database installations).

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Compiled vs Interpreted differencesCompiled vs Interpreted differences


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