This is a migrated thread and some comments may be shown as answers.

[Solved] Grid demo - DB problem

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Allen
Top achievements
Rank 1
Allen asked on 25 Jul 2011, 04:37 PM
Hi,

currently evaluating Telerik MVC suite...

Running the "grid demo" (http://localhost:7654/grid)  on local machine after install gives error:

Database 'C:\PROGRAM FILES (X86)\TELERIK\EXTENSIONS FOR ASP.NET MVC Q2 2011\EXAMPLES\TELERIK.WEB.MVC.EXAMPLES\APP_DATA\NORTHWIND.MDF' cannot be upgraded because it is read-only or has read-only files. Make the database or files writeable, and rerun recovery.
An attempt to attach an auto-named database for file C:\Program Files (x86)\Telerik\Extensions for ASP.NET MVC Q2 2011\Examples\Telerik.Web.Mvc.Examples\App_Data\Northwind.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.


Line 18: <% } %>
Line 19: 
Line 20: <%= Html.Telerik().Grid(Model)
Line 21:         .Name("Grid")
Line 22:         .Columns(columns =>

I am running as admin and there are no read-only permissions on MDF

any thoughts?

Allen.

1 Answer, 1 is accepted

Sort by
0
Richard Davison
Top achievements
Rank 1
answered on 02 Jun 2012, 02:43 PM
the issue is one of permissions.
give yourself full permissions to the appdata folder.
also make sure that you dont have a database named northwind already created in your sqlexpress instance.
Tags
Grid
Asked by
Allen
Top achievements
Rank 1
Answers by
Richard Davison
Top achievements
Rank 1
Share this question
or