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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:15:23+00:00 2026-05-31T01:15:23+00:00

I have a solution (WCF service) that has many Entity Framework modules in it.

  • 0

I have a solution (WCF service) that has many Entity Framework modules in it. Each dll is named differently.

When I (and my co-workers) run this locally it all works fine. When we run the auto build and copy the files to a Dev Server it all works fine.

But when we copy the files to a Test Server I get an error:

Resolution of the dependency failed, type = "OrderManagementInterfaces.IOrderModel", name = "(none)".  
Exception occurred while: Calling constructor OrderDAL.OrderEntities(System.String connectionString).  
Exception is: MetadataException - Schema specified is not valid. Errors: 
OrderDataModel.csdl(3,4) : error 0019: The EntityContainer name must be unique. An EntityContainer with the name 'OrderEntities' is already defined.

It then follows with all the parts of my schema saying that each was already defined. When I first got this error it was the same kind of error but for a different Entity Framework module. (Not sure if that is important or not.)

So my question is: Is there an IIS Setting that could cause this? Why would it work in my dev server and not my test server?

And what can I do to fix it.

NOTE: I have checked many times to see if I have a duplicate module or container name. There is only one module and container named OrderEntities.

I saw that sometimes this is a product of the metadata part of the connection string. My Connection String looks like this:

metadata=res://*/OrderDataModel.csdl|res://*/OrderDataModel.ssdl|res://*/OrderDataModel.msl;provider=...

All the others are the same except the Data Model name is different.

Note: when I deploy to IIS. I delete all files and only copy in the stuff from the auto build. (Same stuff to both locations.)

  • 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-31T01:15:24+00:00Added an answer on May 31, 2026 at 1:15 am

    Turns out it was nothing to do with my code.

    I had my Identity in my App Pool incorrectly set. Once that was switched to the right value, it all started working 🙂

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

Sidebar

Related Questions

I have a solution that contains a WCF service project. In Solution Explorer only
I have a .NET 2008 solution with a project that acts as WCF Service
I am creating solution and inside I have three projects: A WCF Service Library
I've got a central SQL server database. My solution has a WCF service responsible
I have a WCF service which exposes a method that returns an array of
I am developing a solution in Visual Studio 2010 that has a WCF RESTful
I have a Windows service that has been scheduled using Quartz.NET . I have
I have a WCF Service hosted in IIS/ASP.NET that accepts HTTP Post ( not
I have a Silverlight 2 application that is consuming a WCF service. As such,
I have a solution in VS 2010: a WCF Service Library project (NotifyService) and

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.