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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:39:08+00:00 2026-05-16T17:39:08+00:00

Windows 7, Visual Studio 2010, tagert framework = .NET 4 Client Profile I’m creating

  • 0

Windows 7, Visual Studio 2010, tagert framework = .NET 4 Client Profile

I’m creating a desktop application, completely local, it doesn’t access servers. For that i’m using a .MDF SQL Server database and LINQ. Everything works fine on my machine, however, when i deploy it, the following error is shown when i try to connect to the database:

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)

Here are info which might be useful for you guys:

Project file structure:  
\myapp.exe  
\data\bdapepuc.mdf

Connection string: Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Data\BDApepuc.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True

The machine to be the deployed only has the .NET 4 Client Profile installed, nothing else.

Thanks for your help, this error is really spanking me. Change suggestions are welcome too

Edit:

I corrected the connection string, i had pasted the wrong one, please check it.

So far i tried (including tips from you guys here) without success:

  • Relative path, like:
    AttachDbFilename=\Data\BDApepuc.mdf
  • Installing sql server compact 3.5 SP2
  • 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-05-16T17:39:09+00:00Added an answer on May 16, 2026 at 5:39 pm

    completely local, it doesn’t access servers

    It does, it accesses a SQL Server Express server. You’ll have to deploy that as well. You could include the bootstrapper for it in your Setup project. Or just download it from Microsoft.

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

Sidebar

Related Questions

I'm developing desktop Qt 4.7.1 application for Windows 7 using Visual Studio 2010 and
I'm developing an asp.net application on windows 7 visual studio 2010, then publishing it
I am creating a Windows Forms Application using Visual Studio 2010. I populate data
Visual Studio 2010 Express, Windows Forms. Have made myself my first little application which
I'm using visual studio 2010 do developt my Windows phone application! I'm newbie and
I have a Visual Studio 2010 Windows Forms application in which I start a
In Visual Studio 2010, I have a windows forms application frmMain.cs with a ComboBox.
I've been making changes to a Windows Service in Visual Studio (2010, .NET 4.0
I'm using Windows Vista and Visual Studio 2010. Create a .Net 4 Windows Forms
Environment: Windows 7 SP1 Visual Studio 2010 Ultimate SP1 .NET 4.0 I have a

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.