warrenbuckley / CWS-Start

This is the new shiny MVC version of Umbraco CWS starter site package
MIT License
23 stars 13 forks source link

Exception during install #18

Open number45 opened 11 years ago

number45 commented 11 years ago

I get the following exception when I install the package. Version 0.0.4 on umbraco 6.1.5.

[NullReferenceException: Object reference not set to an instance of an object.] umbraco.cms.businesslogic.web.Access.RenameMemberShipRole(String oldRolename, String newRolename) +97 umbraco.cms.businesslogic.member.MemberGroup.Save() +114 CWSStart.Web.CWSExtensions.RegisterStartupEvents.AddCustomMemberGroup() in c:\inetpub\wwwroot\Personal\CWS-Start\CWSStart.Web\CWSStart.Web\CWSExtensions\RegisterStartupEvents.cs:82 CWSStart.Web.CWSExtensions.RegisterStartupEvents.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) in c:\inetpub\wwwroot\Personal\CWS-Start\CWSStart.Web\CWSStart.Web\CWSExtensions\RegisterStartupEvents.cs:37 Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable1 items, Action1 action) +147 Umbraco.Core.CoreBootManager.Complete(Action1 afterComplete) +143 Umbraco.Web.WebBootManager.Complete(Action1 afterComplete) +364

[HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12864673 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12881540 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722601

jrochate commented 11 years ago

I got that exact same error. Umbraco 6.1.5 just installed, without starter-kit, using WebPI.

Thanks.

jrochate commented 11 years ago

Well, actually I found a workaround :)

Just uninstall the package and install again, without re-installing Umbraco.

It seems is working fine on 6.1.5, after the second try.

number45 commented 11 years ago

Uninstalling and re-installing also worked for me :)

joeriks commented 11 years ago

Same here, thanks for the workaround :)

MrMattTaylor commented 10 years ago

I had the same error when installing the 0.0.4 package downloaded from Umbraco Projects area in to 6.1.6. So I followed the work-a-round by uninstalling and re-installing.

Next I got a different error:


Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. 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.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

  1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

    <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.] System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0 System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +525 System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +19 System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +315 System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +208 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +1171 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +146 System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +103 System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +592 System.Web.UI.ScriptManager..ctor() +30 ASP.umbraco_masterpages_umbracopage_master.BuildControlform1() +157 ASP.umbraco_masterpages_umbracopage_master.__BuildControlTree(umbraco_masterpages_umbracopage_master ctrl) +305 System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1349 System.Web.UI.Page.ApplyMasterPage() +75 System.Web.UI.Page.PerformPreInit() +210 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1716


Looking at what got installed I seem to have a SubNavi.cshtml, 4 Script files and that's all.

MrMattTaylor commented 10 years ago

Well I ended up re-installing the OS on my PC for another reason. Tried installing the package again, got the first error and but it was fine on the second attempt.

warrenbuckley commented 10 years ago

This is a very odd thing I will try and find the time to look into this and see if I can replicate and find the issue related to this.