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.

  • Claus Veirup 8 posts 23 karma points
    Mar 12, 2014 @ 11:42
    Claus Veirup
    0

    Umbraco fails after removing Razor demostore!!!

    My uCommerce installation failed when cheating product definitions so I decided to remove uCommerce and the demostore and then try to reinstall to get a fresh start.... That didn't go too well. After I removed the razor demostore i got this error when going to umbraco.aspx...

    Server Error in '/' Application.

    Could not convert string 'UCommerce.RazorStore.Services.AssemblyTag, UCommerce.RazorStore' to a type. Assembly was not found. Make sure it was deployed and the name was not mistyped.

     

     

    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: Castle.MicroKernel.SubSystems.Conversion.ConverterException: Could not convert string 'UCommerce.RazorStore.Services.AssemblyTag, UCommerce.RazorStore' to a type. Assembly was not found. Make sure it was deployed and the name was not mistyped.

    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: 

     

    [ConverterException: Could not convert string 'UCommerce.RazorStore.Services.AssemblyTag, UCommerce.RazorStore' to a type. Assembly was not found. Make sure it was deployed and the name was not mistyped.]
       Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.GetType(String name) +775
       Castle.MicroKernel.SubSystems.Conversion.TypeNameConverter.PerformConversion(String value, Type targetType) +86
       Castle.MicroKernel.SubSystems.Conversion.DefaultConversionManager.PerformConversion(String value, Type targetType) +130
       Castle.MicroKernel.SubSystems.Conversion.DefaultConversionManager.PerformConversion(String value) +57
       Castle.Windsor.Installer.DefaultComponentInstaller.SetUpComponents(IConfiguration[] configurations, IWindsorContainer container, IConversionManager converter) +174
       Castle.Windsor.Installer.DefaultComponentInstaller.SetUp(IWindsorContainer container, IConfigurationStore store) +207
       UCommerce.Infrastructure.ObjectFactory.Resolve() +66
       UCommerce.Umbraco.Menu.Actions.AbstractAction..ctor() +104
       UCommerce.Umbraco.Menu.Actions.ProductCatalogSortAction..cctor() +28
    
    [TypeInitializationException: The type initializer for 'UCommerce.Umbraco.Menu.Actions.ProductCatalogSortAction' threw an exception.]
       UCommerce.Umbraco.Menu.Actions.ProductCatalogSortAction.get_Instance() +24
    
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
       System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +152
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +396
       System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
       System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) +37
       Umbraco.Core.ActionsResolver.CreateInstances() +285
       Umbraco.Core.ObjectResolution.ManyObjectsResolverBase`2.get_Values() +472
       umbraco.BusinessLogic.Actions.Action.GetJavaScriptFileReferences() +29
       Umbraco.Web.UI.Umbraco.Umbraco.RenderActionJs() +83
       Umbraco.Web.UI.Umbraco.Umbraco.Page_Load(Object sender, EventArgs e) +1690
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       Umbraco.Web.UI.Pages.BasePage.OnLoad(EventArgs e) +19
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
    

     


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022

     

    I then tried to add the missing dlls to the bin directory. Which just gave this error:

    Server Error in '/' Application.

    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_umbraco_aspx.__BuildControlForm1() +222
       ASP.umbraco_umbraco_aspx.__BuildControlTree(umbraco_umbraco_aspx __ctrl) +83
       ASP.umbraco_umbraco_aspx.FrameworkInitialize() +38
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +72
       System.Web.UI.Page.ProcessRequest() +269
       System.Web.UI.Page.ProcessRequest(HttpContext context) +167
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
    

     


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022

     

     

     

    Anyone knows how to my Umbraco working again?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 12, 2014 @ 14:49
    Jan Skovgaard
    0

    Hi Claus

    Hmm, seems there might be an issue with the uninstall script. Not sure if it's uCommerce or Umbraco that needs to do something about that.

    However I'm guessing that you probably have some .dll files in your bin folder, which are causing the mess. Something that should have been removed during uninstall of uCommerce.

    Try looking in the /bin/ folder and see if some files starts with "ucommerce"...if so, try removing them and refresh your site.

    I suggest you try doing this

    1: Download a fresh version of your Umbraco instance (4 or 6?)

    2: Compare the files from /bin/ folder with your current installation

    3: See if some ucommerce related .dll files still exist in the bin folder - if so remove them

    Be aware though that the amount of dll files of course also differ if you have other packages installed so it's not neccesarily 100% bulletproof. Perhaps the software "Beyond compare" can help you.

    But I'm almost certain that the error is due to a .dll file related to ucommerce that should be removed.

    Hope this helps.

    /Jan

  • Jesper Nielsen 141 posts 498 karma points
    Mar 14, 2014 @ 08:55
    Jesper Nielsen
    102

    Hi,

    Please not that he is trying to remove the razor store, not uCommerce itself. ;-)

    The problem appears to be that the razor store registers web services by adding a line in Umbraco/UCommerce/Configuration/Custom.config

    <configuration>
      <components>
        <component id="DemoStoreWebApi" service="UCommerce.Web.Api.IContainsWebservices, UCommerce.Web.Api" type="UCommerce.RazorStore.Services.AssemblyTag, UCommerce.RazorStore" />
      </components>
    </configuration>

    I would hazard a guess and say this line is still present after uninstall. If you remove it, you should be be able to move forward. :-)

    Kind regards,
    Jesper

    P.S.
    The line instructs uCommerce to include all the service stack web services found in the tagged assembly, "UCommerce.RazorStore".
    So if you have service stack web services you would like to run along side uCommerce, simply register an implementation of the IContainsWebServices interface (it is empty) like the Razor store did.

  • Claus Veirup 8 posts 23 karma points
    Mar 21, 2014 @ 16:25
    Claus Veirup
    0

    I had a backup site where I upgraded to the updated version of uCommerce and the demo store. And merged the files and that helped to get the site working again...

  • Pedro 1 post 22 karma points
    Apr 01, 2014 @ 12:51
    Pedro
    0

    Thanks Claus that worked perfectly.

  • Rob Scott 41 posts 94 karma points
    Apr 01, 2015 @ 20:11
    Rob Scott
    0

    Comment out that line that Jesper stated worked. Appreciate it.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 14, 2015 @ 13:20
    Søren Spelling Lund
    0

    Could you mark the topic as solved please? Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft