What have I not done here? I logged back on to my Umbraco site and my items are not in the content tree.
Using Web Matrix I created a new Umbraco website.
I created a new DataType FavouriteCoffees.
I created a new DocumentType FavouriteCoffees.
I changed Landing Page to allow FavouriteCoffees under it.
I uploaded a JPG to the Media folder.
I created a new Landing Page item using it.
I previewed it, saved and published it.
I closed the browser and Web Matrix. I re-opened Web Matrix and browsed to the website (http://localhost:64743/) and got a YSOD:
ContentTypeService failed to find a content type with alias "FavouriteCoffees".
I logged into Umbraco and none of the above are present - no DataType, DocumentType etc.
Inside the website folder I can see my JPG (C:\Umbraco\Umbraco CMS3\Media\1050)
ContentService
you reference the aliasfavouriteCoffees
. Regarding the data disappearing, are you using SQL server or Embedded? If you create the content again and restart does it disappear? have you done an upgrade? Does the application have read/write permissions to the App_Data folder? If all else fails, check the logs. – Anth12