Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8157189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:11:51+00:00 2026-06-06T17:11:51+00:00

I have built up the wcf web service in visual studio express 2010. I

  • 0

I have built up the wcf web service in visual studio express 2010. I am using Linq to Sql to manipulate with database. where as i am having the tables EmpMaster (primary key table)and EmpDetail (F key table) with relationship based on EmpID.
I deployed this web service locally as of now. and trying to access the Employee master data as well as detail data using Linq to sql Query in my web application. my web application is MVC based application. whereas Employee master data I can access in web app via web service. but it should load with employee details entries by default.as by default DeferredLoadingEnabled is enabled. I can see the set of records in the web service while debugging web service. but while accessing emp detail list data in web application I am getting error. as

"the underlying connection was closed the connection was closed unexpectedly "

I added in client web config :

<binding name="BasicHttpBinding_IEmployeeManagerService"  openTimeout="10:10:00" receiveTimeout="10:10:00" sendTimeout="10:10:00"
      allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
      maxBufferSize="104857600" maxBufferPoolSize="104857600" maxReceivedMessageSize="104857600"
      messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
      useDefaultWebProxy="true">
       <readerQuotas maxDepth="104857600" maxStringContentLength="104857600"
                     maxArrayLength="104857600" maxBytesPerRead="104857600" maxNameTableCharCount="104857600" />

       </binding>

What should be the problem?

   **`**Edited:**`** 

Public Function GetEmployeeDetail(ByVal id As String) As EmployeeDetail Implements IEmployeeManagerService.GetEmployeeDetail
    Dim _empDetail As New EmployeeDetail()
    If Not id Is Nothing Then
        _empDetail = _dbContext.EmployeeDetails.Where(Function(e) e.EmpId = id ).FirstOrDefault()
    End If
    Return _empDetail
End Function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:11:53+00:00Added an answer on June 6, 2026 at 5:11 pm

    wel..wel..wel…. Found the trick but cold not get answer. I removed the Mapping between EmpMaster and EmpDetail then regenerate the .dbml. working perfect every thing at least for this time. but as i tried in normal asp.net web service, I got serialization error for EmpMaster object. and error was saying Circular reference … bla bla bla.. don’t know why. as i checked in Database Context class there were nothing seems like that. then i tried by removing the mapping between both tables in sql server. sounds working for me.
    … Second way is here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have allready built a wcf web service and am having it work great
In Visual Studio 2010 I created a new Ajax enabled WCF Service [ServiceContract(Namespace =
I currently have a web service built on WCF. It's still in its infancy,
I have a web application that accesses a database through a wcf service. The
When I create a WCF application using the built-in Visual Studio templates and try
I'm hosting a WCF service in IIS 7.5 using .NET 4.0. I also have
I am trying to use a web service built on asp.net wcf from iPhone
I have a Visual Studio 2010 solution that is set to build in Debug
I built a web application containing a WCF service contract and a Silverlight control
I have a WCF web service. This web service should only allow certain client

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.