Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Rigardt Pheiffer 4 posts 66 karma points
    Jun 18, 2013 @ 16:48
    Rigardt Pheiffer
    0

    Error 500 after successful install

    Hi All

    I'm running Umbraco 4.11.4 and installed uCommerce-3.6.1.13149 which I've downloaded from the free developer version page (http://www.ucommerce.net/en/products/developer.aspx). I'm running .NET Framework v4.0 and SQL Server 2008 R2 (RTM) - 10.50.1797.0 (X64)

    After installing the package via the Umbraco package installer, I get the "installed successfully" screen, prompting me to refresh, only to get a 500 Internal Server Error on the next page load. This only happens in the backend - the frontend seems unaffected.

    Installing the same package on a clean 4.11.4, works fine. However, installing it on my local dev site, causes the error above. So it seems the issue is specific to my site! Apart from a custom tree section added to the site, nothing else stands out as possible causes so far.

    Firstly, the App_Data log file doesn't contain any info on the error.

    Secondly, the DB log table also doesn't contain any info, apart from the following two errors:

     

    1. uCommerce.DbInstaller.GetSchemaVersion(). uCommerce_SystemVersion does not exist. This indicates an empty database.
    2. Invalid object name 'uCommerce_SystemVersion'. Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action])    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()     at System.Data.SqlClient.SqlDataReader.get_MetaData()     at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)     at System.Data.SqlClient.SqlCommand.ExecuteScalar()     at UCommerce.Installer.DbInstaller.GetSchemaVersion()

     

    As far as I can tell, neither of these errors are related to the issue, since I get these same errors when installing uCommerce on the clean Umbraco where it works fine. It seems they can be overlooked. Looking at the remaining entries in the log table, everything points to a successful install of the package.

    Thirdly, I can confirm that the "commerce" section has been added to the web.config and I can see the uCommerce DLLs in the bin, as well as the new App_GlobalResources folder and its content, and also the umbraco/ucommerce folder and its content.

    Lastly is the event log entry, which I will include at the end of the post. It seems to be missing Lucene.Net.dll v2.0.0.4. Now, I can confirm that my site nowhere references v2.0.0.4. It does use the DLL but is referencing 2.9.4.1 in all cases. Doing a global search for "2.0.0.4" also returns no results. This leaves me to think that uCommerce might be referencing v2.0.0.4 but then why did this error not occur on the clean Umbraco 4.11.4 which also doesn't have v2.0.0.4 available? I'm not sure if this is the actual cause of the issue of just a red herring...

    We are looking at installing uCommerce on the production site soon, so any help would be much appreciated.

    Many thanks in advance,
    Rigardt

    Below is the event log entry:
    =======================================================================

    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 18/06/2013 14:58:54 
    Event time (UTC): 18/06/2013 13:58:54 
    Event ID: 93f7abea3918406a86e8ebac24ab721d 
    Event sequence: 39 
    Event occurrence: 4 
    Event detail code: 0 

    Application information: 
    Application domain: /LM/W3SVC/3/ROOT-9-130160366133523255 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: xxxxxxxxxxxxxxxxxxxxxx
    Machine name: xxxxxxxxxxxxxxxxxx

    Process information: 
    Process ID: 9772 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 

    Exception information: 
    Exception type: HttpUnhandledException 
    Exception message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
    at System.Web.UI.Page.HandleError(Exception e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at ASP.umbraco_umbraco_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\10613118\be8b150e\App_Web_umbraco.aspx.5f2dec3.j09bj9cb.0.cs:line 0
    at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)

    Exception has been thrown by the target of an invocation.
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
    at Umbraco.Core.ActionsResolver.CreateInstances()
    at Umbraco.Core.ObjectResolution.ManyObjectsResolverBase`2.get_Values()
    at Umbraco.Core.ActionsResolver.get_Actions()
    at umbraco.BusinessLogic.Actions.Action.GetJavaScriptFileReferences()
    at umbraco.cms.presentation._umbraco.RenderActionJS()
    at umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e)
    at umbraco.BasePages.BasePage.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    The type initializer for 'UCommerce.Umbraco.Menu.Actions.DefinitionFieldsSortAction' threw an exception.
    at UCommerce.Umbraco.Menu.Actions.DefinitionFieldsSortAction.get_Instance()

    Could not convert string 'UCommerce.Xslt.Rendering.IXmlRenderer`1[[UCommerce.EntitiesV2.Definitions.IProperty]], UCommerce' to a type.
    at Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.PerformConversion(String value, Type targetType)
    at Castle.MicroKernel.SubSystems.Conversion.DefaultConversionManager.PerformConversion(String value, Type targetType)
    at Castle.MicroKernel.SubSystems.Conversion.DefaultConversionManager.PerformConversion[TTarget](String value)
    at Castle.Windsor.Installer.DefaultComponentInstaller.GetType(IConversionManager converter, String typeName)
    at Castle.Windsor.Installer.DefaultComponentInstaller.SetUpComponents(IConfiguration[] configurations, IWindsorContainer container, IConversionManager converter)
    at Castle.Windsor.Installer.DefaultComponentInstaller.SetUp(IWindsorContainer container, IConfigurationStore store)
    at Castle.Windsor.WindsorContainer.RunInstaller()
    at UCommerce.Infrastructure.ExtendedWindsorContainer..ctor(String xmlFilePath)
    at UCommerce.Infrastructure.ObjectFactory.GetContainer()
    at UCommerce.Infrastructure.ObjectFactory.get_Container()
    at UCommerce.Infrastructure.ObjectFactory.Resolve[T]()
    at UCommerce.Umbraco.Menu.Actions.AbstractAction..ctor()
    at UCommerce.Umbraco.Menu.Actions.DefinitionFieldsSortAction..ctor()
    at UCommerce.Umbraco.Menu.Actions.DefinitionFieldsSortAction..cctor()

    Could not load file or assembly 'Lucene.Net, Version=2.0.0.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
    at System.Reflection.RuntimeAssembly.GetExportedTypes()
    at Castle.Core.Internal.ReflectionUtil.GetAvailableTypes(Assembly assembly, Boolean includeNonExported)
    at Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.Scan(Assembly assembly)
    at Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.InitializeAppDomainAssemblies(Boolean forceLoad)
    at Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.GetType(String name)
    at Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.PerformConversion(String value, Type targetType)

    Request information: 
    Request URL: http://xxxxxxxxxxxx.local/umbraco/default.aspx ;
    Request path: /umbraco/default.aspx 
    User host address: 127.0.0.1 

    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 

    Thread information: 
    Thread ID: 49 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at System.Web.UI.Page.HandleError(Exception e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at ASP.umbraco_umbraco_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\10613118\be8b150e\App_Web_umbraco.aspx.5f2dec3.j09bj9cb.0.cs:line 0
    at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)

    Custom event details: 

    =======================================================================

  • Rigardt Pheiffer 4 posts 66 karma points
    Jun 19, 2013 @ 14:00
    Rigardt Pheiffer
    102

    Hi there.

    Ok, after much debugging, I've found the culprit. My bin contained Lucene.Net.Highlight.dll (v2.0.0.1). This was later replaced by Lucene.Net.Contrib.Highlighter.dll (v.2.3.2.1). The original Lucene.Net.Highlight.dll was thus unused but still in the bin. Looking at Lucene.Net.Highlight.dll, it does reference Lucene.Net.dll (v2.0.0.4) which caused the exception above.

    The strange this is that this did not cause any issues before installing uCommerce. It seems that installing uCommerce started to reference Lucene.Net.Highlight.dll somehow which then was missing its reference to Lucene.Net.dll (v2.0.0.4). Removing Lucene.Net.Highlight.dll from the bin fixes the issue. Not sure where Lucene.Net.Highlight.dll was referenced from, since removing it doesn't break uCommerce either.

    Thanks for any time spent investigating this!
    Rigardt

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 01, 2013 @ 16:06
    Søren Spelling Lund
    0

    Thanks for being awesome and posting the solution to the forum!

Please Sign in or register to post replies

Write your reply to:

Draft