Hey guys
I am still trying to code my own custom module for a DNN website. I find DNN very fussy at times, and the smallest error seems to break the entire website (always finding myself recreating the whole site, and doing things from scratch
The problem I am having seems to be with namespaces.
I understand that Module code is split into 2 folders
\App_Code for all the data information
\DesktopModules for all the GUI information
I use the namespace
namespace YourCompany.Modules.MyLoginModule for all the elements in my module (including data layer, BLL and GUI layer)
Where I am struggling is web user controls in \DesktopModules dont seem to "see each other", even using this same namespace.
I use it like:
namespace
YourCompany.Modules.MyLoginpublic partial class MyPassword : UserModuleBase
{
coupled with
<%
@ Control Language="C#" AutoEventWireup="true" CodeFile="MyPassword.ascx.cs" Inherits="YourCompany.Modules.MyLogin.MyPassword" %>
I current have a LoginView.ascx.cs and trying to access MyPassword.ascs. Visual studio doesnt seem to have a problem with it, yet when I run DNN it gives me the error:
Error: MyLogin is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: c:\inetpub\wwwroot\DNN09April\DesktopModules\MyLogin\LoginView.ascx.cs(40): error CS0246: The type or namespace name 'MyPassword' could not be found (are you missing a using directive or an assembly reference?) ---> System.Web.HttpCompileException:
I have googled this and it only points to namespaces and scope decleration being the problem.
Can anyone help me out PLZZZ?
{