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

  • Home
  • SEARCH
  • 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 8170809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:15:17+00:00 2026-06-06T21:15:17+00:00

Trying to figure out a SQL connection error 26 in our app. We’ve got

  • 0

Trying to figure out a SQL connection error 26 in our app.

We’ve got two closely related apps Foo and FooAddIn. Foo is a Winforms app built in VS2010 and runs fine and connects fine to our SQLExpress back end.

FooAddIn is an Outlook AddIn which references Foo.exe and connects to the same SQL Express instance. Or rather, it doesn’t connect, instead reporting:

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)

Now, both apps share the same connectionstring and we’ve verified they really do share the same connectionstring.

At this stage we’re just testing from within the same developer machine, so the apps are on the same machine, going via the same VS2010 IDE.

So a lot of the advice online for this error doesn’t apply because the fact that Foo connects through to SQL Express tells us the database is there and available and can be reached.

What else is there to check? One thing is that Foo and FooAddIn are running different runtime versions of System.Data (v2.0.50727 and v4.0.30319). Could that be a factor?

  • 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-06T21:15:18+00:00Added an answer on June 6, 2026 at 9:15 pm

    Resolved: it’s merely a Firewall issue after all


    A colleague pointed out that our FooAddIn Outlook Addin will run in a different security context from the Foo Winforms app.

    We checked the firewall and sure enough a whole bunch of a blocked connections from Outlook.exe were listed.

    So, even though they were on the same machine, and their connectionstrings are identical and they’re both VS2010 applications the Firewall sees them as nothing like the same thing.

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

Sidebar

Related Questions

I trying to figure out how I can delete from multiple tables in SQL
I'm trying to figure out the inputs and the outputs of any SQL Server
I am trying to figure out how I can update my sql query dynamically.
I'm using a standard SQL database and I'm trying to figure out whether or
So, I'm trying to figure out how to log the SQL statements that would
Specifically, I'm trying to figure out if it's possible to generate SQL that does
In SQL Server 2005, I'm trying to figure out why I'm not able to
Trying to figure out why my silverlight app suddenly just displays nothing (right click
I'm trying to figure out why I am getting this error when my Magento
I am trying to figure out how to test for connectivity to a SQL

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.