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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:33:53+00:00 2026-06-13T06:33:53+00:00

I have a few asp.net web applications running on a dedicated server.. For one

  • 0

I have a few asp.net web applications running on a dedicated server.. For one of the websites, I am doing a maintenance task of upgrading all user uploaded images to new naming convention.

I wrote a small, simple console application to do that job. I put the connection string in my app.config like so:

<add key="CS" value="Data Source=1.1.1.1;Initial Catalog=MyDatabase;User ID=usr; Password=pwd" />

Of course, the details here are dummy they are not actually MyDatabase etc… but I do connect to the sql server using an IP address

All my web applications have same format, same details in their web.config files, with the exception of just the database name. Everything works fine too.

I can run the console application from my local dev machine, with the production database, and it connects fine, no problem. (ran a test query on a test DB successfully)

Now, I need to access the hard disk to rename files etc… so I want to run this console application on the server.. I FTP the app to my server and try to run it there.. it errors out saying:

A network-related or instance-specific error occurred while establishing
a connection to SQL Server. The server was not found or was not accessible. 
Verify that the instance name is correct and that SQL Server is configured 
to allow remote connections. (provider: SQL Network Interfaces,
error : 26 - Error Locating Server/Instance Specified)

Like I mentioned earlier, same connection is running fine from my dev machine, this only happens when I try to run the console application in the server..

I’ve tried searching but couldn’t find a similar case anywhere.. esp. as all my web applications that use the same value works fine.. do I need to tell the application to use something?

Many thanks

  • 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-13T06:33:54+00:00Added an answer on June 13, 2026 at 6:33 am

    Are the web server and DB server on the same machine?

    Regardless, on the web server open a command prompt and do the following:

    telnet <ip>, 1433
    

    This assumes your running your SQL Server on the standard port, change accordingly if not.

    See if you can connect to the DB Server via telnet, helps figure out if there are firewall/basic connection issues.

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

Sidebar

Related Questions

I have ASP.NET MVC Beta on our web server running a few apps. My
I have one ASP.NET web application running at the web server root which provides
I have a web application in asp.net 3.5 published in apps server.I have few
Have an ASP.net web app which works fine for a few days, but then
I have an Asp.net application hosted on a shared server. I have few cache
We have several c# projects, libraries and solutions (a few asp.net applications, a few
I have few global methods declared in public class in my ASP.NET web application.
I have developed a web application (ASP.NET Web Forms). One of my customer has
We have an ASP.NET web application running in IIS that uses the SoapHttpClientProtocol class
I have 5 ASP.NET Web Applications that I need to distribute to client machines.

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.