Copied to clipboard

Flag this post as spam?

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


  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Jun 14, 2015 @ 17:47
    Biagio Paruolo
    0

    Vs2013 and Umbraco devel: loosing content after restart solution. Why?

    Hi,

    I'm devel with Vs2013 and Umbraco. I create some content and other doctype and mods from backend, but after I restart Vs2013 to debug, I loose my contents, etc..

    Why? I've to exclude database ( LocalDB ) from solution? Thx.

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jun 14, 2015 @ 21:33
    Ali Sheikh Taheri
    0

    I have had the same problem too , with Umbraco version v7.2.4.

    However instead of using VS2013 I was using Microsoft WebMatrix.

    Any idea on this issue?

    Thanks

    Ali

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jun 15, 2015 @ 06:30
    Dave Woestenborghs
    0

    I have had this problem as well, but when using SQL CE. Never had this problem with SQL Server (Express). Looks to me that sometimes changes are not persisted to the database when using a SQL CE or LocalDB

  • Sören Deger 733 posts 2844 karma points c-trib
    Jun 15, 2015 @ 08:14
    Sören Deger
    0

    I can confirm the answer from Dave. This issue is only occured by using SQL CE, never by SQL Server (Express).

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Jun 15, 2015 @ 08:17
    Ali Sheikh Taheri
    0

    Yes I can confirm that too. I have had this issue with SQL CE and not sql express

  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Jun 15, 2015 @ 09:08
    Biagio Paruolo
    101

    I found the issue explained from Microsoft ( https://msdn.microsoft.com/en-us/library/ms233817.aspx )

    Every time I test my application and modify data, my changes are gone the next time I run my application.

    The value of the Copy to Output Directory property is Copy if newer or Copy always. The database in your output folder (the database that’s being modified when you test your application) is overwritten every time that you build your project. For more information, see How to: Manage Local Data Files in Your Project.

    I've excluded it from the solution.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jun 15, 2015 @ 10:11
    Dave Woestenborghs
    0

    Nice to know that. Is this because you included the database in your visual studio project. Because I don't recall having ever done that.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft