Copied to clipboard

Flag this post as spam?

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


  • Saied 349 posts 674 karma points
    Sep 01, 2016 @ 20:15
    Saied
    0

    404 Errors GetSnapShopSettings and GetSnahopshots

    I installed uSync, uSync.Snapshots, and uSync.ContentEdition via nuget. It runs fine locally, but when I deploy it and go to the tabs, I get the following 404 errors:

    /umbraco/backoffice/uSync/SnapshotService/GetSnapshotSettings (404 Not Found)
    
    /umbraco/backoffice/uSync/SnapshotService/GetSnapshots (404 Not Found)
    

    Am I missing something? I also saw files in the bin folder related to uSync, but I thought if I install via nuget I don't need to include those?

  • David Peck 687 posts 1863 karma points c-trib
    Sep 01, 2016 @ 21:29
    David Peck
    0

    You've not said how you're deploying. If you've got a deployment server that is pulling in dlls from nuget then great. If however you're not commiting your dlls (as you shouldn't) in to git and deploying without a deployment server connected to nuget then you'll be missing the dlls.

  • Saied 349 posts 674 karma points
    Sep 01, 2016 @ 21:37
    Saied
    0

    I will find out for sure, but out of curiousity, what if it is a package that is not installed via nuget. Would I need to include that dll in the bin folder?

  • David Peck 687 posts 1863 karma points c-trib
    Sep 01, 2016 @ 22:13
    David Peck
    0

    If it's not in the global assembly cache (e.g. System.*) then you would need it checked in one way or another. It might be that it would be checked in to a Lib folder an referenced in your csproj file, if you're using a build server, or if you're just FTPing then you probably would need it in your bin folder already.

  • Saied 349 posts 674 karma points
    Sep 01, 2016 @ 23:50
    Saied
    0

    Hi David

    I created a lib folder in the solution and put the usync dlls from the bin in there. Then I added that lib folder to the references path in the project properties, but I am still getting the same error with the snapshots.

    It does look like when I watch the CI process that it does restore the packages from nuget, so I am still unclear.

    Saied

  • Saied 349 posts 674 karma points
    Sep 01, 2016 @ 22:17
    Saied
    0

    Do you recommend putting it in lib instead of bin? Is it not good to reference the bin folder from csproj?

  • David Peck 687 posts 1863 karma points c-trib
    Sep 02, 2016 @ 07:30
    David Peck
    0

    I prefer using a lib folder as it makes it easier to review external dependencies. It's a common convention but I wouldn't get too hung up on it. Stick it in the bin folder if it makes your life easier.

    Can you look on the deployed site to see if the bin made it on to there?

Please Sign in or register to post replies

Write your reply to:

Draft