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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:10:45+00:00 2026-06-17T16:10:45+00:00

I have several C# programs utilizing LINQ to SQL classes . If I put

  • 0

I have several C# programs utilizing LINQ to SQL classes. If I put the exe files on a network drive and execute them from there, I get the ‘error 26’, but only when I do it from Win7.

Step by step

  1. Create a new C# project (I use VS 2010 Premium on an XP machine).
    Add new ‘LINQ to SQL classes’. Drag and drop some table into the
    data context (from the server explorer). The database(s) I’m using
    are all MSSQL on remote servers.

  2. On the question: “The connection string contains credentials with a
    clear text password and is not using integrated security…”, select
    Yes

  3. Make some LINQ query in the program, utilizing the data context.
    Make sure the program works.

  4. Put the exe on a (mapped) network drive

  5. Execute the exe (from the NW location)

The connection string (as created by the system) looks as follows (from where it can be seen in the VS project; Properties -> Settings):

Data Source=SERVERNAME\INSTANCE;Initial Catalog=INITIAL_CATALOG;Persist Security Info=True;User ID=USER_ID;Password=PASSWORD

Notes

  • [On XP machine] Launch exe locally (c drive)= OK
  • [On XP machine] Launch exe from NW drive = OK
  • [On Win7 machine] Launch exe locally (c drive) = OK
  • [On Win7 machine] Launch exe from NW drive = NOT OK (error 26…)

Error message:
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)

  • 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-17T16:10:45+00:00Added an answer on June 17, 2026 at 4:10 pm

    There are a no. of ways to solve this error. However. if you are using a 64 bit (new Windows 7 system, using SQL BI Development Studio)you must add your aliases under SQL Native Client 10.0 Configuration (32 bit). Check this link too.It may help : http://sqlerrormessages.blogspot.in/2009/12/specified-sql-server-not-found-or-error.html

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

Sidebar

Related Questions

I have several sql files and I want to import all of them at
I have several programs I want to uninstall from my computer (Windows 7 64bit).
I have found several open-source/freeware programs that allow you to convert .doc files to
I have several Delphi programs that maintain connections to a database (some Oracle, some
I have a program made up of several .h and .c files and a
I have several xml files with different node structure. I want to extract xml
I have a box thats using ntp and we have several java programs running
I have several WinForms .NET programs that are started using ClickOnce. The user logs
We have several latency-sensitive pipeline-style programs that have a measurable performance degredation when run
I'm working on several programs right now, and have become frustrated over some of

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.