Getting a Object reference not set to an instance of an object.
I saw this package at CG12, and it just looked awesome, but unfortuantly I can't get it to work on 4.7.1.1.
When trying to install Document Type Fieldsets I get the following error:
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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Our.Umbraco.DocTypeFieldsets.Extensions.DataHelper.GetFieldsetForProperty(String alias, Int32 contentTypeId) +128
Our.Umbraco.DocTypeFieldsets.Events.InjectEditorControls.AddFieldsetTextboxForAll(Control rootProperties) +463
Our.Umbraco.DocTypeFieldsets.Events.InjectEditorControls.rootProperties_Load(Object sender, EventArgs e) +223
System.Web.UI.Page.OnLoadComplete(EventArgs e) +8872202
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2350
See, that's was the problem. I guess there was no rights for the web.config, which resulted in the problem. I have now placed the following in web.config:
So was the issue that you didn't have Write enabled for web.config? Or was it something else? If so maybe you can check the umbracoLog table around the time you installed the package to see if there's any errors.
Maybe I can add some Manual Installation notes in case this happens in the future
It was because I didn't have write enabled for web.config (this can also happen when installing in hosting environment).
So for those who have the same problem a manual installation note would be awesome. Though, the only problem would be the web.config writing as I see it.
But wauv, nice little piece of extra client happiness with this plugin :)
Getting a Object reference not set to an instance of an object.
I saw this package at CG12, and it just looked awesome, but unfortuantly I can't get it to work on 4.7.1.1.
When trying to install Document Type Fieldsets I get the following error:
Hi Niels,
Thanks for reporting this. I've tested in 4.7.1.1 and it should work fine, however as I mentioned I'm still working out a few bugs :)
Can you make sure that your web.config file has the following line added?
If so, can you also post the contents of the config\DocTypeFieldsets.config file?
Thanks,
Tom
Hi Tom,
See, that's was the problem. I guess there was no rights for the web.config, which resulted in the problem. I have now placed the following in web.config:
<configuration> -> <configurationSections>:
And right before this code is executed in web.config:
<urlrewritingnet configSource="config\UrlRewriting.config" />
I placed the following code:
Now it all looks like it working...
By the way, thanks for the superfast answer and help :)
Awesome, glad it's working!
So was the issue that you didn't have Write enabled for web.config? Or was it something else? If so maybe you can check the umbracoLog table around the time you installed the package to see if there's any errors.
Maybe I can add some Manual Installation notes in case this happens in the future
Thanks for reporting :)
-Tom
Hi Tom,
It was because I didn't have write enabled for web.config (this can also happen when installing in hosting environment).
So for those who have the same problem a manual installation note would be awesome. Though, the only problem would be the web.config writing as I see it.
But wauv, nice little piece of extra client happiness with this plugin :)
/Niels
is working on a reply...