Linq with WCF

by OfirYaron 8/3/2009 7:51:00 AM

"An error occurred while receiving the HTTP response to
http://xxx/. This could be due to the service endpoint binding not using the HTTP protocol.
This could also be due to an HTTP request context being aborted by the server
(possibly due to the service shutting down). See server logs for more details."

Got this message while trying to communicate to a WCF service I’ve built,

My initial assumption was that I’m not using the suitable security binders at both sides (server and client) .

First thing I tried was striping down the authentication configuration to “none” – the same exception was still thrown.

Secondly I tried to remove the service functionality to most basic by returning null, It works, I’ve returned the functionality but kept returning null and guess what - still worked.

At this point it was clear that the is some problem with the object that I try to return, I assumed that my Linq to Sql objects were not Serialized, indeed that was the cause, if you’re having this exception and use Linq to Sql object as a returned object – Its probably it.

Here is a very helpful “how to” on the subject: http://www.west-wind.com/Weblog/posts/147218.aspx 

(All that need to be done is changing the DataContext Serialization Mode to Unidirectional)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

WCF

It's about time

by OfirYaron 2/12/2009 5:53:00 AM

Hi,

My name is Ofir Yaron and I'm a Brewer/.Net Developer

I'm .Net Developer for nine years now (C#) and worked before, for about five years with C++/VB/Delphi and many more icky languages :)

I recently started working with MVC and Linq after working with Monorail and ActiveRecords for a while, I still haven't decided which I hate more.

I've worked with web form before that – but I'm really trying to repress that period.

I opened up this blog to share programming issues that I deal with and think that they might interest someone else beside my-self and share my on growing knowledge and passion on Beer making.

You can email me to blog@ofiryaron.com for any interesting issue or problem you are facing, I'll be happy to dive in and try to help, and you are more than welcome to send me beer recopies, especially the Guinness recipe :)

 

Cheers

Ofir Yaron

Currently rated 4.7 by 7 people

  • Currently 4.714286/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , ,

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent posts

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Sign in