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

Failed objectInitialization

1 Answer 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Prad
Top achievements
Rank 2
Prad asked on 21 Aug 2008, 03:28 PM
Hi,

 I installed the trial version of WPF. Started C# Samples and clicked on RadGridView --> First Look and clicked on one of the menu items in the left.


I got the following error

Failed object initialization (ISupportInitialize.EndInit). I have the screenshot but unable to post it in the forum.

Pradeep

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 22 Aug 2008, 11:23 AM
Hi Pradeep,

Judging from the screenshot you provided, our sample application could not establish a connection to the database. By default, our application uses SQLExpress and if it is not available, the connection fails. To solve the problem you could either install SQlExpress or modify the app.config file ("Telerik.Windows.Examples.exe.config") of our sample application to use your SQL Server 2005.

The modified app.config should look something like this:

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <configSections> 
    </configSections> 
    <connectionStrings> 
        <add name="Telerik.Windows.Examples.Properties.Settings.NorthwindConnectionString" 
            connectionString="Data Source=MYDBSERVERADDRESS;Database=Northwind;Integrated Security=True" 
            providerName="System.Data.SqlClient" /> 
    </connectionStrings> 
</configuration> 

I hope this helps.

Regards,
Milan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Prad
Top achievements
Rank 2
Answers by
Milan
Telerik team
Share this question
or