Error viewing Sitemap - Value cannot be null. Parameter name: umbracoContext
I'm running a licensed version of SEO Checker v1.6.1.
I've been setting things up in the config section and I tried previewing the Sitemap.xml file but ended up with the following YSOD.
Server Error in '/' Application.
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
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.
Did you just install the package? Have you checked that /config/Applications.config and /config/trees.config files don't miss anything? Has the SEO checker section been added in applications.config for instance?
The package was installed a long time ago. This is the second of project that was based on the Hybrid Framework from Jeroen.
And it may even be a copy of the first one which is working fine. The only difference is that the second project has been upgraded to a later version of Umbraco.
Well I installed v1.8.1 of the SEO Package and that has fixed the issue.
Thanks Jan and indeed the umbracoContext is no longer available for Sitemap and Robots files in the later versions of Umbraco. Was already fixed and I will contact the developers of the Hybrid Framework if they can update the package.
The versions of SEO Checker, Umbraco and the Hybrid Framework are all compatible when you download the Framework.
I like to upgrade my Hybrid Framework projects to the latest Umbraco release so that where the problem lies. But yes I'm sure upgrading the version of SEO in it will prevent other people experiencing the same problem.
Error viewing Sitemap - Value cannot be null. Parameter name: umbracoContext
I'm running a licensed version of SEO Checker v1.6.1.
I've been setting things up in the config section and I tried previewing the Sitemap.xml file but ended up with the following YSOD.
Server Error in '/' Application.
Value cannot be null.
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.Parameter name: umbracoContext
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: umbracoContext
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18447
As far as I know I've set it all up in the same way as another site with the same versions and that one is working fine.
I'm looking forward to putting the site live soon so any help would be appreciated. :-)
Regards,
Matt
Hi Matt
Did you just install the package? Have you checked that /config/Applications.config and /config/trees.config files don't miss anything? Has the SEO checker section been added in applications.config for instance?
/Jan
Hi Jan,
The package was installed a long time ago. This is the second of project that was based on the Hybrid Framework from Jeroen.
And it may even be a copy of the first one which is working fine. The only difference is that the second project has been upgraded to a later version of Umbraco.
Well I installed v1.8.1 of the SEO Package and that has fixed the issue.
Regards,
Matt
Hi Matt
Ok, glad you found a solution at least and thanks for sharing :)
/Jan
Thanks Jan and indeed the umbracoContext is no longer available for Sitemap and Robots files in the later versions of Umbraco. Was already fixed and I will contact the developers of the Hybrid Framework if they can update the package.
Thanks,
Richard
Hi Richard,
The versions of SEO Checker, Umbraco and the Hybrid Framework are all compatible when you download the Framework.
I like to upgrade my Hybrid Framework projects to the latest Umbraco release so that where the problem lies. But yes I'm sure upgrading the version of SEO in it will prevent other people experiencing the same problem.
Regards,
Matt
Hi Matt/ all,
i am getting the same error in below method call, can any one please suggest.
UmbracoContext is null, thanks in advance.
My solution above was to upgrade the SEO package.
is working on a reply...