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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:02:32+00:00 2026-06-08T23:02:32+00:00

I’ve written an application that is (maybe unnecessarily) tiered on several levels. There are

  • 0

I’ve written an application that is (maybe unnecessarily) tiered on several levels. There are two separate applications, one a UI and one a Windows service; both have the actual code that drives the application in a shared project (so when I update how the app runs, I don’t have to update code in both the UI and the service). In addition to the shared operating code, the shared project also contains the base class and an interface that defines an API for other plugin modules (class projects) that can be added, snoozed, run immediately, etc. All the UI/service does is tell each plugin to run, then emails the results that each plugin generates.

I would like to be able to generate separate data models within those plugin projects, in addition to the main data model in the shared project. Reason for this is, I don’t want to have to reinstall my service every time I want to add a new table for a plugin; by keeping the data model inside the plugin, I can just refresh the plugin and leave the service or the UI running. I’m having trouble getting past the “The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.” error. I’ve already copied my plugin’s connection string from its app.config file to the shared project’s app.config file, and to the UI’s app.config file. I’ve even copied the .edmx file from the plugin to the shared project and the UI project. And yet I’m still coming up with this error. I’m wondering if it has anything to do with the .csdl, ssdl, and .msl files referenced in the connection string (eg. res://*/ATS.csdl). I see those files in the \obj\Debug\edmxResourcesToEmbed directories of all three projects where I have my .edmx file, but despite every piece of information I know to copy being everywhere I can think to copy it, I still can’t connect to the database with my plugin. Any ideas?

ETA: I found if I copied the connection string verbatim from the app.config file and specified it when creating a new entity object, it successfully created the connection and was able to query the database. So it seems that some app.config somewhere doesn’t have the connection string, but all the ones that should need it have it.

ETA 2: I turned on symbol debugging and dug into the exact part of System.Data.EntityClient.EntityConnection where it was failing. It’s looking at the ConfigurationManager.ConnectionStrings collection, but the _items member (which I would expect to contain all the Connection Strings listed in my app.config file) contains only a “LocalSqlServer” entry for a SQLEXPRESS database. So of course when it tries finding the connection string under the name I specified, it can’t because whatever configuration file it’s reading doesn’t contain that. Still looking for a way to make this work correctly…

  • 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-08T23:02:35+00:00Added an answer on June 8, 2026 at 11:02 pm

    I think I solved the problem, though it’s a kludgy solution and I’d love to see if can be done more elegantly. However, here’s what I ended up doing, thanks to a hint from Kamyar:

    In my symbol debugging, I started nosing around in the EntityConnection class, and I noticed that .NET wasn’t picking up the connection strings from my config file like I thought it should have. Kamyar suggested creating a .dll.config file for the plugin, which I did and it still didn’t work…but only because the entity framework was looking for a config file for the host executable, not the plugin dll. So I coped the host application’s app.config file into the directory where my standalone plugins were loading from, named it [Application].exe.config, and it picked it right up.

    I’m wondering if there’s a better way of doing it, somewhere I could specify a config file that all my plugins should reference rather than a copy of the host’s config file, but I’m just happy not to have to specify a connection string in my code.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I've tracked down a weird MySQL problem to the two different ways I was
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.

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.