Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11/09/2006 2:22 PM by  Peter Donker
Object reference not set to an instance of an object.
 8 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Scott Murphy
New Member
New Member
Posts:7


--
04/06/2006 7:20 AM

    Hi Peter,

       When logged in as an administrator (any user with admin privleges), I am able to add a new item into a "Miscellaneous" collection.  I have set up the collection to allow "All Users" to view and edit the folder contents.  When logging in without admin privleges, I see the icons indicating that I can create a new folder, add a new item, etc..  Unfortunately, whenever I attempt to add a new item, I get the log error seen below.  Any ideas?
       Oh, the parent collection is not editable by All Users.

    Thanks

    Scott Murphy

    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
    InnerException: Object reference not set to an instance of an object.
    Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.c() at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.b() at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.b(Object A_0, EventArgs A_1) at System.Web.UI.Control.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    04/13/2006 12:51 PM
    Scott,
    Do you use and custom attributes? Or addons?
    Peter
    Scott Murphy
    New Member
    New Member
    Posts:7


    --
    04/13/2006 4:53 PM

    Hi Peter,

       No, we haven't ventured that far yet.  We have a standard installation with a very limited number of collections and files.  Essentially, we are still testing and exploring the basic product to ensure that it will meet our needs before going live.

       Thanks.

    Scott

    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    04/18/2006 11:29 PM
    Scott,
    I'm left guessing here. I've never seen this error. It complains something is wrong in the CustomFieldsControl. If you've installed DMX like a regular module this is next to impossible also given the fact you have no custom fields (i.e. custom attributes). I have a couple of suggestions:
    1. re-install DMX over the current one
    2. A complete new DNN/DMX installation
    Make sure to use the latest available version (03.04.01 right now).
    Peter
    Tiphanie Combre
    New Member
    New Member
    Posts:24


    --
    06/07/2006 5:23 AM
    I am getting the same error...except there are actually two logs that go with it. I need some serious help since this is in my production site...thanks

    Here they are...
    ModuleId: 1190
    ModuleDefId: 134
    FriendlyName:
    ModuleControlSource: DesktopModules/Bring2mind/DMX/Dispatch.ascx
    AssemblyVersion: 04.00.02
    Method: Bring2mind.DNN.Modules.DMX.EditEntry.i
    FileName:
    FileLineNumber: 0
    FileColumnNumber: 0
    PortalID: 0
    PortalName: NAS Associate Portal
    UserID: 150
    UserName: ES\callawac
    ActiveTabID: 57
    ActiveTabName: Document Repository
    AbsoluteURL: /Default.aspx
    AbsoluteURLReferrer: http://my.nas.ga.adp.com/...fault.aspx?EntryId=3
    ExceptionGUID: 761c7120-2728-4c85-a439-24f9535df5e8
    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
    InnerException: RESX:NotAuthorized.Text
    Message: DotNetNuke.Services.Exceptions.ModuleLoadException: RESX:NotAuthorized.Text ---> System.Exception: RESX:NotAuthorized.Text at Bring2mind.DNN.Modules.DMX.EditEntry.i(Object A_0, EventArgs A_1) --- End of inner exception stack trace ---
    StackTrace:
    Source:
    Server Name: NAD2DIVDNN


    2.
    AssemblyVersion: 04.00.02
    Method: Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.c
    FileName:
    FileLineNumber: 0
    FileColumnNumber: 0
    PortalID: 0
    PortalName: NAS Associate Portal
    UserID: 150
    UserName: ES\callawac
    ActiveTabID: 57
    ActiveTabName: Document Repository
    AbsoluteURL: /Default.aspx
    AbsoluteURLReferrer: http://my.nas.ga.adp.com/...fault.aspx?EntryId=3
    ExceptionGUID: f9d6fe0e-8c00-4ec5-8876-a36773b775ff
    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
    InnerException: Object reference not set to an instance of an object.
    Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.c() at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.b() at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.b(Object A_0, EventArgs A_1) at System.Web.UI.Control.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
    StackTrace:
    Source:
    Server Name: NAD2DIVDNN
    John Thomas
    New Member
    New Member
    Posts:5


    --
    09/27/2006 1:23 AM
    I think I can reproduce the steps that are causing this error (I'll add a bug too).
    1. Log in as an administrator (i'm using the super user account)
    2. Turn on the preview functionality (to where you can't see the skin's content panels)
    3. Try to add a folder to the root collection


    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    10/01/2006 9:24 PM
    John,
    That is understandable. The preview mode puts the modules into non-editable, while the login remains. It is not meant to work with, but rather to see what happens if you've changed something. Your procedure is not how the functionality is intended.

    Scott,
    On my own environment I can upload/add stuff to an open collection as anonymous user. Version is DMX 03.04.06 on a DNN 03.03 platform.

    Peter
    Tiphanie Combre
    New Member
    New Member
    Posts:24


    --
    11/09/2006 1:12 PM
    Was there ever an answer found to this problem. I've got just the normal install for the dmx. I am now on 3.04.07 installed.

    I can reproduce the error. I have my root collection set to all users can view and all users can edit. The collections underneath the root have a more limited access so that only certain groups can view and edit the groups. I then change my root collection to only allow all users to view but not to edit. At this point if I log in as an administrator I can traverse to lower level collection and add files. But if I log in as a normal user who only has access to view the top level collection and traverse to a lower level collection where this user should have rights to add a file, I see all the icons to add a file. When I click on the file I get object not set to an instance and event logs below.

    I do not have any custom fields or attributes. Just a standard basic install.

    AssemblyVersion: 04.03.05
    PortalID: 0
    PortalName: NAS Associate Portal
    UserID: 1031
    UserName: ES\callawac
    ActiveTabID: 57
    ActiveTabName: Document Repository
    RawURL: /Resources/DocumentRepository/tabid/57/DMXModule/1195/Command/Core_Edit/CollectionId/965/Default.aspx
    AbsoluteURL: /Default.aspx
    AbsoluteURLReferrer:
    UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
    ExceptionGUID: eec41149-b0f1-43e1-863a-d61cc1491182
    InnerException: Object reference not set to an instance of an object.
    FileName:
    FileLineNumber: 0
    FileColumnNumber: 0
    Method: Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.c
    StackTrace:
    Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.c() at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.b() at Bring2mind.DNN.Modules.DMX.Controls.CustomFieldsControl.b(Object A_0, EventArgs A_1) at System.Web.UI.Control.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
    Source:
    Server Name: NAD2DIVDNN



    11/8/2006 10:20:19 AM Module Load Exception ES\callawac ModuleId: 1195; ModuleDefId: 136; FriendlyName ...
    ModuleId: 1195
    ModuleDefId: 136
    FriendlyName:
    ModuleControlSource: DesktopModules/Bring2mind/DMX/Dispatch.ascx
    AssemblyVersion: 04.03.05
    PortalID: 0
    PortalName: NAS Associate Portal
    UserID: 1031
    UserName: ES\callawac
    ActiveTabID: 57
    ActiveTabName: Document Repository
    RawURL: /Resources/DocumentRepository/tabid/57/DMXModule/1195/Command/Core_Edit/CollectionId/965/Default.aspx
    AbsoluteURL: /Default.aspx
    AbsoluteURLReferrer:
    UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
    ExceptionGUID: f34001c4-80df-4d6a-8984-f07a52be8e44
    InnerException: Exception of type 'System.Exception' was thrown.
    FileName:
    FileLineNumber: 0
    FileColumnNumber: 0
    Method: Bring2mind.DNN.Modules.DMX.EditEntry.i
    StackTrace:
    Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Exception of type 'System.Exception' was thrown. ---> System.Exception: Exception of type 'System.Exception' was thrown. at Bring2mind.DNN.Modules.DMX.EditEntry.i(Object A_0, EventArgs A_1) --- End of inner exception stack trace ---
    Source:
    Server Name: NAD2DIVDNN





    Peter Donker
    Veteran Member
    Veteran Member
    Posts:4536


    --
    11/09/2006 2:22 PM
    Tiphanie,

    I cannot reproduce this. I followed your scenario and was able to happily add files. What I could reproduce was the 'preview' error mentioned above, but you didn't touch the preview button didn't you?

    To recap what I did:
    1. On a fresh installation DNN 04.03.05/DMX 03.04.07 I instantiated DMX which I will call DMX 1. I then proceeded to create a collection (A) 'open collection' which has view & edit for 'all users'.
    2. I create a second DMX instance on another page which I'll call DMX 2. I set the root to collection A. This now, effectively allows all users to add content to the root of DMX 2.
    3. I create a collection in DMX 2 (so under collection A) called collection B. View: registered users, Edit: Editors. This is now not visible to unauthenticated users.
    4. I go back to DMX 1 and change the permissions on collection A to be view only for All Users.
    5. I log in as editor, go to DMX 2, then collection B, and add a document.


    Peter
    You are not authorized to post a reply.