Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET WCF
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 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
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.

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

  Print Answers RSS
0 CPallini 405
1 Sergey Alexandrovich Kryukov 272
2 OriginalGriff 165
3 George Jonsson 159
4 Richard MacCutchan 110
0 OriginalGriff 6,344
1 Sergey Alexandrovich Kryukov 5,890
2 CPallini 5,175
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100