Copied to clipboard

Flag this post as spam?

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


  • Bobi 280 posts 743 karma points
    May 03, 2018 @ 05:29
    Bobi
    0

    Copying umbraco site from server into development environment in Visual Studio

    What are the best steps to take when copying an c# live website from the server into a development environment in Visual Studio (to create a solution, etc. in VS)?

    The development version became corrupt, and it is too much of a headache at this point to back-track to fix that dev version.

    Is it possible?

    I'm trying to copy an umbraco website from the server and run it in a development environment in Visual Studio by creating a blank new project in Visual Studio. Will the nuget packages, etc. that are installed on the website be lost when copying from the web server?

    I realize I will also have to copy the database over.

  • Nadine Fisch 159 posts 428 karma points
    May 03, 2018 @ 06:54
    Nadine Fisch
    0

    Hi,

    At the moment, I am struggling with a similiar topic. See here https://our.umbraco.org/forum/using-umbraco-and-getting-started/91738-relaunch-website#comment-290259

    Maybe you can find there some important information.

    Cheers, Nadine

  • Bobi 280 posts 743 karma points
    May 03, 2018 @ 07:21
  • Nadine Fisch 159 posts 428 karma points
    May 03, 2018 @ 08:02
    Nadine Fisch
    0

    no, not at all, why? I don't see why it is relevant for me or for you? Can you please give me more details? ;-) Thank you.

    By the way, do you have a version control like git behind your system?

  • Nadine Fisch 159 posts 428 karma points
    May 03, 2018 @ 13:13
    Nadine Fisch
    0

    Hi,

    today I copied the db and whole filesystem but not the APP_Code Foldera and not the web.config

    I deleted the Cache:

    /app_data/temp/ExamineIndexes/*
    /app_data/umbraco.config
    

    Restarted the Server and republish the page with {yoursite}/Umbraco/dialogs/republish.aspx?xml=true

    It was working, so I think you can do it backwards from live to dev the same way ;)

    I recommend to make a backup and use a source control system like git

  • Bobi 280 posts 743 karma points
    May 03, 2018 @ 16:40
    Bobi
    0

    Hi,

    So my understanding of a reflector is to obtain the source code from the /bin folder, which upon deployment is not longer in a readable form.

    How did you copy the database from the server properly without any permission errors? It may be different when going from server to localhost.

    Hmm, your method makes sense. I'm just unsure as to how to obtain the solution file in Visual Studio, and to retrieve things in the /bin...nuget packages etc. ... the reflector may help, but I haven't gotten there yet. I'm having update issues ... https://our.umbraco.org/forum/using-umbraco-and-getting-started//91861-error-during-upgrade-installation-7513-7104

  • Nadine Fisch 159 posts 428 karma points
    May 03, 2018 @ 19:29
    Nadine Fisch
    100

    oh, ok, now understand your problem. I just copied the files from the bin-folder, because I don't need to decompile the files. Maybe this topic can help you?

    https://our.umbraco.org/forum/developing-packages/79017-move-from-compiled-solution-to-source-code#comment-252905

    where do you get permission errors? You must set up the same user and schema like on the origin server, so I think there should not be any conflicts?

  • Bobi 280 posts 743 karma points
    May 03, 2018 @ 19:54
    Bobi
    1

    Thank you. I think this is the solution!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies