Copied to clipboard

Flag this post as spam?

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


  • Nguyen Dung Tri 106 posts 606 karma points
    Sep 09, 2016 @ 03:17
    Nguyen Dung Tri
    0

    What project should I start when debug the source code of Merchello?

    Hello,

    I have downloaded the source code of Merchello at "https://github.com/Merchello/Merchello" and start the project. But when I start the solution, it generate an error:

    A project with an Output Type of Class Library cannot be started directly.
    
    In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.
    

    enter image description here

    So how can debug the solution? I want to see and debug the back-end and front-end of Merchello.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 09, 2016 @ 16:52
    Rusty Swayne
    100

    The startup project should be Merchello.FastTrack.Ui (that's the website)

    Also make sure the you are NOT building Merchello.Mui.Client, Merchello.Web.Ui.Client, and Merchello.Providers.Ui.Client (VS -> build menu -> configuration manager).

    TBH - I get a bit lazy and often forget to change my local connection string back to the .sdf file (working on a build process that will correct this problem but it's a ways out).

  • Nguyen Dung Tri 106 posts 606 karma points
    Sep 10, 2016 @ 15:49
    Nguyen Dung Tri
    0

    Hello Rusty Swayne,

    When it run to http://localhost:51323/checkout/ship-rate-quote/ an error occurred:

    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 101:        {
    Line 102:            var address = shipment.GetDestinationAddress();
    Line 103:            var args = string.Format("{0}.{1}", address.Region.Replace(" ", string.Empty), address.CountryCode);
    Line 104:            return Cache.CacheKeys.ShippingGatewayProviderShippingRateQuoteCacheKey(shipment.Key, shippingGatewayMethod.ShipMethod.Key, shipment.VersionKey, args);
    Line 105:        }
    
    Source File: C:\Users\User\Desktop\BeMo e-commerce\Merchello-merchello-dev\src\Merchello.Core\Gateways\Shipping\ShipmentRateQuoteStrategyBase.cs    Line: 103 
    

    enter image description here

    This step appear when I do check out on a product. I report this so you can check.

Please Sign in or register to post replies

Write your reply to:

Draft