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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:27:52+00:00 2026-06-18T16:27:52+00:00

My application connects to different databases. The connection strings are saved in the user

  • 0

My application connects to different databases. The connection strings are saved in the user settings. I cannot use the application scope because the data is changed at run-time.

If the user starts the application normally there is no problem. However, if he uses the "Run..." command from the Start menu then a different folder in User\AppData\Local\MyApplication is created containing a different user.config.

Is there any way to stop or bypass this behavior?

  • 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-18T16:27:53+00:00Added an answer on June 18, 2026 at 4:27 pm

    This behavior cannot be avoided.

    It seems that Windows does not identify programs started by other programs as the same as programs which are run by the user.

    To solve the problem you have to avoid settings made by the ConfigurationManager and create your own files to save data as pointed out in the comments.

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

Sidebar

Related Questions

C# .Net application which connects to five different data streams. The data streams are
My application connects to the web-service using ksoap2. The application enables the user to
My .NET WinForms application connects to ftp server and downloads a file. To do
I want to build a marketplace site where my application connects a 'buyer' and
I am wondering if it is possible to trace which server an application connects
I have an application that connects to a number of SQL Servers for monitoring
I have a WPF application which connects to a remote database over internet and
Currently I have an application that connects to a Terminal Server over TCP/IP using
I made an android application which connects to a local web service on my
I have a JSP application that connects to oracle on the log in page.

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.