When I use VS2010, I got an error creating a c++ project

前端 未结 2 1393
迷失自我
迷失自我 2021-02-07 02:39

An error occurred while creating or opening the C++ browsing database file r:/t1/t1.sdf. IntelliSense and browsing information will not be available for C++ projects. En

相关标签:
2条回答
  • 2021-02-07 02:52

    As WhiteRabbit pointed out, download the "SSCERuntime-ENU.exe" from:

    For VS2010: http://www.microsoft.com/en-us/download/confirmation.aspx?id=5783

    For versions after VS2010: http://www.microsoft.com/download/details.aspx?id=17876

    Click download, then choose the suitable version for your device (32-bit = x86, 64-bit = x64), then download and install it.

    0 讨论(0)
  • 2021-02-07 03:03

    No amount of installing SQL Server Compact, repairing VS, etc. fixed this for me. Finally I saw something about a Network drive or RAM disk being unsuitable.

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/3a15f89c-074e-413c-ac6b-f8fceb64b7b1/how-do-i-enable-intellisense-to-work-on-a-ramdisk?forum=visualstudiogeneral

    I assume that the database uses low level access to the file system that is incompatible with RAM disk or network drives, etc. The following setting moved the sdf file to a location that does not interfere with whatever direct access the database demands. After a VS restart the problem vanished.

    tl;dr TOOLS / Options / Text Editor / C++ / Advanced / Always use fallback location = True

    0 讨论(0)
提交回复
热议问题