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

Data connection issues with Astoria / Northwind back end Demo

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
odx
Top achievements
Rank 1
odx asked on 19 Oct 2009, 12:25 PM
Hi There

I'm hoping that someone out there will be able to help with what i'm sure is a rather stupid question,  please bare whith me as i am very new to all this.  I am using Visual Studio 2008 &  MSSQL Server 2008 (full - not express)

I'm trying to run the  sample of the Northwiind back end Demo ... Demo / Blog found here

My problem is that i get an exception thrown at line below in bold. (line 163 of NorthwindDataSource.cs).

Error message  from Visual Studio 2008 = DataServiceQueryException was unhandled byuser code


        /// </summary>
        private static void EntitiesLoaded<T>(IAsyncResult result, Collection<T> entities)
        {
            DataServiceQuery<T> query = result.AsyncState as DataServiceQuery<T>;

            IEnumerable<T> categories = query.EndExecute(result);
            foreach (T e in categories)
            {
                entities.Add(e);
            }
        }


Nay help you can give would be great

Thanks

ODX

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 22 Oct 2009, 08:05 AM
Hello odx,

We are not sure what is causing this issue. It might be something related to the connection with your SQL database as this method is in response of the whole data retrieving from database. I suggest you try to run only the Astoria date service by browsing the NorthwindBackEnd.svc file from your solution.

Sincerely yours,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
odx
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or