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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListObject reference not set to an instance of an object because of setting Max. Records per UserObject reference not set to an instance of an object because of setting Max. Records per User
Previous
 
Next
New Post
4/24/2011 5:51 AM
 
Hi all
I got 'Object reference not set to an instance of an object' error if I set  'Max. Records per User' to 1 or above in form and list 5.01.03 with dnn 5.4.2.
I  applied also "Create Record/Submit Form" permissions in Module Settings.

How should I prevent this error and let users to create just one record not more.

Regards
Nafiseh
 
New Post
4/24/2011 6:24 AM
 
can you please post all details of the error from DNN Event Viewer, thanks.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/25/2011 12:25 AM
 
4/25/2011 8:52:34 AM   Page Load Exception       AssemblyVersion: 5.4.2; PortalID: 0; PortalName< ...
AssemblyVersion: 5.4.2
PortalID: 0
PortalName: پورتال نوسا
UserID: -1
UserName:
ActiveTabID: 40
ActiveTabName: خانه
RawURL: /n2/tabid/40/language/en-US/Default.aspx
AbsoluteURL: /n2/Default.aspx
AbsoluteURLReferrer: http://localhost/n2/tabid/40/language/en-US/Default.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 3e436a54-4895-4331-a309-df08fb0bbb22
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.UserDefinedTable.Security.ModuleSecurity.HasAddPermissonByQuota
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 DotNetNuke.Modules.UserDefinedTable.Security.ModuleSecurity.HasAddPermissonByQuota(DataTable FieldsTable, DataTable DataTable, Int32 userRecordQuota, String username) at DotNetNuke.Modules.UserDefinedTable.EditForm.HasAddPermissonByQuota() at DotNetNuke.Modules.UserDefinedTable.EditForm.CheckPermission(Boolean isUsersOwnItem) at DotNetNuke.Modules.UserDefinedTable.EditForm.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: TestServer
  4/25/2011 8:52:34 AM   Module Load Exception       ModuleId: 383; ModuleDefId: 140; FriendlyName ...
ModuleId: 383
ModuleDefId: 140
FriendlyName: Form and List
ModuleControlSource: DesktopModules/UserDefinedTable/Default.ascx
AssemblyVersion: 5.4.2
PortalID: 0
PortalName: پورتال نوسا
UserID: -1
UserName:
ActiveTabID: 40
ActiveTabName: خانه
RawURL: /n2/tabid/40/language/en-US/Default.aspx
AbsoluteURL: /n2/Default.aspx
AbsoluteURLReferrer: http://localhost/n2/tabid/40/language/en-US/Default.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 27fdb6fc-3280-4057-bdfa-00a64e0cb37e
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.UserDefinedTable.Security.ModuleSecurity.HasAddPermissonByQuota
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 DotNetNuke.Modules.UserDefinedTable.Security.ModuleSecurity.HasAddPermissonByQuota(DataTable FieldsTable, DataTable DataTable, Int32 userRecordQuota, String username) at DotNetNuke.Modules.UserDefinedTable.EditForm.HasAddPermissonByQuota() at DotNetNuke.Modules.UserDefinedTable.EditForm.CheckPermission(Boolean isUsersOwnItem) at DotNetNuke.Modules.UserDefinedTable.EditForm.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: TestServer

Thanks for Your attention

Regards
Nafiseh
 
New Post
4/25/2011 1:38 AM
 
I shouldn't set "Create Record/Submit Form" permission in Module Settings for all users and it should be restricted to register users.
It seems this error was not handled properly.

I just should find a way to inform users to not allow the permission of "Create Record/Submit For all users" with setting Max. Records per User :D

Regards
Nafiseh
 
New Post
4/25/2011 4:36 AM
 
you cannot use quota for anonymous users (this should not result in an error, but doesn't make sense, since all anonymous users have same ID).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListObject reference not set to an instance of an object because of setting Max. Records per UserObject reference not set to an instance of an object because of setting Max. Records per User


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