Current filter:
                                You should refresh the page.
                                  • [DevExpress Support Team: CLONED FROM KA18667: How to configure SQL Server for demo databases]
                                    I have VS 2013 and I tried all possible combinations, but it still won't connect to the database.
                                    My current connectionString="Data Source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=True;"
                                    And I get the following error:
                                    {"An attempt to attach an auto-named database for file ...\Documents\Samples\MVC GridView\14.2.7\E5038\Q559000\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."}

                                1 Solution

                                Creation Date Importance Sort by

                                Hi Matthias,

                                This error is likely caused by the fact that your Web Server does not have an access to your application's App_Data folder. Please refer to the Attempt to attach an auto-named database for .mdf file failed thread where a similar issue was already discussed, and follow the recommendations given there. Let us know if it helps you to overcome this issue.