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.0The Most Bizarre ErrorThe Most Bizarre Error
Previous
 
Next
New Post
5/27/2007 7:21 PM
 
Hi
 
I'm having a very bizarre situation with a DNN installation (4.3.5).
I copied a working website with about 25 developed modules, created a new DB and run the installation.
After adding my modules, one of them is failing to load on exception.
The problem is that during Page_Load, any call to FindControl inside a FormView return NULL (controls not found), and thus causing an exception.
The FromView is always in ReadOnly mode (default).
This is VERY strange, as I've never had that before, and all the other modules are working fine!!!
I tried to remove this module and re-insert it, load it on a different page, etc but nothing helps!
I really don't want to install the whole site from scratch, and I can't find the root cause of this problem!!
 
Has anyone seen such behavior before?
What might be the problem?
 
Many thanks!
 
Ofer Bar
 
 
Here are some code snippets:
 
<asp:FormView ID="FormView1" runat="server" Width="100%" DataSourceID="EODS_Overview" BackColor="#FFFFFF" DefaultMode=ReadOnly>
         <ItemTemplate>
              <asp:Table runat="server" Width="100%">
                 <asp:TableRow>
                     <asp:TableCell cssclass="innertdTab">
                         <asp:Table runat=server width="100%" BorderWidth="0" cellspacing="0" cellpadding="0">
                             <asp:TableRow>
                                <asp:TableCell width="99%" VerticalAlign="top">
                                    <div align="center"><asp:Literal runat=server ID="litPhpflash"></asp:Literal></div>
                                </asp:TableCell>
 
 
 
 
                Literal litPhpflash = (Literal)FormView1.FindControl("litPhpflash");
                litPhpflash.Text = sb.ToString();    // this is failing, since litPhpflash == null
 
 
New Post
5/27/2007 8:20 PM
 

Ccheck your cache time setting on the failing module and set it to 0. I think it was around DNN 435 that if a cache time default setting wasn't specified, it would set to 1600.


Eric Swanzey
www.swanzey.com
 
New Post
5/27/2007 8:28 PM
 

Hi,

 

Thanks, but that's not the case. I have all my modules set with cache time = 0.

It looks like something is not working right there. I moved the failing code into a (!PostBack) condition and it started working fine.

Then I logged out and in again, and it started acting up again, same exception.

As if the whole asp.net event sequence got out of sync.

This never happened on any of my other sites (same code).

 

Thx

 

Ofer

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0The Most Bizarre ErrorThe Most Bizarre Error


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