Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException while opening Episerver Admin page #13

Open
azzimuth opened this issue Feb 16, 2018 · 2 comments
Open

NullReferenceException while opening Episerver Admin page #13

azzimuth opened this issue Feb 16, 2018 · 2 comments

Comments

@azzimuth
Copy link

azzimuth commented Feb 16, 2018

I have copied an Episerver database from production to my computer but when I try to open the Admin page, I get the following exception:

[NullReferenceException: Object reference was not set to an instance of an object.]
Duk.EPiServer.Disqus.Models.Context.ContentContextProvider.GetContextInternal() +315
System.Lazy`1.CreateValue() +727
System.Lazy`1.LazyInitValue() +184
Duk.EPiServer.Disqus.UI.Models.EditModeClientResourceRegister.RegisterResources(IRequiredClientResourceList requiredResources, HttpContextBase context) +38
System.Collections.Generic.List`1.ForEach(Action`1 action) +14671646
System.Collections.Generic.List`1.ForEach(Action`1 action) +14671646
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3826

Any ideas? I have checked the Admin page for a working page, I cannot see any settings for Disqus plugin which might have been missing in the production database...

@azzimuth azzimuth changed the title NullReferenceException when opening Episerver Admin page NullReferenceException while opening Episerver Admin page Feb 16, 2018
@dmytroduk
Copy link
Owner

dmytroduk commented Mar 2, 2018

@azzimuth could you check if you have Duk.EPiServer.Disqus and Duk.EPiServer.Disqus.UI NuGet packages installed on your local site?

@azzimuth
Copy link
Author

azzimuth commented Mar 2, 2018

I had them locally and the site started working as soon as I deleted both Duk.EPiServer.Disqus and Duk.EPiServer.Disqus.UI packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants