Install Umbraco 6.1.6 into existing site - install error
In VSE2012 we set up a copy of our test site, checked all works, renamed webconfig.sys, then run Install-Package UmbracoCms -Version 6.1.6 from Package Manager Console. On build we 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.]
umbraco.UmbracoDefault.OnPreInit(EventArgs e) +301
System.Web.UI.Page.PerformPreInit() +31
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
Further information... 1) There was one error during the umbraco package installation: "Cannot remove default or system references from Web site." On completion, install reported "Successfully added Umbraco CMS 6.1.6 to [MyWebsite]'.
2) The project is a Website Project in VS2012 (not a Web Application Project because some pages are coded in VB and some in C#).
3) Build reports one error:
Error3 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.C:[Path]\visual studio 2012\Projects\W10v105\packages\UmbracoCms.6.1.6\Content\Web.config (line 86)
The offending line 86 in the UmbracoCms folder's web.config file is in the system.web section:
If this is the error that leads to the server error, then the solution cannot be to configure the virtual directory as an application, because (as I understand it) we do need to run this as a Website Project, not a Web Application Project.
Install Umbraco 6.1.6 into existing site - install error
In VSE2012 we set up a copy of our test site, checked all works, renamed webconfig.sys, then run Install-Package UmbracoCms -Version 6.1.6 from Package Manager Console. On build we 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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
Suggestions please!
Further information...
1) There was one error during the umbraco package installation: "Cannot remove default or system references from Web site." On completion, install reported "Successfully added Umbraco CMS 6.1.6 to [MyWebsite]'.
2) The project is a Website Project in VS2012 (not a Web Application Project because some pages are coded in VB and some in C#).
3) Build reports one error:
If this is the error that leads to the server error, then the solution cannot be to configure the virtual directory as an application, because (as I understand it) we do need to run this as a Website Project, not a Web Application Project.
is working on a reply...