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

Exception while running Grid in Asp.net MVC example

2 Answers 76 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.
rajani
Top achievements
Rank 1
rajani asked on 26 Aug 2010, 12:42 PM
Hi,  We are planning to use Telerik controls ( Grid ) and using the trial version to evaluate the same. When i Try to run examples ( v2010  MVC  ) on vs2010  i get the following exception when i click on the grid.  I saw some thread talking about  changes to be to connection string .  I have changed the  .\SQLEXPRESS as suggested in one of the threads. Can anyone tell me what exactly is the problem. Thanks a lot in advance. 

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)


Thanks
Rajani

2 Answers, 1 is accepted

Sort by
0
Greg
Top achievements
Rank 1
answered on 26 Aug 2010, 02:47 PM
Have you checked your connection string to make sure it is correct (Can you connect with another application for e.g.). It's usually just a typo or similar.
If the database is on a remote server,check your surface configuration to make sure that the database can receive remote calls.
0
rajani
Top achievements
Rank 1
answered on 27 Aug 2010, 05:51 AM
Greg, Thanks for your quick response. My connectionstring looks like this

 

 

 

connectionString="Data Source=.\BG4WS0548;AttachDbFilename=C:\Program Files\Telerik\Extensions for ASP.NET MVC Q2 2010\Examples\Telerik.Web.Mvc.Examples\App_Data\Northwind.mdf;.. "

Mdf file is in the same system where the applicaiton is running .

DataSource format is incorrect ? I am not able to figure out.

Thanks in advance.

Thanks
Rajani

 

Tags
Grid
Asked by
rajani
Top achievements
Rank 1
Answers by
Greg
Top achievements
Rank 1
rajani
Top achievements
Rank 1
Share this question
or