hi im trying to install the package to a fresh 6.1.2 installation and altough package seems to install this error comes up:
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:
[NullReferenceException: Object reference not set to an instance of an object.]
usercontrols_StandardWebsiteInstall.Page_Load(Object sender, EventArgs e) +276
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
i couldnt find any similar error on the forum and is my first time using umbraco any help would be greatly apreciated
if I turn on debug mode before I install I get the following detail in the error message:
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:
Line 39: int slideShowId = -1;
Line 40:
Line 41: root.SetValue("primaryNavigation", root.Id + ""); Line 42: root.SetValue("headerNavigation", "");
Line 43: root.SetValue("slideshow", "");
I bet it has to do with the fact that the root is not published yet.
The code has a commented out line of code using documents rather than content on line 32. If line 32 was used instead of line 30 I reckon it would work.
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'umbraco.cms.businesslogic.web.Document' does not contain a definition for 'SetValue' and no extension method 'SetValue' accepting a first argument of type 'umbraco.cms.businesslogic.web.Document' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 39: int slideShowId = -1;
Line 40:
Line 41: root.SetValue("primaryNavigation", root.Id + ""); Line 42: root.SetValue("headerNavigation", "");
Line 43: root.SetValue("slideshow", "");
Excellent changing line 30 fixed it to perfection ty very much 4 your help sorry that i couldnt high 5 i dont have enough karma yet but as soon as i can i certainly will come back and do so...:)
error on installation
hi im trying to install the package to a fresh 6.1.2 installation and altough package seems to install this error comes up:
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:
also i installed locally using webmatrix my database is in microsoft sql server 2012
ty 4 any help :)
jb santana
if I turn on debug mode before I install I get the following detail in the error message:
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:
Line 39: int slideShowId = -1; Line 40: Line 41: root.SetValue("primaryNavigation", root.Id + ""); Line 42: root.SetValue("headerNavigation", ""); Line 43: root.SetValue("slideshow", "");
Source File: c:\ewide.projects\tr\Standard Website Mvc\Standard Website Mvc\usercontrols\StandardWebsiteInstall.ascx.cs Line: 41
I bet it has to do with the fact that the root is not published yet.
The code has a commented out line of code using documents rather than content on line 32. If line 32 was used instead of line 30 I reckon it would work.
I'll give it a whirl, 2 tix
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'umbraco.cms.businesslogic.web.Document' does not contain a definition for 'SetValue' and no extension method 'SetValue' accepting a first argument of type 'umbraco.cms.businesslogic.web.Document' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 39: int slideShowId = -1; Line 40: Line 41: root.SetValue("primaryNavigation", root.Id + ""); Line 42: root.SetValue("headerNavigation", ""); Line 43: root.SetValue("slideshow", "");
Source File: c:\ewide.projects\tr\Standard Website Mvc\Standard Website Mvc\usercontrols\StandardWebsiteInstall.ascx.cs Line: 41
So its a different error but now I need the old api stuff. :(
Hang on. Here is a fix. Update line 30 to be
var root = contentService.GetRootContent().Where(x => x.Name.StartsWith("Home")).FirstOrDefault();
ok ill try and verify ill keep u posted and ty..:)
Excellent changing line 30 fixed it to perfection ty very much 4 your help sorry that i couldnt high 5 i dont have enough karma yet but as soon as i can i certainly will come back and do so...:)
is working on a reply...