.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Asad Ali
Fauzul Azmi
Post New Web Links

No connection could be made because the target machine actively refused it 127.0.0.1:8888

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :WCF
 

Hi This is Satish Nandigam,

I develop a Restful web service in vs 2008

I hosted in the IIS 5.1 . Its working perfectly while i ping the url in the browser

like http://localhost/servicename/serversice.svc

http://satishn/servicename/serversice.svc

http://192.168.1.123/servicename/serversice.svc.

 

But problem is  consume the service in the client code.

I am able consume the service http://localhost/servicename/serversice.svc

but change the url like

http://satishn/servicename/serversice.svc

http://192.168.1.123/servicename/serversice.svc. its give error like Unable connect to the server. And i see the inner exception is No connection could be made because the target machine actively refused it 127.0.0.1:8888.

 

Here is the Exception details

 

System.Net.WebException was unhandled by user code
  Message="Unable to connect to the remote server"
  Source="System"
  StackTrace:
       at System.Net.HttpWebRequest.GetResponse()
       at SatoreServiceClient.Default.Button6_Click(Object sender, EventArgs e) in D:\Projects\Satori WebService\Client\Default.aspx.cs:line 398
       at System.Web.UI.WebControls.Bu


View Complete Post


More Related Resource Links

No connection could be made because the target machine actively refused it 127.0.0.1:8888

  

Hi This is Satish Nandigam,

I develop a Restful web service in vs 2008

I hosted in the IIS 5.1 . Its working perfectly while i ping the url in the browser

like http://localhost/servicename/serversice.svc

http://satishn/servicename/serversice.svc

http://192.168.1.123/servicename/serversice.svc.

 

But problem is  consume the service in the client code.

I am able consume the service http://localhost/servicename/serversice.svc

but change the url like

http://satishn/servicename/serversice.svc

http://192.168.1.123/servicename/serversice.svc. its give error like Unable connect to the server. And i see the inner exception is No connection could be made because the target machine actively refused it 127.0.0.1:8888.

 

Here is the Exception details

 

System.Net.WebException was unhandled by user code
  Message="Unable to connect to the remote server"
  Source="System"
  StackTrace:
       at System.Net.HttpWebRequest.GetResponse()
       at SatoreServiceClient.Default.Button6_Click(Object sender, EventArgs e) in D:\Projects\Satori WebService\Client\Default.aspx.cs:line 398
       at System.Web.UI.WebControls.Bu

No connection could be made because the target machine actively refused it ipadd:port at system.Net.

  
Hi, I am writing code to send  an email whenever my application has an unhandled error. With this same code i could get it runnign on a gmail smtp server. However, when i replaced these values wit hvalues for my smtp host, i am gettin the following error. Why am i getting this error? Private Sub EmailTest(ByVal errorMsg As String) Dim SmtpServer As New SmtpClient() SmtpServer.Credentials = New Net.NetworkCredential("me@tremail.com", "test123") SmtpServer.Port = 22 SmtpServer.Host = "smtp.myhost.com" SmtpServer.EnableSsl = True Dim mail As New MailMessage() Try mail.From = New MailAddress("me@tremail.com", "Web Developers", System.Text.Encoding.UTF8) mail.To.Add("target@tremail.com") mail.Subject = "Error Messages in Application" mail.Body = errorMsg SmtpServer.Send(mail) Catch ex As Exception MsgBox(ex.ToString()) End Try End Sub I am getting the following error. System.Net.Mail.smtpException:Failure sending Mail.----->System.Net.WebException:Unable to connect to remote server---->System.Net.Sockets.socketException:No connection could be made because the target machine actively refused it ipadd:port at system.Net.sockets.Socket.doConnect

TCP error code 10061: No connection could be made because the target machine actively refused it.

  
I hosted a wcf service application using windows services. When my client (ASP.NET) tries to call the service class hosted by the windows service, I get this error "TCP error code 10061: No connection could be made because the target machine actively refused it. ". Is there a fix for this? The same code works fine if I host it using a console application.

No connection could be made because the target machine actively refused it

  

I am on the console of a server with a SQL Server 2008 installation.

I CAN successfully connect to the instance with this command:     c:\>    sqlcmd -E -S localhost\DW

I can NOT successfully connect with this one:    c:\>   sqlcmd -E -S localhost\DW,1433

---

  • Remote Server connections are enabled under server properties, connections
  • Under SQL Server configuration manager, "Protocols for DW" has TCP/IP enabled, TCP Dynamic Ports empty, TCP Port set to 1433.
  • My firewall is shutdown
  • I've restarted the SQL Server instance after config manager changes.

 

I receive this message:

HResult 0x274D, Level 16, State 1
TCP Provider: No connection could be made because the target machine actively refused it.

Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..Sqlcmd: Error: Microsoft SQL Server N

No connection could be made because the target machine actively refused it

  

I am using SharePoint 2010 Word Automation Services to convert documents (docx to xps).

When I try to start the ConversionJob, I get the following exception:

EndpointNotFoundException

Could not connect to http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc/actas. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:32843.

The method generate this Exception is the Start() one. The code is the following one:

//...<br/>
ConversionJob job = new ConversionJob(wordAutomationServiceName);<br/>
job.UserToken = spSite.UserToken;<br/>
job.Settings.UpdateFields = true;<br/>
job.Settings.OutputFormat = SaveFormat.XPS;<br/>
job.AddLibrary(inputListName, outputListName);<br/>
         <br/>
job.Start();<br/>
//...

I tried the firewall configuration, but i was not.

The stack trace is the following:

Server stack trace:
   at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()
   at System.ServiceModel.Ch

SQL Server Configuration Manager: Connection to target machine could not be made in a timely fashion

  
I have a SQL Server 2005 box that was moved from a domain environment to a non-domain environment and was never dropped from its original domain before moving over.  Subsequently a new domain was created at the data center this SQL Server box now resides in.  The machine was dropped from its old domain and joined to the new one.   All the while the service accounts were set to the local admin account.  When I tried to start the Configuration Manager I got the message "Connection to target machine could not be made in a timely fashion.".  I read some blog entries and tried changing all the service accounts to Local System and the error message still came up.   All of the SQL Server services run fine.  It is just this management console that I cannot open.  I wasn't with this employer when this box was moved to the data center so I do not know if it worked prior and there isn't anyone here that could give me its history.   Any help would be appreciated.

Fixed : Report builder 3.0 : "Connection failed", "actively refused"

  

Edit : ok, I screw up.

My Sql server wasn't a R2. 

I don't understand how I downloaded the wrong version and successfully install R2 sp1...

I really don't get it. But that fixed now.

---

Hi, i'm running 

 

  • windows 7 x64 Pro
  • Sql server 2008 R2 + Sp1
  • Microsoft SQL Server Reporting Services Version 10.0.2531.0

i'm able to connect to my reportservice with BIDS and Report Builder 2.0.
But with Report Builder 3.0 (10.50.1600.1, running as Admin) the connection failed.
I sniffed the packet with fiddler and found an 
[Fiddler] 504 Connection Failed: No connection could be made because the target machine actively refused it 192.168.1.170:443<BR>Timestamp: 11:49:18.676

---

Edit : add connection Fiddler resume.

 

#	Result	Protocol	Host	URL	Body	Caching	Content-Type	Process	Comments	Custom	
1	401	HTTP	guillaume-pc	/ReportServer/ReportService2010.asmx	0			msreportbuilder:5292			
2	401	HTTP	guillaume-pc	/ReportServer/ReportService2010.asmx	0			msreportbuilder:5292			
3	200	HTTP	guill

Socket Connection Is Actively Refused

  
I have a server application written is C/C++ that finds an available port, creates a socket, and starts listening.  The server posts its IP Address and port to a database so that clients can connect to the server.  I have a Client application written in C/C++ that has no problem connecting to this server; however, I am rewriting that client application in C# and I cannot get the client to connect to the server.  I consistently receive a "No connection could be made because the target machine actively refused it 10.0.0.6:26069" exception.  I have stepped through the code and the IP Address and port look correct to me.  I don't think this is a firewall problem since my other client is able to connect and I have tried my new client with the firewall disabled.  The server is using verson 2.0 sockets.  Below is the code I am using in my C# client to try to connect to my server.
// Create an IP Address from the data read from the DB

A connection could not be made to the report server http://localhost/ReportServer.

  

Hi,

  • I created a Report using Business Intelligence Studio. Its working working well, i can able to view records. But when i try to deploy the report an error occurs specifying that "A connection could not be made to the report server http://localhost/ReportServer. (Microsoft Report Designer)".
  • I open the IIS 7 and find out virtual directories "Reports" and "ReportServer" are available.
  • I check on the browser and type "http://localhost/reports".  I find the browser direct to this url: http://localhost/reports/Pages/Folder.aspx and find error specifying the following one:

         Error:The report server is not responding. Verify that the report server is running and can be accessed from this computer.

  • when i type http://localhost/reportmanager, i found the error:

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    <

Adomd.net "A Connection Cannot be Made , Ensure that the server is running"

  
Hi I am connecting to my local cube from vb.net windows forms application. This form is called several times within my application. While in the application, i close the form and reopen it frequently.  The conAdomd.Open() functions without any error for the first three times . As in , when i launch the windows forms application for the third time, i get an error "A connection cannot be made, Please ensure that the server is running". I have tried installing the patches, but it does'nt help me.  Request help from forum members. Dim conAdomd As New AdomdConnection() conAdomd.ConnectionString = String.Format("Provider=MSOLAP.3;Data Source={0};", filename)     conAdomd.Open()

An established connection was aborted by the software in your host machine

  
Hello, i am facing problem with socket connection aborted for one of the service. Following is the detailed error,   ORIGINAL EXCEPTION:   An exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred and was caught. ------------------------------------------------------------------------------------------------------- 06/25/2010 10:06:20 Type : System.ServiceModel.CommunicationObjectAbortedException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : The socket connection was aborted by your local machine. This could be caused by a channel Abort(), or a transmission error from another thread using this socket. Stack Trace :  Server stack trace:     at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)    at System.ServiceModel.Channels.SocketConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)    at System.ServiceModel.Channels.DelegatingConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout)    at System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)    at System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)    at System.ServiceModel.Channels.FramingDup

A connection could not be made to the report server - Problem deploying an SSRS report from Business

  
I’m having trouble with what seems to be a common issue for people, regarding deployment of an SSRS report from Business Intelligence Development Studio. Unfortunately none of the solution I have seen posted here (and elsewhere) have been able to help me so far.   Two of my collegaues can both deploy with no problem, and I am using exactly the same Target destinations as them (TargetDataSourceFolder, TargetReportFolder, TargetServerURL).   I have posted the error message below, which from my basic understaning would indicate, I think, a security issue (perhaps something local to my PC, or user account)   Has anyone experienced this particular issue who might be able to help?   Best wishes, Jamie TITLE: Microsoft Report Designer ------------------------------ A connection could not be made to the report server http://turpin-net.turpin-bg.local/Reportserver. ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <HTML dir="ltr"> <HEAD><meta name="GENERATOR" content="Microsoft SharePoint" /><meta name="progid" content="SharePoint.WebPartPage.Document" /><meta HTTP-EQUIV="Content-Type" content="text/html; c

a connection could not be made to the reporting server

  
I have made a report using SQL Server Business Intelligence Development Studio. When I try to deploy I get the following error "a connection could not be made to the reporting server". I went to IE and was able to make a connection but not when deploying. I also right clicked on the project and selected properties and verified if the Target URL was correct and it is. Can anyone help. Thanks

Errors in the high-level relational engine. A connection could not be made to the data source with t

  
When I deploy the cube which is sitting on my PC (local) the following 4 errors come up: Error 1 The datasource , 'AdventureWorksDW', contains an ImpersonationMode that that is not supported for processing operations.  0 0 Error 2 Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Adventure Works DW', Name of 'AdventureWorksDW'.  0 0 Error 3 Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Customer', Name of 'Customer' was being processed.  0 0 Error 4 Errors in the OLAP storage engine: An error occurred while the 'Customer Alternate Key' attribute of the 'Customer' dimension from the 'Analysis Services Tutorial' database was being processed.  0 0

syspolicy_purge_history generates unauthorised connection to other instances on a machine

  
Hi folks, My scenario is this:   I have 3 SQL Server 2008 (Standard, 64-bit, SP1) instances, say A, B C on a virtual server. Each instance has its own dedicated service account (sqlsvc-A, sqlsvc-B and sqlsvc-C respectively). syspolicy_purge_history has been installed on all threee instances by default.     step 3 in respective syspolicy_purge_history jobs reads:   (Get-Item SQLSERVER:\SQLPolicy\Machinename\A).EraseSystemHealthPhantomRecords() (Get-Item SQLSERVER:\SQLPolicy\Machinename\B).EraseSystemHealthPhantomRecords() (Get-Item SQLSERVER:\SQLPolicy\Machinename\C).EraseSystemHealthPhantomRecords()   so they appear to have been set correctly.   syspolicy_purge_history in instance A works OK.   syspolicy_purge_history in in instance B seems to want to first connect to instance A, resulting in Error: 18456, Severity: 14, State: 11. Login failed for user 'Machinename\sqlsvc-A'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: <local machine>] . No errors are reported by Powershell.   syspolicy_purge_history in in instance C seems to want to first connect to instance A , resu;ting in Error: 18456, Severity: 14, State: 11. Login failed for user 'Machinename\sqlsvc-A'. Reason: Token-based server access validation failed with an infrastructu

A connection cannot be made to the database. set and test the connection string

  

Hi All,

i have configred SSRS with Sharepoint integration mode everything was successfull. Now when iam trying to create sample report which pulls the data from lists. i have done the below steps.

1) Business Intelligence Projects -> Report Server Project
2)Right-click on Shared Data Sources and select Add New Data Source
 General tab
 -----------------
 Name: DataSource1
 Type: Microsoft SQL Server
 Connection String: http://localhost:3000/_vti_bin/Lists.asmx?op=GetListItems

 Credentials Tab
 -----------------
 Selected radio button: Use Windows Authentication(Integrated Security).
Clicked Ok.

3)Right-Click on Reports (New item-> Report)
4)Dataset: selected new dataset
 Query Tab
 -------------------
 Name: DataSet1
 Datasource: Datasource1(as above)
 Command Type: Text
 QueryString
 <Query>   
 <Method Namespace=http://schemas.microsoft.com/sharepoint/soap/ Name="GetListItems"/>   <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
 </Query>

 Parameters tab:
 ---------------

Network Error (tcp_error) A communication error occurred: "Connection refused"

  

I trying to execute my C# application from Visual Studio 2005 on a server that I'm remoted into.  I'm getting this error:

Network Error (tcp_error)

 

A communication error occurred: "Connection refused"

 

The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

 

 I can accsss the internet from the remote connection and I am not seeing this error anywhere else.  Does anyone know what might be causing this?  Thanks forany help.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend