KevinJump / uSync-Legacy

uSync for Umbraco 4/6 - bits of the database to disk, and stuff like that
https://jumoo.co.uk/usync/
Mozilla Public License 2.0
75 stars 64 forks source link

uSync 404 Error (using NuGet Package Restore) #63

Closed LoganLehman closed 8 years ago

LoganLehman commented 8 years ago

I am running into an issue where after performing NuGet package restore (from a new pull of our branch) I am getting the following error from the developer section:

Request error: The URL returned a 404 (not found): backoffice/uSync/uSyncApi/GetSettings

usync_error

It works fine on my machine (where the project was initially created) - but does not work on other machines I restore from. This is the folder for USync as it stands (on all machines):

usync_app_plugins

and here is the NuGet Screen:

usync_versions

I am not sure how to fix this problem 100%, so I wanted to report it.

KevinJump commented 8 years ago

Hi

sounds like the old dashboard, is still there, but that's probibly something in the nuget package not upgrading properly. I'll have a look.

you don't however need uSync and uSync.Backoffice, they are in effect the same package (this just prompted me to actually figure out how to fix that too. I am going to make BackOffice an empty nuget package that just has uSync as an dependency).

LoganLehman commented 8 years ago

@KevinJump ,

Thanks for looking into this! I will look for a workaround in the meantime as well.

KevinJump commented 8 years ago

Hi i think it might be because the upgrade has left the dll Jumoo.uSync.BackOffice.ui.dll in the bin folder,

this dll isn't needed anymore (the ui stuff has been put into the main dll). so i think if you have this DLL you can just remove it.

LoganLehman commented 8 years ago

@KevinJump

I will go ahead and check this out soon and get back to you. Thanks for the reply.

KevinJump commented 8 years ago

yeah - I have moved this for me, because i haven't yet had a chance to look at making the nuget package do it in the last release - but if ui dll is there and you remove it - that should fix it.

LoganLehman commented 8 years ago

@KevinJump,

I do not have the .ui.dll in my bin folder, and neither to the other machines that I restored to (my coworkers machines). Unfortunately, we may be barking up a weird ally. Here is my references and bin:

jumoo

jumooref

Should I remove BackOffice all together?

LoganLehman commented 8 years ago

Hi

sounds like the old dashboard, is still there, but that's probibly something in the nuget package not upgrading properly. I'll have a look.

you don't however need uSync and uSync.Backoffice, they are in effect the same package (this just prompted me to actually figure out how to fix that too. I am going to make BackOffice an empty nuget package that just has uSync as an dependency).

@KevinJump - In accordance to this statement, I removed the USync.BackOffice NuGet project from my project, and it completely removed my App_Plugins/USync folder, and now the dashboard will not load.

LoganLehman commented 8 years ago

I take that back, I updated from the latest NuGet package, and it restored the USync folder. However, now I am getting a dashboard configuration error (it created a duplicate - I fixed it but just to let you know):

servererrorconfig

Onto testing NuGet Restore on other machines

KevinJump commented 8 years ago

yeah, the package is using .transform files. but i think it will be more reliable if it used xdt files (which is how i've just done the content mappers package)

I will have a look at that, i think they will be more reliable. in adding/removing the sections

LoganLehman commented 8 years ago

I have confirmed this to be resolved. Thanks @KevinJump