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

Problem with WCF

2 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Casper
Top achievements
Rank 1
Casper asked on 17 Nov 2012, 11:03 PM
Hi.
I just started working with OpenAccess ORM and I have run into a weird problem.
My application is very simple:
Project1: Everything related to the database, including my OpenAccess-stuff.
Project2: A WCF service to select data from project1 (this simply returns the objects created by OpenAccess).

The problem is when I use a client to get data from the database via the WCF service, it fails with:
"The underlying connection was closed: The connection was closed unexpectedly."
I have however no problem returning something not related to OpenAccess, like simple strings or my own custom objects.

//Casper

2 Answers, 1 is accepted

Sort by
0
Accepted
PetarP
Telerik team
answered on 21 Nov 2012, 11:43 AM
Hello Casper,

 That exception doesn't give out too much information on what has really gone wrong. My best guess is that you have either a self reference or a cyclic reference defined in your model and that is not supported out of the box by WCF data services. Could it be possible for you to enable the WCF debugging and share with us all the exception that occur there?

All the best,
Petar
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
0
Casper
Top achievements
Rank 1
answered on 21 Nov 2012, 02:31 PM
Hello Petar

That gave me a more meaningful error:
"a trace size quota was exceeded. the trace was truncated"
I tried changing some of the settings in web.config and now it works. I did get a bit lost in all the settings so I can't remember exactly what i did, but it works :)

Thanks

//Casper
Tags
General Discussions
Asked by
Casper
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Casper
Top achievements
Rank 1
Share this question
or