U4-4091 - Cannot access Developer and Member Section

Created by Marcel Lüscher 20 Jan 2014, 13:23:57 Updated by Sebastiaan Janssen 03 Feb 2014, 15:22:24

In the console I get:

/umbraco/UmbracoTrees/ApplicationTree/GetApplicationTrees?application=member&tree=&isDialog=false )]}', {"Message":"An error has occurred."}

Please note this is a malformed json.

2 Attachments

Download EasyPushV2.z01

Download EasyPushV2.zip

Comments

Marcel Lüscher 20 Jan 2014, 14:13:24

On my dev environment I get more detailed error message. I hope this will affect the same issue:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Stack Trace: at umbraco.cms.presentation.Trees.TreeRequestParams.get_StartNodeID() at Umbraco.Web.Trees.LegacyTreeParams..ctor(IEnumerable`1 formCollection) at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetRootXmlNodeFromLegacyTree(ApplicationTree appTree, FormDataCollection formCollection, UrlHelper urlHelper) at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetRootNodeFromLegacyTree(ApplicationTree appTree, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection) at Umbraco.Web.Trees.ApplicationTreeController.d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Umbraco.Web.Trees.ApplicationTreeController.d__4.MoveNext()


Mårten Palm 22 Jan 2014, 17:30:41

I receive the same exception on a fresh install of Umbraco 7.0.2


Mårten Palm 24 Jan 2014, 13:06:56

If I reset my application pool i get a proper JSON object from http://example.com/umbraco/backoffice/UmbracoTrees/ApplicationTree/GetApplicationTrees?application=developer&tree=&isDialog=false

But on the 2nd or 3rd execution I get the exception stated above.


Mårten Palm 27 Jan 2014, 10:06:13

Created a fix for the exception in this pull request. https://github.com/umbraco/Umbraco-CMS/pull/292

However, now I get the following exception when I try to access the Developer or Member section.

Failed to retreive data for application tree developer Value cannot be null. Parameter name: umbracoContext Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: umbracoContext

Stack Trace: at Umbraco.Web.WebApi.UmbracoApiController..ctor(UmbracoContext umbracoContext) at Umbraco.Web.Trees.LegacyTreeController..ctor(XmlTreeNode xmlTreeNode, String treeAlias, String currentSection, UrlHelper urlHelper) at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetRootNodeFromLegacyTree(ApplicationTree appTree, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection) at Umbraco.Web.Trees.ApplicationTreeController.d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Umbraco.Web.Trees.ApplicationTreeController.d__4.MoveNext()


Ismail Mayat 27 Jan 2014, 10:24:49

I also get this issue. However on localhost i restarted app pool then I found i could get into developer section.


Sebastiaan Janssen 28 Jan 2014, 08:37:12

Can one of you please zip up an example site in which this happens (fresh install of 7.0.2 sounds good to me!) and attach it to this issue please? You can set "Visible to" to "HQ" and then only the Umbraco HQ will see it, please include the admin username and password. We can't reproduce this locally.

Also, make sure that you have .net 4.5 installed, let us know how you're running the site (IIS Express, IIS, what kind of application pool) and as much other information as possible.


Marcel Lüscher 29 Jan 2014, 08:10:29

Needed to upload it in two junks. We use IIS .net 4.5.


Sebastiaan Janssen 29 Jan 2014, 10:01:16

Eh.. what did you use to split them up and how do I combine them again? Maybe better to upload a zip to dropbox and link it here?


Sebastiaan Janssen 31 Jan 2014, 16:58:53

Thanks Marcel, this web.config changes causes the error:

<httpRuntime enableVersionHeader="false" /> Should be:

<httpRuntime requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.5" />

The most important part is targetFramework="4.5". I know that leaving out the requestValidationMode will probably work, but you might want to google as to what it actually means setting it to 2.0 as it might give you weird results if you don't do that.

So make sure to compare your web.config to ours and only change items when you really know what's going on with them.


Ismail Mayat 03 Feb 2014, 09:27:35

Sebastiaan, Just updated web.config and it works for me.

Cheers

Ismail


Marcel Lüscher 03 Feb 2014, 14:09:33

Thank you Sebastiaan.

I didn't notice there is a dependency on .NET Framework 4.5. And also this requestValidationMode 2.0. I don't think we can run Umbraco 7 with 4.0.

We need to update our Environment first.

Best Regards, Marcel


Sebastiaan Janssen 03 Feb 2014, 15:22:24

Yes, Umbraco 7 requires .net 4.5. As I said, not sure what happens without requestValidationMode, that might just work fine but I don't know for sure.


Priority: Show-stopper

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.1, 7.0.2

Due in version:

Sprint:

Story Points:

Cycle: