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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:05:50+00:00 2026-05-28T07:05:50+00:00

I am working on a C# .NET application that uses LINQ to SQL for

  • 0

I am working on a C# .NET application that uses LINQ to SQL for database access. Unfortunately, I have spent the past 4 hours trying to get the application to work on my home network. I have brought the application home before for development without issues and transferred the changes back to work. However, this evening I continued to have issues with database access and noticed that the connection string in my DAO was referencing my work ComputerName/Instance. I searched my entire solutions for my work PC Name (i.e. BEN-Laptop) and I also used Windows advanced search options to search my entire directory. However, I could not find any references to my work PC. When I brought the application home to work on I changed all connection string values from my work pc to my home pc and I do not understand why the connection string in the DAO is somehow still referencing my work PC and SQL instance. Is this information cached somewhere because I am at a loss.

  • 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-28T07:05:51+00:00Added an answer on May 28, 2026 at 7:05 am

    If you open up your dbml file in design view and view the properties (F4) you should find a ConnectionString property. When you expand the list of available connection strings it should tell you the source of each string. It’s most likely coming from the settings file. (~\Properties\Settings.settings)

    Ideally when you create a data context you should use the constructor which takes a connection string and you will know exactly where it’s coming from.

    using(var dc = new TestDataContext(connectionString))
    {
        // Do stuff
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a VB.NET desktop application that uses .mdb (Access) database
I am working on a .NET web application that uses an SQL Server database
I am currently working on an web application that uses ASP.NET 2.0 framework. I
I have a small VB.NET application that I'm working on using the full version
I am working in an application that uses EF,WCF and Asp.net. The application is
I'm working on a web application that uses ASP.NET 3.5 and C#. Structurally, I
I'm working on a Ruby web Application that uses the Net::FTP library. One part
I'm trying to extend the functionality of an ASP.net application that I'm working with.
I have a C# web forms ASP.NET 4.0 web application that uses Routing for
I am working on a Silverlight application that uses WCF. I need to have

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.