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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Upload Custom Module ErrorUpload Custom Module Error
Previous
 
Next
New Post
2/3/2008 3:30 PM
 

Hi All,

I'm trying to upload a custom module created by my company and I'm getting the following error:

Failure ExceptionSystem.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstaller_V3.GetDesktopModuleSettings(DesktopModuleInfo objDesktopModule, PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.RegisterModules(PaFolder Folder, ArrayList Modules, ArrayList Controls) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.Install(PaFolderCollection folders) at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()

Can anyone help me?

Thanks,

Alberto

 
New Post
2/3/2008 11:46 PM
 

Are your module control classes inheriting from PortalModuleBase and PortalModuleSettings base?  Also, if you have a controller class specified in your manifest file, does the controller class exist?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
2/4/2008 10:10 AM
 

I don't think they are. This is my hard code.

<%@ Control language="vb" AutoEventWireup="false" Inherits="Patheon.DNN.Modules.Feedback.Feedback" CodeBehind="Feedback.ascx.vb" %>
<STYLE>.FormTextboxes { FONT-WEIGHT: normal; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica }
 </STYLE>
<script language="javascript">
    function textCounter(elementId, maxlimit) {
 var field = document.getElementById(elementId);
 if (!(document.getElementById(elementId) == "txtDetailedMessage"))
 if (field.value.length > maxlimit) // if too long...trim it!
 field.value = field.value.substring(0, maxlimit);
 }
}
</script>
<asp:panel id="Panel1" runat="server">* = <I>required fields</I>
<TABLE class="Normal">
  <TR>
   <TD width="200" height="22">First Name: *</TD>
   <TD height="22">
    <asp:TextBox id="txtFirstName" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox>
    <asp:RequiredFieldValidator id="reqtxtFirstName" runat="server" ErrorMessage="First Name is a required field"
     ControlToValidate="txtFirstName" Display="None"></asp:RequiredFieldValidator></TD>
  </TR>
  <TR>
   <TD width="200">Last Name: *</TD>
   <TD>
    <asp:TextBox id="txtLastName" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox>
    <asp:RequiredFieldValidator id="reqtxtLastName" runat="server" ErrorMessage="Last Name is a required field"
     ControlToValidate="txtLastName" Display="None"></asp:RequiredFieldValidator></TD>
  </TR>
  <TR>
   <TD width="200">Organization/Company:</TD>
   <TD>
    <asp:TextBox id="txtCompany" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox></TD>
  </TR>
  <TR>
   <TD width="200">Job Title:</TD>
   <TD>
    <asp:TextBox id="txtTitle" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox></TD>
  </TR>
  <TR>
   <TD width="200">E-mail Address:&nbsp;*</TD>
   <TD>
    <asp:TextBox id="txtEmail" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox>
    <asp:RequiredFieldValidator id="reqtxtEmail" runat="server" ErrorMessage="Email is a required field" ControlToValidate="txtEmail"
     Display="None"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator id="valtxtEmail" runat="server" ErrorMessage="Email is not valid" ControlToValidate="txtEmail"
     Display="None" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></TD>
  </TR>
  <TR>
   <TD width="200">Phone Number:</TD>
   <TD>
    <asp:TextBox id="txtPhone" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox></TD>
  </TR>
  <TR>
   <TD width="200" valign="top">Detailed Message:</TD>
   <TD>
    <asp:TextBox id="txtDetailedMessage" Rows="4" runat="server" CssClass="FormTextboxes" Width="232px" TextMode="MultiLine"></asp:TextBox></TD>
  <TR>
   <TD width="200" height="26">Address:</TD>
   <TD height="26">
    <asp:TextBox id="txtAddress1" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox></TD>
  </TR>
  <TR>
   <TD width="200"></TD>
   <TD>
    <asp:TextBox id="txtAddress2" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox></TD>
  </TR>
  <TR>
   <TD width="200" height="25">City:</TD>
   <TD height="25">
    <asp:TextBox id="txtCity" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox></TD>
  </TR>
  <TR>
   <TD width="200">State/Province:</TD>
   <TD>
    <asp:TextBox id="txtProvince" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox></TD>
  </TR>
  <TR>
   <TD width="200">Zip/Postal Code:</TD>
   <TD>
    <asp:TextBox id="txtPostal" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox></TD>
  </TR>
  <TR>
   <TD width="200">Country: *</TD>
   <TD>
    <asp:TextBox id="txtCountry" runat="server" MaxLength="50" CssClass="FormTextboxes" Width="232px"></asp:TextBox>
    <asp:RequiredFieldValidator id="reqtxtCountry" runat="server" ErrorMessage="Country is a required field" ControlToValidate="txtCountry"
     Display="None"></asp:RequiredFieldValidator></TD>
  </TR>
 </TABLE>
<asp:PlaceHolder id="ServicesPlaceHolder" runat="server" Visible="False">
  <TABLE class="Normal">
   <TR>
    <TD vAlign="top" width="200">Please select one of the following:</TD>
    <TD>
     <asp:RadioButtonList id="rblServices" runat="server" CssClass="FormTextboxes">
      <asp:ListItem Selected="True" Value="Development">Development</asp:ListItem>
      <asp:ListItem Selected="True" Value="Commercial">Contract Manufacturing & Packaging</asp:ListItem>
      <asp:ListItem Selected="True" Value="Development/Commercial">Both</asp:ListItem>
     </asp:RadioButtonList></TD>
   </TR>
   <TR>
    <TD width="200">Product Type:</TD>
    <TD>
     <asp:DropDownList id="ddlProductType" runat="server" CssClass="FormTextboxes">
      <asp:ListItem Selected="True" Value="Oral Solid">Oral Solid</asp:ListItem>
      <asp:ListItem Value="Semi-Solid/Liquid">Semi-Solid/Liquid</asp:ListItem>
      <asp:ListItem Value="Sterile">Sterile</asp:ListItem>
      <asp:ListItem Value="Lyophilized">Lyophilized</asp:ListItem>
      <asp:ListItem Value="Cephalosporin">Cephalosporin</asp:ListItem>
      <asp:ListItem Value="High-Potency">High-Potency</asp:ListItem>
      <asp:ListItem Value="Other">Other</asp:ListItem>
     </asp:DropDownList></TD>
   </TR>
   <TR>
    <TD width="200">How did you hear about Patheon?:</TD>
    <TD>
     <asp:DropDownList id="ddlReferral" runat="server" CssClass="FormTextboxes">
      <asp:ListItem Value="Search Engine">Search Engine</asp:ListItem>
      <asp:ListItem Value="Online-Banner Ad">Online-Banner Ad</asp:ListItem>
      <asp:ListItem Value="Online Directory Listing">Online Directory Listing</asp:ListItem>
      <asp:ListItem Value="News Release">News Release</asp:ListItem>
      <asp:ListItem Value="Trade Show">Trade Show/Conference</asp:ListItem>
      <asp:ListItem Value="Print Advertisement">Print Advertisement</asp:ListItem>
      <asp:ListItem Value="Published Article">Published Article</asp:ListItem>
      <asp:ListItem Value="Email">Email</asp:ListItem>
      <asp:ListItem Value="Referral">Referral</asp:ListItem>
      <asp:ListItem Value="Other">Other</asp:ListItem>
     </asp:DropDownList></TD>
   </TR>
  </TABLE>
 </asp:PlaceHolder>
<asp:PlaceHolder id="InvestorPlaceHolder" runat="server" Visible="False">
  <TABLE class="Normal">
   <TR>
    <TD vAlign="top" width="200">Please send me:</TD>
    <TD>
     <P>
      <asp:CheckBox id="chkAnnualReport" runat="server" CssClass="FormTextboxes" Text="Annual Report"></asp:CheckBox><BR>
      <asp:CheckBox id="chkInvestorKit" runat="server" CssClass="FormTextboxes" Text="Investor Kit with Annual Report"></asp:CheckBox></P>
    </TD>
   </TR>
  </TABLE>
 </asp:PlaceHolder>
<asp:PlaceHolder id="RelationsPlaceHolder" runat="server" Visible="False">
  <TABLE class="Normal">
   <TR>
    <TD colSpan="2">Please add me to your email distribution list for:
     <asp:CheckBox id="chkNewsReleases" runat="server" CssClass="FormTextboxes" Text="News Releases"></asp:CheckBox><BR>
     <SPAN style="FONT-SIZE: 7pt; FONT-STYLE: italic">(To unsubscribe from the
      electronic mailing list please email <A href="mailto:info@patheon.com?SUBJECT=UNSUBSCRIBE">info@patheon.com</A>,
      with UNSUBSCRIBE in the subject line.)</SPAN>
    </TD>
   </TR>
  </TABLE>
 </asp:PlaceHolder>
<TABLE class="Normal">
  <TR>
   <TD width="200">&nbsp;</TD>
   <TD>
    <asp:Button id="btnSubmitForm" runat="server" CssClass="FormTextboxes" Text="Submit"></asp:Button>&nbsp;<INPUT class="FormTextboxes" type="reset" value="Reset" name="btnResetForm"></TD>
  </TR>
 </TABLE>
<asp:ValidationSummary id="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False"></asp:ValidationSummary></asp:panel><asp:panel id="Panel2" runat="server">
 <asp:Label id="lblResult" runat="server" CssClass="Normal"></asp:Label>
</asp:panel>

 
New Post
2/4/2008 11:14 AM
 

The place where the inheritance statement is would be found in the code-behind.  In your case, that file would be Feedback.ascx.vb.  It would look something like this:

Namespace Patheon.DNN.Modules.Feedback
    Public Class Feedback
        Inherits Entities.Modules.PortalModuleBase

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Upload Custom Module ErrorUpload Custom Module 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