Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#ASP.NETWCF
Hi,
 
I have a website that i have created using Visual Studio 2008. I am using WCF Service to fetch and retrieve some information from my SQL server 2008. Everything works fine when the website is running and When I hosted in IIS in My Local System,it got an error like,
 
no connection could be made because the target machine actively refused it 127.0.0.1 visual studio
 
However if i try and access my page that uses the WCF Services,i recieve the error about the connection being refused.
 
Has anyone give me any solution?
 
Thanks&Regards,
swathi
Posted 7-Jun-12 20:29pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

hi,
 
It happen because of you have multiple project inside single solution,and you have added web service reference in other project (not in your web application project)
 
just copy the web service reference's configuration from other project to your web application's web.config file It should work.
 
the problem is happen because your IIS severe is looking for web service configuration in your web.config file of your web application
  Permalink  
Comments
   
hi, I tried that one also(Adding Service Reference to my aplication).It shows error like below, There was no endpoint listening at http://localhost:3331/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
   
This Is fine.But my project is also working fine.When I hosted in IIS,it shows an error. no connection could be made because the target machine actively refused it 127.0.0.1 visual studio
Sandeep Mewara at 8-Jun-12 3:13am
   
Check event logs, troubleshoot on what mistake you have done or not configured correctly such that you are unable to use the hosted version.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Easiest way to create and consume WCF Services in asp.net
http://www.webcodeexpert.com/2013/04/how-to-create-and-consume-wcf-services.html
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,518
1 Tadit Dash 350
2 Manas Bhardwaj 319
3 OriginalGriff 243
4 Sergey Alexandrovich Kryukov 240
0 Sergey Alexandrovich Kryukov 9,530
1 OriginalGriff 5,716
2 Peter Leow 4,320
3 Maciej Los 3,540
4 Abhinav S 3,373


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 6 Mar 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid