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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:24:47+00:00 2026-05-31T00:24:47+00:00

I’ve got three C# ASP.NET MVC2 projects within a single solution. Names have been

  • 0

I’ve got three C# ASP.NET MVC2 projects within a single solution. Names have been changed for simplicity’s sake.

The solution is MY_COMPANY_SITES.

It’s got three projects in it: CUSTOMER_SITE, INTRANET_SITE, CENTRAL_REPOSITORY.

…Both the CUSTOMER_SITE and INTRANET_SITE projects have their own ADO.Net entity models, generated via EDMX, and connect to their own databases. The CENTRAL_REPOSITORY project contains a third ADO.Net entity model, linked up with its own database.

It is required for my situation that these three databases be separate; would take too long to explain here.

What I need to do: Give both the CUSTOMER_SITE and INTRANET_SITE access to the CENTRAL_REPOSITORY ADO.Net entities, in addition to their own.

i.e., the following code should work:

CUSTOMER_Entities custDb = new CUSTOMER_Entities();
CENTRAL_Entities ctrDb = new CENTRAL_Entities();

StoreLocation firstLoc = ctrDB.StoreLocations.First();

List<Order> orders = (from n in custDb.Orders
                        where n.LocationID == firstLoc.LocationID
                        select n).ToList();

…I’d also ideally prefer that if I modify the entity model within the CENTRAL_REPOSITORY, it’s just linked to by the other applications so I don’t have to copy all my changes among all three.

I figure there must be a “right” way to do this. Could very much use some help understanding how.

Thanks!

UPDATE:

Blindy (below) directed me to find that the answer is just to right-click on the “References” within the CUSTOMER_SITE in the Solution Explorer, and click “Add Reference…”, then select the CENTRAL_REPOSITORY project, and click OK. And voila, everything shoud just work.

However, it doesn’t actually seem to just work. Specifically, I’m getting this error when I try to access the CENTRAL_REPOSITORY’s data entities from within the CUSTOMER_SITE or INTRANET_SITE:

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

…so there’s some problem with trying to use the entities from that project, and I’m not understanding what. Any thoughts?

  • 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-31T00:24:49+00:00Added an answer on May 31, 2026 at 12:24 am

    To answer your question, you need to have the appropriate connection string in your configuration of the other two sites, to enable your CENTRAL_REPOSITORY to use it to connect. Have a look in the original site config and copy that connection to the other two sites.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from

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.