I am trying to make a barebones user control for a module in DotNetNuke. I apologize if this isn't the right forum. The module compiles and can be added to the list of available modules in the Control Panel: But in the container, I receive the following error. The name of the control is Login2. It simply outputs the information entered by the user in a login box.
This is the error I receive
Error: Login2 is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unable to cast object of type 'ASP.admin_skins_login_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. ---> System.InvalidCastException: Unable to cast object of type 'ASP.admin_skins_login_ascx' to type 'DotNetNuke.Entities.Modules.PortalModuleBase'. at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
Here is the code for the user control named Login2.ascx
<%</FONT><FONT color=#0000ff size=2>@</FONT><FONT size=2> </FONT><FONT color=#a31515 size=2>Control</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>Language</FONT><FONT color=#0000ff size=2>="VB"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>AutoEventWireup</FONT><FONT color=#0000ff size=2>="false"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>CodeFile</FONT><FONT color=#0000ff size=2>="Login2.ascx.vb"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>Inherits</FONT><FONT color=#0000ff size=2>="AlteinEnterprises.CoffeeShopListing.Login2"</FONT><FONT size=2> %>
<table style="border-style:solid; border-color: Black;">
<tr>
<td><b>Loginb>td>
<td><asp:TextBox ID="User" runat="server" />td>
tr>
<tr>
<td><b>Passwordb>td>
<td><asp:TextBox ID="Pass" runat="server" />td>
tr>
<tr>
<td>td>
<td><b>Passwordb>td>
<td><asp:Button id="buttton" Text="Submit" runat="server" />td>
tr>
table>
<p><asp:Label ID="lblMessage" runat="server" />p>
This is the code-behind for the user control
Imports DotNetNuke
Namespace AlteinEnterprises.CoffeeShopListinga
Partial Class Login2
Inherits Entities.Modules.PortalModuleBase
Public UserName As String
Public Password As String
Public Sub Submit(ByVal Sender As Object, ByVal e As EventArgs)
lblMessage.Text =
"UserName: " & User.Text & _
"
" & "Password: " & Pass.Text & ""
End Sub
End Class
End Namespace
I do not know why I am receiving this error and I would be so very appreciative if some one could help me out.
Thanks,
altein