ConnectionString property has not been initialized

Posts   
 
    
Gianc1412
User
Posts: 40
Joined: 30-Oct-2007
# Posted on: 03-Mar-2008 07:10:26   

VS2005, LLBLGEN 2.5, Vista

I have used LLBLGEN PRO 2.5 with many projects and haven't ran into this problem before. Also , I've been using Telerik's RadGrid Control along with LLBLGEN without problems as well. Today I upgraded to the latest version of Telerik's RadGrid Q3 2007 and now I cannot use the RadGrid control without getting the attached error when I try to access the Property Builder (Where you edit and convert column into templates). Im using an ObjectDataSource. The project builds and the grid populates with the select query. If I remove all methods from the Business Object that returns data from the DB I do not get the error message.

I'm going to contact Telerik about this but Im checking to see if you guys possiably know whats causing this? You guys always have a fix.

<body>
    <form id="form1" runat="server">
    <div>
        <rad:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
            AllowAutomaticUpdates="True" DataSourceID="ObjectDataSource1" GridLines="None">
            <MasterTableView AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" DataKeyNames="RentalID">
                <Columns>
                    <rad:GridBoundColumn DataField="Street" HeaderText="Street" SortExpression="Street"
                        UniqueName="Street">
                    </rad:GridBoundColumn>
                    <rad:GridBoundColumn DataField="Zip" HeaderText="Zip" SortExpression="Zip" UniqueName="Zip">
                    </rad:GridBoundColumn>
                </Columns>
                <ExpandCollapseColumn Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
            </MasterTableView>
        </rad:RadGrid>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetRentals"
            TypeName="TestSite.Rental" InsertMethod="AddRental" >
            <InsertParameters>
                <asp:Parameter Name="street" Type="String" />
            </InsertParameters>
        </asp:ObjectDataSource> 
    </div>
    </form>
</body>
namespace TestSite
{
    public class Rental
    {
        public static RentalCollection GetRentals()
        {
            RentalCollection rentals = new RentalCollection();
            rentals.GetMulti(null);
            return rentals;
        }

        public static void AddRental(string street)
        {
            RentalEntity rental = new RentalEntity();
            rental.Street = street;
            rental.Save();
        }
    }
}
    <appSettings>
        <add key="Main.ConnectionString" value="Data Source=SERV5;Initial Catalog=TEST;Integrated Security=True"/>
    </appSettings>
Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 03-Mar-2008 09:36:51   

I think your issue might be related to this thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7564

Gianc1412
User
Posts: 40
Joined: 30-Oct-2007
# Posted on: 03-Mar-2008 17:36:26   

Yeah I have been looking at thread. It's just strange that such a small version change of the RadGrid 5.11 to 5.12 would introduce a behavior like that. I'm going to read up on LLBLGENPRODATASOURCE and try to use that but this approach. I get the impression thats how I should be doing this anyways.

Im trying to set this up on a new machine that's never had LLBLGEN or RadControls and waiting to hear back from Telerik. I will post my results.

Gianc1412
User
Posts: 40
Joined: 30-Oct-2007
# Posted on: 03-Mar-2008 18:18:08   

Everything works on the new machine. Must be a problem with upgrading.

Gianc1412
User
Posts: 40
Joined: 30-Oct-2007
# Posted on: 03-Mar-2008 18:19:03   

To be more clear: RadGrid 5.12 and ObjectDatSource works fine on new machine.

Gianc1412
User
Posts: 40
Joined: 30-Oct-2007
# Posted on: 03-Mar-2008 19:09:15   

Ok so I was able to successfully at the controls once. I deleted the test page, went to recreate, and now the exact problem reappears on the new machine as well.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 04-Mar-2008 11:31:48   

Please try the LLBLGenProDataSource.

Gianc1412
User
Posts: 40
Joined: 30-Oct-2007
# Posted on: 04-Mar-2008 18:14:05   

Telerik released a hotfix this morning that took care of this, thanks for looking into it.

Is there any good tutorials on advanced LLBLGENPRODATASOURCE operations.

Gianc1412
User
Posts: 40
Joined: 30-Oct-2007
# Posted on: 04-Mar-2008 18:14:05   

Telerik released a hotfix this morning that took care of this, thanks for looking into it.

Is there any good tutorials on advanced LLBLGENPRODATASOURCE operations.