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.
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?
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.
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
Hi have you looked into reflectors at all?
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwi0mOuR6ejaAhURm1kKHTDRDmYQFggpMAA&url=https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3Dvs-publisher-306627.NETReflectorVisualStudioExtension&usg=AOvVaw2Mc0uU27l7iedJFoczsc
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?
Hi,
today I copied the db and whole filesystem but not the APP_Code Foldera and not the web.config
I deleted the Cache:
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
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
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?
Thank you. I think this is the solution!
is working on a reply...