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 ... Extensions Module Not Loading DNN Ver 6.2 Community Extensions Module Not Loading DNN Ver 6.2 Community
Previous
 
Next
New Post
6/12/2012 7:20 PM
 

Hi All,

My /host/extensions module is not loading -   I've tracked the issue down to

/DesktopModules/Admin/Extensions/InstalledExtensions.ascx.cs Line 447

DataGrid extensionsGrid = item.Controls[1] as DataGrid;  assigns null to extensionsGrid

(item.Controls[1] appears to be just a System.Web.UI.DataBoundLiteralControl) with clientID  "dnn_ctr345_Extensions_installedExtensionsControl_extensionTypeRepeater_ctl00_0"

When BindGrid(kvp.Key, extensionsGrid, noResultsLabel); is called  (line 119)

The null ref exception is thrown at line 123

grid.ItemDataBound += extensionsGrid_ItemDataBound;

private void extensionTypeRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
      {
          RepeaterItem item = e.Item;
          if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
          {
              var kvp = (KeyValuePair<string, PackageType>)e.Item.DataItem;
 
              DataGrid extensionsGrid = item.Controls[1] as DataGrid;
               
              Label noResultsLabel = item.Controls[3] as Label;
 
              BindGrid(kvp.Key, extensionsGrid, noResultsLabel);
 
               
          }
      }

Exception

System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.Modules.Admin.Extensions.InstalledExtensions.BindGrid(String packageType, DataGrid grid, Label noResultsLabel) in c:\development\novi\DesktopModules\Admin\Extensions\InstalledExtensions.ascx.cs:line 123
   at DotNetNuke.Modules.Admin.Extensions.InstalledExtensions.extensionTypeRepeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) in c:\development\novi\DesktopModules\Admin\Extensions\InstalledExtensions.ascx.cs:line 451

 Any insight to this error would be much appreciated!

 
New Post
6/13/2012 12:11 PM
 
i posted a response to this at http://www.dotnetnuke.com/Community/Community-Exchange/Question/1030/Extensions-Module-Not-Loading-DNN-Ver-6-2-Community.aspx , but would prefer if you follow up with any comments here as forums are a better place for bug discussions that the exchange IMHO

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/16/2012 6:45 PM
 
Hey Cathal,

Thanks for your suggestions!  Will post here for bug issues from now on.

I ran the two stored procedures for each module and all packages return fine.

dnn_GetPackageTypes and dnn_GetPckagesByType null,'Module' 

I've been stepping through the code and in

private void extensionTypeRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)

both the below are being assigned to null

DataGrid extensionsGrid = item.Controls[1] as DataGrid;Label noResultsLabel = item.Controls[3] as Label;

item.Controls[1] is a DataBoundLiteral control with the Text value of "Modules" and

item.controls[3] is a DataBoundLiteral control with the Text value of "Modules"

It looks like the cast from item.controls[x] is not working and hence not populating the extensionsGrid and noResultsLable objects being passed to

BindGrid(kvp.Key, extensionsGrid, noResultsLabel);

Odd that no error is thrown during the above assignment/cast...

 The null ref exception is thrown at line 123

grid.ItemDataBound += extensionsGrid_ItemDataBound;

Something is strange here.  BTW. All other admin tabs work i.e. security, user accounts etc...

I'd love to hear any of your thoughts on the above!

 Seth

 
New Post
6/16/2012 9:35 PM
 

Did you use dbo as your databaseOwner or have you used a other SQL Schema?

Is it a new install or an upgrade (Version?) ?

 
New Post
6/19/2012 12:38 PM
 

Thanks for all the input.  I had a bit to look at this again today.  The quick fix is a core modification in

 DesktopModules/Admin/Extensions/InstalledExtensions.ascx.cs

 Line 447 and  449 in extensionTypeRepeater_ItemDataBound

Changed

DataGrid extensionsGrid = item.Controls[1] as DataGrid;
Label noResultsLabel = item.Controls[3] as Label;

TO

DataGrid extensionsGrid = item.Controls[5] as DataGrid;
Label noResultsLabel = item.Controls[7] as Label; 

(also needs to be done in AvailableExtensions.ascx.cs - extensionTypeRepeater_ItemDataBound)

For some reason my datagrid and label controls got shifted in the extensionTypeRepeater controls collection.  The ascx page was never touched.  I imagine that this might be an issue with the skin.

 If anyone has seen this behavior in the past I'd appreciate any insight.

At some point, I'll revert my core modifications and fix this bug for real.  I'll post my findings when I do.

 Thanks,

Seth

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ... Extensions Module Not Loading DNN Ver 6.2 Community Extensions Module Not Loading DNN Ver 6.2 Community


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