I am a DNN Newbie but very experienced (i.e. old) software development geek.
DotNetNuke 4.3.5
Visual Studio 2005 - I have the full version and not the Express Version
My development machine is Windows XP Home
Module works fine when logged in as host or admin. Generates an error message when not logged in.
I simply created a new module and renamed the directories and tried to install it per default instructions. The exception I get is:
ModuleId: 369
ModuleDefId: 127
FriendlyName: JATFirst
ModuleControlSource: DesktopModules/JATFirst/ViewJATFirst.ascx
AssemblyVersion: 04.03.05
PortalID: 0
PortalName: My Website
UserID: -1
UserName:
ActiveTabID: 53
ActiveTabName: JAThomas Module Tester
RawURL: /JATDNN/JAThomasModuleTester/tabid/53/Default.aspx
AbsoluteURL: /JATDNN/Default.aspx
AbsoluteURLReferrer: http://localhost:1847/JATDNN/JAThomasModuleTester/tabid/53/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a249429c-98c6-4b05-ab54-24bf47f2745d
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: YourCompany.Modules.JATFirst.ViewJATFirst.lstContent_ItemDataBound
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at YourCompany.Modules.JATFirst.ViewJATFirst.lstContent_ItemDataBound(Object sender, DataListItemEventArgs e) at System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at YourCompany.Modules.JATFirst.ViewJATFirst.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: JATHOMASKACHP
I've searched the boards and the web and it seems that module development has changed quite dramatically recently and I haven't been able to find a problem quite like mine.
Any Suggestions?
Keith