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


Post New Web Links

localhost is not set up to establish a connection on port 51624 with this computer

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 

I'm trying to run asp.net locally, but getting the error

localhost is not set up to establish a connection on port 51624 with this computer

How can I fix it?




View Complete Post


More Related Resource Links

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.

    <

How to Establish a Remote Web Site Connection in SharePoint Designer 2007

  

I am modifying a SharePoint site and so far so good.  Some of the objects were created using Visual Studio 2008 (C#).  I was able to modify these objects and implement them on the targete machine without issue.  The final step is to implement the ASPX pages that were modified using SharePoint Designer 2007.  These are aspx pages that are used to modify items in lists.  All the pages involved in this upgrade are customized.  I need to upgrade the target site with the modified version of these pages.  My intent is to copy the code from the page in the source site and past it into the same page on the target site.  I tried using the Remote Web Site connection tool in SharePoint Designer 2007 but received the following error message:

"Unable to open 'https://(site address)'.  Server Error:  Could not find a Web server at 'website'.  Please check to make sure that the Web server name is valid and your proxy settings are set correctly.  If you are sure that everything is correct, the Web server may be temporarily out of service."

I am not sure how to first check to see if the Web Server is temporarily out of service.  I would appreciate your input on how to verify this.

Background information of target machine:  WinServer 2008, IIS 7, Sharepoint (MOSS2007), site on port 80

Web Site Admin Tool - cannot establish connection

  

Hello,

I have a question with this tool.  I have a database listed in the App_folder, and the database has a connection in Server explorer.  The connection string is listed in the web.config file, and I am able to add users and roles with the Web Admin Tool.  However, when in the Web Admin Tool, under Configuration tab, I receive an error when I click on the "test" button.  The error reads

 " Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider."

How can this be, and how do I correct this?

thanks

 


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

Establish GPRS Connection in C#

  
Hi all, I am developing windows application, which has one serial port attached with modem. Now when my application starts GPRS connection should be established once. Can any one give me some code reference or provide me with some links. Any help is appreciated.   Regards Asif

Establish GPRS Connection in C#

  
Hi all, I am developing windows application, which has one serial port attached with modem. Now when my application starts GPRS connection should be established once. Can any one give me some code reference or provide me with some links. Any help is appreciated.   Regards Asif

Why do I have to specify port 1433 on my connection string?

  

Hi All,

I have a Windows 2003 Std R2 with one instance (default) SQL2000 STD and another instance (secondary) with SQL2005 STD, both instances using port 1433, firewall already configured.

I'm using the following string connection to access my server with ADO.NET 2.0:

server=mer02\dpm,1433;initial catalog=dpm;TrustServerCertificate=yes;Encrypt=yes;Connection Timeout=30;User=*******;Password=********

Well, I don't know why, but I have to specify port 1433, otherwise I'm not able to connect, I have tried to telnet to mer02 port 1433 and it answers OK, even if I use Sql Management Studio from a local pc I have to access with mer02\dpm,1433 otherwise it takes sometime to return that the server may no be configured to accept remote connections.

Any ideas ?

Thanks in advance

 

 

 


The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure

  

I've gone through lot of articles and not one solution worked for me:

I'm having IIS 7 on Windows 2k8 with SSRS 2008.

How SSL is configured: Its configured to access SSL over existing web-site. final url looks like https://url/reports. When I enter this URL I get the error message.

But, if I connect to same site using non SSL website from my local machine, it works fine. For example, if i use VS 2008 web server and connect to it, it works and shows me report, but as soon as I deploy it on webserver having SSL enabled, it just throws this message.

 

Somebody please help me wid this one


Not so important

Can not establish a connection to SQL Server 2008 R2 via Visual Studio 2010 Framework 4.0

  

Hello All, I would appreciate any help with this.

I believe my problem exists within the web.config which already had code in it to connect to SQL Server Express 2008.

I uninstalled the SQL Server Express that came with Visual Studio 2010.

I installed SQL Server 2010 R2 Developer, and I'm able to connect via Management Studio and through Visual Studio's Server Explorer's Data Connections I am connected.

I did run aspnet_regsql.exe within the 4.0 folder in order to create the database with Microsoft Service Providers.

Here is the ServerName: USER-5529234649 

Here is the name of the DataBase:  StepByStepChapter9

Here is the name of the Connection within Visual Studio's Server Explorer's Data Connections:  user-5529234649.StepByStepChapter9.dbo

Here is the code I changed in the web.config:

<configuration>
  <connectionStrings>
      <!--<add name="ApplicationServices"
            connectionString="data source=.\SQLEXPRESS;Integrated   Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
            providerName="System.Data.SqlClient" />-->
      <add name="ApplicationServices" connectionString="data source=user-5529234649\Step

Sharepoint site by something other than computer name: port number

  

I am quite new to sharepoint and like what I see so far, but I am having major problems getting a site by a domain other than http://computername:portnumberto work for me.

For example.  Lets say my computer name is sharepoint server and I want to create a web application and collection by the name of mysite.mysite.com.  The mysite.mysite.com site creates fine and shows up in IIS fine.  I create a host file entry for mysite.mysite.com and point it to my server.  When I try and browse to the site http://mysite.mysite.com I get challenged for authentication.  If I ping the site it is pinging the correct server. I put in the correct username and password, but I am unable to login.  If I create a site that is just the computer name and a random port number I am able to log in.

I figure I am missing something simple, but I have tried to research this for several hours and have gotten no where. Can anyone point me in the right direction?

I would also like to add that I would like to make serveral sites that are running over port 80 by using host headers...if that changes anything.


Cannot establish connection to sql2008 aspnetdb - WebSite Administration tool

  

Good Afternoon all.

Noobie to asp.net and Admin Tool Site

Getting error: "Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
"  

I am not usign SQL Express

1. Installed VS2008 + sp1 after that Installed SQL 2008 Standard x86 + sp1

2. Used aspnet_regsql to add aspnetdb to the sql (I can see that db in MSSMS)

3. From my WebProject I can access WSAT but when I click on the Provider and try to test I am getting above error.

Tried diffetent settings in the web.config and also check machine.config

Check different solutions form different forums but nothing seams to work.

I strongly believe there is something wrong with my <connectionString/> as by default WSAT points to .\SQLEXPRESS but I do not know which file should I update (web.config or machine.config or Web.config) 

Do I need to add <connectionStrig> tag to web.config ?

All suggestions highly appreciated and appologise if this topic should no

Cannot establish a TCP Connection.

  

Hello,

I've written my own classes to have a TCPServer and TCPClient component in the .NET C# application I'm building. These components work fine and passed all unit tests to validate their working and code. I'm perfectly able to establish connections on my own system and to other systems in the same network. For kicks I tried my component to establish a connection to www.google.com on port 80 and it worked fine as well.

However, when I try to establish a connection to a remote location, I get the following error message:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because the connected host has failed to respond

This remote location is a network from a large company that is added to our network through a  VPN connection, if I'm not mistaking, and becomes part of our network. I can ping the remote location from my system, establish a connection using the old delphi components and use remote desktop. When I try to use my .NET components however, I cannot establish a connection at all and receive the above error message.

This is the code I use to establish a connection to the remote "server" application. I've read some details on the MSDN regarding security and s

SharePoint 2010 and Reporting Services 2008 R2 Integration Fail - Failed to establish connection wit

  

We have installed SQL Server 2008 R2 Standard Edition on a virtual server (C-SQL) and SharePoint Server 2010 on another virtual server (C-SPOINT), with the SQL Backend of the SharePoint database residing on C-SQL. This worked fine.

SQL Server was installed with the domain administrator account and SharePoint with an account called 'visi' that has domain administrator privileges.

SSRS on C-SQL was initially installed as a native database. I changed this to a SharePoint integrated database with all authentications done as the visi user. Report server url was set to the normal http://C-SQL:80/ReportServer/.

On the SharePoint central administration site under General Application Settings -> Reporting Services Integration I filled in the details as required:

  • Could not establish connection database. ASP.NET Membership and Entity Framework

      

    Ok, so this is my first Solution using the Entity Framework (EF). Here are my steps so far:

    1) Created Database named: BSA with an owner of username/password (AspNetServicesUser/password)
    2) Created Entity Data Model (EDM) in a separate project (contained within the same solution)
    3) Created an ASP.NET Web Application with basic functionality (new project within the same solution)
    4) Added Reference to the EDM in Web App and added Connection String to the EF
    5) Decided I wanted ASP.NET Membership added to the Web App
    6) Configured SQL Server for Application Services using aspnet_regsql.exe on BSA database

    Now, I need to know:
    a) Should I keep the ASP.NET Membership Tables in a Separate DB altogether?
    b) Should I update the EDM to include the ASP.NET Membership Tables?
    c) Then, how do I create the connectionString for the Web.config file in the WebApp?


    FYI: I get this error using the ASP.NET Configuration Tool under the "Security" Tab:
    Login failed for user 'AspNetServicesUser'.

    FYI: I get this error using the ASP.NET Configuration Tool under the "Provider" Tab --> Select a single provider for all site management data --> Test
    Could not establish a connection to the database. 
    If you have not yet created the SQL Server database, exit the

    SP2010 InfoPath error: The underlying connection was closed: Could not establish trust relationship

      

    Site: https://sp.xxxx.com/TestSite

    When the InfoPath form is loading, I get the following error:

    An error occurred querying a data source.

    The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

    An entry has been added to the Windows event log of the server.

    Log ID:5566

    can localhost port be taken dynamically?

      

    Hello,

    using classic webservices (asmx), when we run it locally, baseaddress is taken dynamically based on what port is ran but my WCF has fixed port number which was initially assigned? do I do something wrong (does it usually work dynamically and I have problem) or that's the way It work and I have to use static port number locally?

    for example in my app.config I have that set it automatically but when I ran my app another time if my app use port 5678, WCF proj still has that below fixed.

       <baseAddresses>      

          <add baseAddress = "http://localhost:8732/Design_Time_Addresses/testWCF/testService/" />

          </baseAddresses>

    EDIT: My question was regarding, WCF service library rather than WCF service application. I think they have some differences. It will be great if someone can tell me also differences and differences regarding configuration.

    Thanks for help.


    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."

    Getting Unable to establish secure connection with the server

      

    I cannot get a successful connectiong to the active directory when logging onto a web form.  Here is the code I have in the web.config: 

     

    <configuration>

    <appSettings/>

    <connectionStrings>

    <add name="ADConnectionString" connectionString="LDAP://nuprecon.ad/CN=NupreconUsers,DC=nuprecon,DC=ad"/>

    </connectionStrings>

    <system.web>

    <securityPolicy>

    <trustLevel name="Full" policyFile="internal"/>

    <trustLevel name="High" policyFile="web_hightrust.config"/>

    <trustLevel name="Medium" policyFile="web_mediumtrust.config"/>

    <trustLevel name="Low" policyFile="web_lowtrust.config"/>

    <trustLevel name="Minimal" policyFile="web_minimaltrust.config"/>

    </securityPolicy>

    <trust level="Full" originUrl=""/>

    <compilation debug="true" strict="false" explicit="true"/>

    <pages>

    <namespaces>

    <clear/>

    <add namespace="System"/>

    <add namespace="System.Collections"/>

    <add namespace="System.Collections.Specialized"

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