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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:59:01+00:00 2026-06-05T12:59:01+00:00

I have created a WCF webservice using WCF Service Application template in VS 2008.

  • 0

I have created a WCF webservice using WCF Service Application template in VS 2008.
In the same solution i have created a web application project and added the web reference to the service where i gave the service url.

Now when i call the service method from my web application project, i get a timeout, i cannot get the O/P from calling service method. Here’s my code i am using to call method from service:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WebApplicationClient.WCFService;

namespace WebApplicationClient
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Service1 svc1 = new Service1();
            String ex = svc1.GetData(1,true);


        }
    }
}

EDIT:
I have figured out the problem. I added a Web Reference to the service rather than the Service reference and it worked.Can anyone tell me the difference b/w the two?

Also when i run the WCF service , i get this message:
Run this command from Command window:

 svcutil.exe http://localhost:1787/Service1.svc?wsdl

But svcutil.exe is not recognised by the OS. I guess it is placed somehwere and i have to give the path also, is this the problem?Where can i find this?

  • 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-05T12:59:03+00:00Added an answer on June 5, 2026 at 12:59 pm

    But svcutil.exe is not recognised by the OS. I guess it is placed
    somehwere and i have to give the path also, is this the problem?Where
    can i find this?

    SvcUtil.exe is the utility that helps to create proxy for a wcf service. You can easily access the utility by opening the Visual Studio command prompt not the windows command prompt.

    If you have installed VS in C drive it would be located here.

    C:\Program Files\ Microsoft Visual Studio 10.0\VC
    

    This thread talks about the difference between Add Web Reference and Add Service Reference. In your case I would suggest to use Service Reference not Web Reference.

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

Sidebar

Related Questions

I have ASP MVC 3 application. I created WCF REST JSON Service and added
I have an upload/download web service that I created with WCF. Im using c
I have created a web service via WCF. Then I exposed it as a
We have created a WCF RESTful service for a WPF(UI) Application. The UI sends
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have created an Ajax enabled WCF web service that contains this simple method:
I have a typical Silverlight application with a WCF service and I am using
I have a RESTful WCF web service called "Palladium" as a project in my
I have created a WCF web service in C# deployed in a Windows Service
I have created a simple wcf service which used the WCF Service Library template.

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.