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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Some Sites - Site Settings - Critical Error Object ReferenceSome Sites - Site Settings - Critical Error Object Reference
Previous
 
Next
New Post
3/24/2014 4:43 PM
 
For some of the sites on my hosted server, when I try to access the Site Setting page I get an error 'A critical error has occurred.Object reference not set to an instance of an object' whilst others work fine.

Just upgraded from 7.01.01 to 7.02.02 but don't know if that caused problem or not.

Any idea what might have caused issue and more importantly how to fix it?

Thanks

 
New Post
3/24/2014 5:44 PM
 
that's a generic error that simply means that something that expected a value did not find one e.g. perhaps a combobox that was to have a value set was incorrectly passed a null value. The issue is in identifying which field(s) caused the issue - the first thing to check admin->event viewer to see if you can get a more verbose exception detail. If not then check if anything was logged during upgrade (http://www.dnnsoftware.com/community-...). Finally switch log4net to All to see if it captures anything useful - http://www.dnnsoftware.com/wiki/page/...

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/25/2014 4:58 PM
 
Hi Cathal

Thanks for suggestions. The regular Event Log doesn't show anything meaningful.

The log4net log below shows two errors but I am not sure what they actually mean.

Can you advise - please!

Thanks again


Richard


2014-03-25 20:40:14,950 [UKDNPWEB1][Thread:85][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.LoadFiles()
at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.LoadFolders()
at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2014-03-25 20:40:14,966 [UKDNPWEB1][Thread:85][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=157&error=Object+reference+not+set+to+an+instance+of+an+object.&content=0
System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.LoadFiles()
at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.LoadFolders()
at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
New Post
3/25/2014 7:36 PM
 

that's helpful as it isolates that the problem exists in LoadFile - looking at the code I see this as

https://raw.githubusercontent.com/dnnsoftware/Dnn.Platform/master/DNN%20Platform/DotNetNuke.Web/UI/WebControls/DnnFilePickerUploader.cs

Looking at the code the LoadFiles method looks the likely culprit where a null reference exception could occur i.e. the function expects a select folder, but if no folder is selected (e.g. in the list of folders failed or was empty). However the only way I can see this happening is if if there was a problem with folder permissions.

Can you check this by running the following query (either in sql server management studio or host->sql). Note: the first value (0) is the portalid, so make sure that matches your portal id, the third value (1) is the userid so make sure you're using the userid of your host/admin user.

GetFoldersByPermissions 0, 'READ,ADD', 1 ,-1, ''

This should return a set of results similar to this -but if your query is not returning results that would isolate where the problem is

FolderID PortalID FolderPath StorageLocation IsProtected IsCached LastUpdated CreatedByUserID CreatedOnDate LastModifiedByUserID LastModifiedOnDate UniqueId VersionGuid FolderMappingID ParentID IsVersioned WorkflowID MappedPath

46 0  0 1 0 NULL -1 2014-03-21 21:19:19.113 -1 2014-03-21 21:19:19.627 C0F8145F-6050-4D88-A500-DBD682D3A166 EC743024-B822-45E0-9084-922FD143821D 8 NULL 0 NULL 

47 0 Cache/ 0 0 0 NULL -1 2014-03-21 21:19:19.180 -1 2014-03-21 21:19:19.213 F9FD2F5A-565D-49CC-85BA-11C45ABB3B12 A4252E38-6F85-410A-AF27-C855909EFFEF 8 46 0 NULL Cache/

48 0 Cache/Pages/ 0 0 0 NULL -1 2014-03-21 21:19:19.213 -1 2014-03-21 21:19:19.230 B4D16284-B066-4C45-B85C-73DED3208D28 A2DC5FB5-14AC-4CE5-9594-854047AA85F4 8 47 0 NULL Cache/Pages/

49 0 Images/ 0 0 0 NULL -1 2014-03-21 21:19:19.237 -1 2014-03-21 21:19:19.563 4B3374F7-C288-477D-A863-98978B8DA428 39F0EA04-91F8-446D-A8CE-CE15DFADDF44 8 46 0 NULL Images/

50 0 Images/DNN/ 0 0 0 NULL -1 2014-03-21 21:19:19.560 -1 2014-03-21 21:19:19.590 087F4DA9-1184-4034-B16C-89D8D8B3E199 9CB5E129-7733-4F79-BD60-050BAEDA85EA 8 49 0 NULL Images/DNN/

51 0 Images/DNN/Logos/ 0 0 0 NULL -1 2014-03-21 21:19:19.587 -1 2014-03-21 21:19:19.593 AB26E01B-4498-4F49-A3F5-4319000E3C33 321D58CB-672A-4A50-8FFF-5A367DC4CE01 8 50 0 NULL Images/DNN/Logos/

52 0 Templates/ 0 0 0 NULL -1 2014-03-21 21:19:19.600 -1 2014-03-21 21:19:19.607 90C188AE-D64A-45A2-8826-9414D682CAF7 428ACDC2-C899-4E17-A949-0E1871A629A1 8 46 0 NULL Templates/

53 0 Users/ 0 1 0 NULL -1 2014-03-21 21:19:19.623 -1 2014-03-21 21:19:19.630 EABA4271-5A00-4AFB-8DCC-395798C54E26 2C2B7888-1AB4-4942-9487-7D653AB1A510 8 46 0 NULL Users/


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
3/26/2014 3:03 AM
 
Interesting ...

For portals where I can access the site settings (example 0, 1, 3, 14) I get a list of values but for portals where I can't access the site settings (example 2, 4) I get absolutely nothing.

So what is missing and how can I fix it?

Thanks

Richard


FolderID PortalID FolderPath StorageLocation IsProtected IsCached LastUpdated CreatedByUserID CreatedOnDate LastModifiedByUserID LastModifiedOnDate UniqueId VersionGuid FolderMappingID ParentID IsVersioned WorkflowID MappedPath
20 0 0 1 0 40:52.1 -1 33:07.4 1 12:16.5 07B52388-8C22-45B7-B56C-E211AB5B619E D97D37F3-A4BA-47AB-84BC-63437CB913DE 4 NULL 0 NULL
21 0 Cache/ 0 0 0 NULL -1 33:08.0 -1 33:08.2 5F725F00-5B41-44D1-BF3F-9BF49CDCC844 C0156A6B-3036-4760-BF92-B9BD3A0B198E 4 20 0 NULL Cache/
22 0 Cache/Modules/ 0 0 0 NULL -1 33:08.2 -1 33:08.2 46BF8669-F7AF-40EE-9090-0EB2527860A9 82BD6A72-3D6A-40BD-9D28-505E78C565A4 4 21 0 NULL Cache/Modules/
23 0 Templates/ 0 0 0 53:59.1 -1 33:08.2 1 47:15.2 0D22A9ED-EE42-42AE-A407-58FE74587943 CDAAD6CB-7835-4E1F-AD9E-ED69E88A469B 4 20 0 NULL Templates/
25 1 0 1 0 29:15.1 1 34:00.5 1 00:35.7 5AD9D13A-8E75-4810-B904-E513E2BAFF35 9377DFC7-1E47-4232-827E-C3C8BC2ECF66 7 NULL 0 NULL
64 1 Cache/ 0 0 0 20:38.6 1 59:52.5 1 50:55.7 B7D82A14-1DD0-4688-879D-7D268C11F697 4898D274-D367-41F1-A671-DF25B42A95DF 7 25 0 NULL Cache/
116 1 Cache/Pages/ 0 0 0 NULL 1 50:55.6 1 50:55.8 62A8D021-7C51-405C-A0E5-498223C32378 83C2B83C-D14D-4D92-9236-F4F86D34ACF7 7 64 0 NULL Cache/Pages/
190 1 Gallery/ 0 0 0 NULL 1 00:35.1 1 00:35.2 E6997423-561F-493C-AED8-50BF696972EA 1A2D9170-7083-4966-BAD6-4D2290FB97E7 7 25 0 NULL Gallery/
191 1 Gallery/Album/ 0 0 0 NULL 1 00:35.1 1 00:35.1 BF0B4399-6CF7-42C8-BDF7-7DEF9C17DEFC 5DBB3E0F-E035-4EED-B225-A23E460A408A 7 190 0 NULL Gallery/Album/
96 1 Gallery/Album/37/ 0 0 0 NULL 1 30:55.7 1 00:35.3 F5EA8070-9737-4700-95B3-9ADBF8724C2C 53A7B5E2-4BE6-4004-99AE-0B6690F469AA 7 191 0 NULL Gallery/Album/37/
117 1 Images/ 0 0 0 NULL 1 50:55.8 1 00:35.6 3CD4EC8C-637B-4434-A429-592DF6F3DEFE 50250BDF-CA79-45AE-A6B0-102D333BA728 7 25 0 NULL Images/
192 1 Images/timeline_images/ 0 0 0 NULL 1 00:35.6 1 00:35.6 ED3ABFCD-F869-4EC9-9389-32627713B98D 8F31A1F2-221B-4B66-9F21-1134736DEE9B 7 117 0 NULL Images/timeline_images/
193 1 Scripts/ 0 0 0 NULL 1 00:35.7 1 00:35.8 3A73FADB-16B3-4B8F-BECA-F2FC907C3335 40033E6F-9118-48D9-8BB4-614D4EE9D356 7 25 0 NULL Scripts/
194 1 Scripts/css/ 0 0 0 NULL 1 00:35.7 1 00:35.7 D943ED3D-886A-450A-8FAD-3534519EBEB8 7204EB32-AB27-4799-836C-ECFE441F1940 7 193 0 NULL Scripts/css/
195 1 Scripts/js/ 0 0 0 NULL 1 00:35.8 1 00:35.8 17BD798D-DD80-41A1-9450-6CE95414AA38 49C9099E-6118-48AD-B349-9E09D77161DB 7 193 0 NULL Scripts/js/
26 1 Templates/ 0 1 0 53:59.2 1 34:00.6 1 29:11.7 B117CD60-72D9-4653-A217-D4FDBFC05DC9 555B54B4-0EA0-4C3E-AAEA-92962178E87C 7 25 0 NULL Templates/
27 1 Users/ 0 1 0 33:58.5 1 34:00.7 1 18:18.3 03D7C910-07E1-4006-B6AA-33A73472E7BE 43D0914F-FB10-4172-9BE7-70A7229FAAA0 7 25 0 NULL Users/
120 1 Users/001/ 0 0 0 NULL 1 50:56.7 1 50:56.8 416BEA7A-95FA-41EE-B129-15FC563C60B6 726C623F-3A1A-4EE8-863D-1CD91A8973C2 7 27 0 NULL Users/001/
121 1 Users/001/01/ 0 0 0 NULL 1 50:56.8 1 50:56.8 2C565167-D9A6-4E32-AA7A-96F122004C46 58DCBC5F-2EE4-40CC-B8CD-B4D996EA2E55 7 120 0 NULL Users/001/01/
122 1 Users/001/01/1/ 0 0 0 NULL 1 50:56.8 1 50:56.9 BA1E3E0B-1BA2-494A-930C-123FD8460DE8 0FE6D86C-7A7F-4151-9BA5-65E081637194 7 121 0 NULL Users/001/01/1/
283 1 Users/005/ 0 0 0 NULL 1 22:32.7 1 22:32.8 3F0CE8ED-AD4A-42C5-8B79-9B38CC0EDFF9 19F90029-F460-40BE-9EFC-21758C4A3B6A 7 27 0 NULL Users/005/
284 1 Users/005/05/ 0 0 0 NULL 1 22:32.8 1 22:32.9 8D1E29CB-7339-4E5B-858D-E4E0F6E447FF ABB13BE9-3767-4183-A1FA-8150BA2D3B76 7 283 0 NULL Users/005/05/
285 1 Users/005/05/5/ 0 0 0 NULL 1 22:32.9 1 22:32.9 3194D67E-315F-40DC-9BC0-00C45B55C891 9A36504B-E05D-428B-A8EC-16421201E2B5 7 284 0 NULL Users/005/05/5/
130 1 Users/010/ 0 0 0 NULL 1 55:02.2 1 55:02.2 CA171D25-B4A4-41FC-9A92-206C22C248B4 7140F4AC-67A0-4602-ACA3-3D1060AE8207 7 27 0 NULL Users/010/
131 1 Users/010/10/ 0 0 0 NULL 1 55:02.2 1 55:02.3 876E4B06-1260-4A7D-94E7-3AE7B253A875 948F136A-89FA-4FA7-AA2C-5AE4AD051D61 7 130 0 NULL Users/010/10/
132 1 Users/010/10/10/ 0 0 0 NULL 1 55:02.3 1 55:02.3 2B11C136-42F4-446B-A9EC-723B87C89C04 7088A923-6B44-493A-BDBC-321761DBA078 7 131 0 NULL Users/010/10/10/
127 1 Users/012/ 0 0 0 NULL 1 52:43.2 1 52:43.4 EEBC72EB-4D48-42DE-8AC6-6456212A5017 B69C8966-C4F1-4E8F-AA10-EEBB12A11CC2 7 27 0 NULL Users/012/
128 1 Users/012/12/ 0 0 0 NULL 1 52:43.4 1 52:43.4 006245D2-0FA7-4454-89E9-32EAC553A7CA 25BFC540-2D08-4E92-8193-450960F0462A 7 127 0 NULL Users/012/12/
129 1 Users/012/12/12/ 0 0 0 NULL 1 52:43.4 1 52:43.4 61CC88F8-8487-4564-9188-1952354A355A 88F79F1C-E41A-463A-8034-A70CC47E301C 7 128 0 NULL Users/012/12/12/
290 1 Users/038/ 0 0 0 NULL 1 18:18.2 1 18:18.4 7C4A3E45-026B-4C04-B4A3-291D8F7D4E08 B026FE87-94F5-45B3-8CBC-733F9DE2A242 7 27 0 NULL Users/038/
291 1 Users/038/38/ 0 0 0 NULL 1 18:18.4 1 18:18.5 0EEC1BB8-9D88-4609-B26D-2D31EBD1824B 659B94DB-C4D2-408E-BEC8-DAD8EAF8BCE4 7 290 0 NULL Users/038/38/
292 1 Users/038/38/38/ 0 0 0 NULL 1 18:18.5 1 18:18.5 7D2759D9-1712-4DEE-8829-8599FECC9323 5132D76F-B0BA-4BE6-99CB-5A58E3C17CB0 7 291 0 NULL Users/038/38/38/
31 3 0 1 0 31:17.2 1 41:56.3 1 31:17.2 ECBB9625-179E-4EBE-A39E-B3AD01CF8773 C7C59EFF-26AE-4523-8F15-549136CCC40C 13 NULL 0 NULL
32 3 Cache/ 0 0 0 NULL 1 41:56.5 1 41:56.6 211E242E-1441-438E-9ECE-5B8A20898875 CB3E6549-73FB-4A25-B115-A14C9C4BF104 13 31 0 NULL Cache/
33 3 Cache/Modules/ 0 0 0 NULL 1 41:56.6 1 41:56.6 6816059E-1E7A-4AD4-91CB-CB80697FF0D0 288BE03D-9CAC-4971-934B-EB0FFC5C958C 13 32 0 NULL Cache/Modules/
34 3 Templates/ 0 0 0 54:10.4 1 41:56.7 1 11:06.0 3DFCFD77-11C3-41A2-9C0B-048EE3FE4446 3A3D388C-7197-44A8-8A57-76CED3D5C991 13 31 0 NULL Templates/

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Some Sites - Site Settings - Critical Error Object ReferenceSome Sites - Site Settings - Critical Error Object Reference


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out