Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up local development environment for Umbraco

I have inherited an Umbraco CMS project, the Umbraco instance and custom user controls exist on our test server as the initial build has been demo-ed to the client already. I now need to take this on, the initial build was done by a freelance dev before my time here and no documentation exists on set up, deployment, etc.

The custom usercontrols were under source control and build ok, after a bit of bug fixing. I have followed the following to try and get an instance of the Umbraco install and custom controls working on my machine for developing against.

http://slickjuanito.wordpress.com/2012/02/27/setting-up-umbraco-development-environment-in-visual-studio-2010/

http://our.umbraco.org/wiki/how-tos/getting-started-with-umbraco-what-is-next-after-you-install/setting-up-your-project-in-visual-studio

I am pointing the Umbraco web config at the database with the relevant content in and can access the back end of the CMS, however when i go to the Default.aspx i just get a blank page. I have set VS2010 up to throw CLR exceptions and started the solution in debug mode to see if an error is being thrown and nothing.

Can anyone either suggest things to try and get it running properly or point me to some resources tha might help?

Thanks

Chris

like image 743
chrishey Avatar asked Apr 24 '12 10:04

chrishey


People also ask

How do I publish my Umbraco site in IIS?

In Visual Studio right click on Umbraco web project in the Solution Explorer and choose Publish... command.

How do I use Umbraco in Visual Studio?

To install Umbraco, you first need to install Umbraco's dotnet new templates. You will get the best results if you use Umbraco's dotnet new templates. You will need Visual Studio 2019 updated to version 16.8 at least or use you can use Visual Studio 2022. Go to File > New > Project , search for Umbraco.


1 Answers

If you have IIS Express installed, what I have found easiest is to:

  1. Copy the filesystem of the site from the server to a folder in the Inetpub of your local machine.
  2. Create a site in IIS and point to those files.
  3. In Visual Studio, click File, Open, Website, and then choose the site.

If you have the MVC Framework installed, syntax highlighting will work for razor (.cshtml) scripts.

One step further would be to make a copy of the database and point the connection string to that copy. The copy could be restored to another database server, or if you have SQL Server Express installed, you can run the copy locally as well.

like image 170
Douglas Ludlow Avatar answered Oct 16 '22 03:10

Douglas Ludlow