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 7672779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:21:51+00:00 2026-05-31T16:21:51+00:00

I have the following problem. I am using Entity Framework to connect to a

  • 0

I have the following problem. I am using Entity Framework to connect to a SQL Azure and that works(I tested it in a Test Project).

But when i try to get it through WCF RESTful service it throws Error 504.

My Operation Contract:

[ServiceContract]
public interface IService
{
    [OperationContract]
    [WebGet(UriTemplate = "/Artikli", ResponseFormat = WebMessageFormat.Json)]
    IEnumerable<Artikal> GetArtikli();
}

Implementation of [ServiceContract] :

public class Service : IService
{
    public IEnumerable<Artikal> GetArtikli()
    {
        using (var context = new CijenolomciEntities())
        {
            var result = context.Artikals.ToList();
            result.ForEach(a => context.Detach(a));
            return result;
        }

    }
}

The whole thing is hosted on local IIS. I use Fiddler, an what it says when i try to reach

http://localhost:17916/Service.svc/Artikli 

is

[Fiddler] ReadResponse() failed: The server did not return a response for this request.

The WCF App.Config looks like:

    <?xml version="1.0"?>
    <configuration>
        <connectionStrings>
            <add name="CijenolomciEntities" connectionString="My_Connection_String" providerName="System.Data.EntityClient" />
        </connectionStrings>

        <system.web>
        <compilation debug="true" targetFramework="4.0" />
        </system.web>

        <system.serviceModel>
            <protocolMapping>
                <add scheme="http" binding="webHttpBinding" />
            </protocolMapping>
            <behaviors>
                <endpointBehaviors>
                    <behavior>
                        <webHttp />
                    </behavior>
                </endpointBehaviors>
            <serviceBehaviors>
            <behavior>
                <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
                <serviceMetadata httpGetEnabled="true"/>
                <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
                <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
            </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
        </system.serviceModel>

        <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
        </system.webServer>

    </configuration>

EDIT:
When i try to access URL through browser i get the following:

Request Error

The server encountered an error processing the request. See server logs for more details.
  • 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-05-31T16:21:52+00:00Added an answer on May 31, 2026 at 4:21 pm

    Try to enable Tracing and see if your request is exceeding the default values due to which you are getting a timeout error.

    Inspect the trace log for detailed error on why it is failing and then appropriately perform the needed steps to increase either the timeout values or the default size limits

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

Sidebar

Related Questions

I have a problem with the following Linq query using Entity Framework: from o
Using the Entity Framework Code First paradigm I have defined the following objects and
I have the following Play Framework entity (using Morphia for persistence) as part of
Using Entity Framework 4.1 I have the following tables I'm using with Entity Framework
I have the following problem using subversion: I'm currently working on the trunk of
I have the following problem using template instantiation [*]. file foo.h class Foo {
I have the following problem in my Data Structures and Problem Solving using Java
I have the following problem in a Database using Access 2007 as front end
I have a following problem: I compiled my application on Linux Ubuntu 9.10 using
I have the following problem. I have a tabbed application implemented using a ViewPager.

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.